mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 19:04:45 +03:00
Implement secpolicy_vnode_setid_retain()
Don't unconditionally return 0 (i.e. retain SUID/SGID). Test CAP_FSETID capability. https://github.com/pjd/pjdfstest/blob/master/tests/chmod/12.t which expects SUID/SGID to be dropped on write(2) by non-owner fails without this. Most filesystems make this decision within VFS by using a generic file write for fops. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Closes #9035 Closes #9043
This commit is contained in:
committed by
Brian Behlendorf
parent
4b5c9d9f97
commit
9fb6abe5ad
@@ -332,6 +332,7 @@ AC_CONFIG_FILES([
|
||||
tests/zfs-tests/tests/functional/snapshot/Makefile
|
||||
tests/zfs-tests/tests/functional/snapused/Makefile
|
||||
tests/zfs-tests/tests/functional/sparse/Makefile
|
||||
tests/zfs-tests/tests/functional/suid/Makefile
|
||||
tests/zfs-tests/tests/functional/alloc_class/Makefile
|
||||
tests/zfs-tests/tests/functional/threadsappend/Makefile
|
||||
tests/zfs-tests/tests/functional/tmpfile/Makefile
|
||||
|
||||
Reference in New Issue
Block a user