mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic: check CAP_LINUX_IMMUTABLE capability
It should return error while changing IMMUTABLE_FL and APPEND_FL if the process has no capability CAP_LINUX_IMMUTABLE. However, it's not true on overlayfs after kernel version v4.19 since the process's subjective cred is overridden with ofs->creator_cred before calling real vfs_ioctl. The following patch for ovl fix the problem: "ovl: check the capability before cred overridden" Add this testcase to cover this bug. Signed-off-by: Jiufei Xue <jiufei.xue@linux.alibaba.com> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
@@ -196,6 +196,7 @@ export SQLITE3_PROG="$(type -P sqlite3)"
|
||||
export TIMEOUT_PROG="$(type -P timeout)"
|
||||
export SETCAP_PROG="$(type -P setcap)"
|
||||
export GETCAP_PROG="$(type -P getcap)"
|
||||
export CAPSH_PROG="$(type -P capsh)"
|
||||
export CHECKBASHISMS_PROG="$(type -P checkbashisms)"
|
||||
export XFS_INFO_PROG="$(type -P xfs_info)"
|
||||
export DUPEREMOVE_PROG="$(type -P duperemove)"
|
||||
|
||||
Reference in New Issue
Block a user