aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/gmon.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-07-13 16:26:40 +0000
committerBruce Evans <bde@FreeBSD.org>1997-07-13 16:26:40 +0000
commited1ab0dea281d994c2e41b78b2430e3fe7b8d381 (patch)
tree06d55dc67deb3a7e52ab8f83f43650d508da56ef /sys/sys/gmon.h
parent7e88aafca74505ed5c11ad8f258dcfc4de2d3a3e (diff)
downloadsrc-ed1ab0dea281d994c2e41b78b2430e3fe7b8d381.tar.gz
src-ed1ab0dea281d994c2e41b78b2430e3fe7b8d381.zip
Always mark st_ctime for update upon successful completion of
chown(). Previously, it wasn't marked for null chown()'s. We permit null chown()s as a special case of "appropriate privilege" - everyone has enough priviilege to not change ids (this is a better argument than the one I gave for rev.1.13, that null changes aren't really changes). However, POSIX.1 requires the update independently of whether anything has changed. Clear both the setuid and the setgid bits upon successful completion of non-null chown()s by non-root. Previously, the setuid bit was only changed for non-null changes of the uid, etc. POSIX.1 requires clearing both unless the call was made by a process with "appropriate privilege", in which case altering the bits is implementation-defined. We define appropriate privilege as `process is root, or the change is null', and the implementation-defined behaviour as not altering the bits. There is no interpretation that permits clearing only one of the bits. Reviewed by: jdp
Notes
Notes: svn path=/head/; revision=27378
Diffstat (limited to 'sys/sys/gmon.h')
0 files changed, 0 insertions, 0 deletions