cvs commit: src/sys/ufs/ufs ufs_vnops.c
Robert Watson
rwatson at FreeBSD.org
Sun Aug 3 17:31:02 PDT 2003
rwatson 2003/08/03 17:31:01 PDT
FreeBSD src repository
Modified files:
sys/ufs/ufs ufs_vnops.c
Log:
In ufs_chmod(), use privilege only when required in the following
cases:
- Setting sticky bit on non-directory
- Setting setgid on a file with a group that isn't in the effective
or extended groups of the authorizing credential
I.e., test the requirement first, then do the privilege test,
rather than doing the privilege test regardless of the need for
privilege.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Revision Changes Path
1.231 +9 -5 src/sys/ufs/ufs/ufs_vnops.c
More information about the cvs-src
mailing list