seccomp: add set_mempolicy_home_node syscall (kernel v5.17, libseccomp v2.5.4)
This syscall is gated by CAP_SYS_NICE, matching the profile in containerd. containerd:a6e52c74fa
libseccomp:d83cb7ac25
kernel:c6018b4b25
mm/mempolicy: add set_mempolicy_home_node syscall This syscall can be used to set a home node for the MPOL_BIND and MPOL_PREFERRED_MANY memory policy. Users should use this syscall after setting up a memory policy for the specified range as shown below. mbind(p, nr_pages * page_size, MPOL_BIND, new_nodes->maskp, new_nodes->size + 1, 0); sys_set_mempolicy_home_node((unsigned long)p, nr_pages * page_size, home_node, 0); The syscall allows specifying a home node/preferred node from which kernel will fulfill memory allocation requests first. ... Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit1251982cf7
) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
58a26e4fda
commit
b9f01eea45
2 changed files with 3 additions and 1 deletions
|
@ -783,7 +783,8 @@
|
|||
"names": [
|
||||
"get_mempolicy",
|
||||
"mbind",
|
||||
"set_mempolicy"
|
||||
"set_mempolicy",
|
||||
"set_mempolicy_home_node"
|
||||
],
|
||||
"action": "SCMP_ACT_ALLOW",
|
||||
"includes": {
|
||||
|
|
|
@ -771,6 +771,7 @@ func DefaultProfile() *Seccomp {
|
|||
"get_mempolicy",
|
||||
"mbind",
|
||||
"set_mempolicy",
|
||||
"set_mempolicy_home_node", // kernel v5.17, libseccomp v2.5.4
|
||||
},
|
||||
Action: specs.ActAllow,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue