summaryrefslogtreecommitdiffstats
path: root/sys/sys/gmon.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-07-13 16:26:40 +0000
committerbde <bde@FreeBSD.org>1997-07-13 16:26:40 +0000
commit1771415dae25d76aa7af7d72f0484445b7b69d4d (patch)
tree3fe97f7c7e9368824676b190850b29f2e9d3bf39 /sys/sys/gmon.h
parent4112123248a5db2e4c109f4ca5ad826666c7d7e7 (diff)
downloadFreeBSD-src-1771415dae25d76aa7af7d72f0484445b7b69d4d.zip
FreeBSD-src-1771415dae25d76aa7af7d72f0484445b7b69d4d.tar.gz
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
Diffstat (limited to 'sys/sys/gmon.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud