diff options
author | rwatson <rwatson@FreeBSD.org> | 2000-08-29 14:45:49 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2000-08-29 14:45:49 +0000 |
commit | e54ea574fa306bcc87580c0dc4b763933d819988 (patch) | |
tree | 03289d8b1f7f7b111b10a7a131dc2ecbb9a39ae4 /sys/fs/ntfs | |
parent | 07eb06526c07cae0b06e3631398a15e4a2c65102 (diff) | |
download | FreeBSD-src-e54ea574fa306bcc87580c0dc4b763933d819988.zip FreeBSD-src-e54ea574fa306bcc87580c0dc4b763933d819988.tar.gz |
o Restructure vaccess() so as to check for DAC permission to modify the
object before falling back on privilege. Make vaccess() accept an
additional optional argument, privused, to determine whether
privilege was required for vaccess() to return 0. Add commented
out capability checks for reference. Rename some variables to make
it more clear which modes/uids/etc are associated with the object,
and which with the access mode.
o Update file system use of vaccess() to pass NULL as the optional
privused argument. Once additional patches are applied, suser()
will no longer set ASU, so privused will permit passing of
privilege information up the stack to the caller.
Reviewed by: bde, green, phk, -security, others
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/fs/ntfs')
-rw-r--r-- | sys/fs/ntfs/ntfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/ntfs/ntfs_vnops.c b/sys/fs/ntfs/ntfs_vnops.c index 06dab1c..84b60ea 100644 --- a/sys/fs/ntfs/ntfs_vnops.c +++ b/sys/fs/ntfs/ntfs_vnops.c @@ -478,7 +478,7 @@ ntfs_access(ap) } return (vaccess(vp->v_type, ip->i_mp->ntm_mode, ip->i_mp->ntm_uid, - ip->i_mp->ntm_gid, ap->a_mode, ap->a_cred)); + ip->i_mp->ntm_gid, ap->a_mode, ap->a_cred, NULL)); } /* |