summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2009-07-01 15:52:19 +0000
committertrasz <trasz@FreeBSD.org>2009-07-01 15:52:19 +0000
commitc51532aa9ef85e986ae6377eb7729ba5e99fc411 (patch)
tree9061a434c397b22d8c234fdf2d0ba619b111d22b /sys
parentf90eaa96d0f28d9abe3e285a7f091e20ae941613 (diff)
downloadFreeBSD-src-c51532aa9ef85e986ae6377eb7729ba5e99fc411.zip
FreeBSD-src-c51532aa9ef85e986ae6377eb7729ba5e99fc411.tar.gz
With NFSv4 ACLs, it is possible that applying a mode to an ACL which
is identical to the mode computed from that ACL will modify the ACL. For example, mode computed from the following ACL is 0600: user:kamila:rwx--------C--:------:allow owner@:--x-----------:------:deny owner@:rw-p---A-W-Co-:------:allow group@:rwxp----------:------:deny group@:--------------:------:allow everyone@:rwxp---A-W-Co-:------:deny everyone@:------a-R-c--s:------:allow However, applying that mode (chmod 0600) changes the ACL into this: user:kamila:rwx-----------:------:deny user:kamila:rwx--------C--:------:allow owner@:--x-----------:------:deny owner@:rw-p---A-W-Co-:------:allow group@:rwxp----------:------:deny group@:--------------:------:allow everyone@:rwxp---A-W-Co-:------:deny everyone@:------a-R-c--s:------:allow In chmod(1) utility, there is an optimisation, which makes it not call chmod(2) if the mode of the file is the same as the new mode. Disable that optimisation for files which may have NFSv4 ACLs. Reviewed by: rwatson Approved by: re (kib)
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud