mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +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
@@ -856,6 +856,11 @@ tags = ['functional', 'snapused']
|
||||
tests = ['sparse_001_pos']
|
||||
tags = ['functional', 'sparse']
|
||||
|
||||
[tests/functional/suid]
|
||||
tests = ['suid_write_to_suid', 'suid_write_to_sgid', 'suid_write_to_suid_sgid',
|
||||
'suid_write_to_none']
|
||||
tags = ['functional', 'suid']
|
||||
|
||||
[tests/functional/threadsappend]
|
||||
tests = ['threadsappend_001_pos']
|
||||
tags = ['functional', 'threadsappend']
|
||||
|
||||
Reference in New Issue
Block a user