Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 1997 09:26:42 -0700 (PDT)
From:      Bruce Evans <bde@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG
Subject:   cvs commit: src/sys/ufs/ufs ufs_vnops.c
Message-ID:  <199707131626.JAA26019@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
bde         1997/07/13 09:26:42 PDT

  Modified files:
    sys/ufs/ufs          ufs_vnops.c 
  Log:
  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
  
  Revision  Changes    Path
  1.52      +4 -7      src/sys/ufs/ufs/ufs_vnops.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707131626.JAA26019>