seccomp: add fchmodat2 syscall (kernel v6.6, libseccomp v2.5.5)
Add this syscall to match the profile in containerd containerd:a6e52c74fa
libseccomp:53267af3fb
kernel:09da082b07
fs: Add fchmodat2() On the userspace side fchmodat(3) is implemented as a wrapper function which implements the POSIX-specified interface. This interface differs from the underlying kernel system call, which does not have a flags argument. Most implementations require procfs [1][2]. There doesn't appear to be a good userspace workaround for this issue but the implementation in the kernel is pretty straight-forward. The new fchmodat2() syscall allows to pass the AT_SYMLINK_NOFOLLOW flag, unlike existing fchmodat. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit6f242f1a28
) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
67e9aa6d4d
commit
5fb4eb941d
2 changed files with 2 additions and 0 deletions
|
@ -110,6 +110,7 @@
|
|||
"fchdir",
|
||||
"fchmod",
|
||||
"fchmodat",
|
||||
"fchmodat2",
|
||||
"fchown",
|
||||
"fchown32",
|
||||
"fchownat",
|
||||
|
|
|
@ -102,6 +102,7 @@ func DefaultProfile() *Seccomp {
|
|||
"fchdir",
|
||||
"fchmod",
|
||||
"fchmodat",
|
||||
"fchmodat2", // kernel v6.6, libseccomp v2.5.5
|
||||
"fchown",
|
||||
"fchown32",
|
||||
"fchownat",
|
||||
|
|
Loading…
Reference in a new issue