diff options
author | Matthew Macy <[email protected]> | 2020-08-07 14:16:01 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-07 14:16:01 -0700 |
commit | 0f95ddcc0c67bfb3d2a69097e9807aabab57aeb2 (patch) | |
tree | 08082f5555b35db48f187d8f0a8d1823227012b7 /module/os | |
parent | 12045d0278549fdcad1f042ced45314311e753a8 (diff) |
FreeBSD: update vaccess signature on most recent HEAD
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #10682
Diffstat (limited to 'module/os')
-rw-r--r-- | module/os/freebsd/zfs/zfs_vnops.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/module/os/freebsd/zfs/zfs_vnops.c b/module/os/freebsd/zfs/zfs_vnops.c index a87235111..2a4acf215 100644 --- a/module/os/freebsd/zfs/zfs_vnops.c +++ b/module/os/freebsd/zfs/zfs_vnops.c @@ -5284,8 +5284,13 @@ zfs_freebsd_access(struct vop_access_args *ap) if (error == 0) { accmode = ap->a_accmode & ~(VREAD|VWRITE|VEXEC|VAPPEND); if (accmode != 0) { +#if __FreeBSD_version >= 1300105 + error = vaccess(vp->v_type, zp->z_mode, zp->z_uid, + zp->z_gid, accmode, ap->a_cred); +#else error = vaccess(vp->v_type, zp->z_mode, zp->z_uid, zp->z_gid, accmode, ap->a_cred, NULL); +#endif } } |