summaryrefslogtreecommitdiffstats
path: root/sys/isofs/cd9660/cd9660_vnops.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2000-08-29 14:45:49 +0000
committerrwatson <rwatson@FreeBSD.org>2000-08-29 14:45:49 +0000
commite54ea574fa306bcc87580c0dc4b763933d819988 (patch)
tree03289d8b1f7f7b111b10a7a131dc2ecbb9a39ae4 /sys/isofs/cd9660/cd9660_vnops.c
parent07eb06526c07cae0b06e3631398a15e4a2c65102 (diff)
downloadFreeBSD-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/isofs/cd9660/cd9660_vnops.c')
-rw-r--r--sys/isofs/cd9660/cd9660_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/isofs/cd9660/cd9660_vnops.c b/sys/isofs/cd9660/cd9660_vnops.c
index b4e06fb..f34ebd4 100644
--- a/sys/isofs/cd9660/cd9660_vnops.c
+++ b/sys/isofs/cd9660/cd9660_vnops.c
@@ -155,7 +155,7 @@ cd9660_access(ap)
}
return (vaccess(vp->v_type, ip->inode.iso_mode, ip->inode.iso_uid,
- ip->inode.iso_gid, ap->a_mode, ap->a_cred));
+ ip->inode.iso_gid, ap->a_mode, ap->a_cred, NULL));
}
static int
OpenPOWER on IntegriCloud