|
@@ -721,6 +721,21 @@ func DefaultProfile(rs *specs.Spec) *types.Seccomp {
|
|
|
Action: types.ActAllow,
|
|
|
Args: []*types.Arg{},
|
|
|
},
|
|
|
+ {
|
|
|
+ Name: "mlock",
|
|
|
+ Action: types.ActAllow,
|
|
|
+ Args: []*types.Arg{},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ Name: "mlock2",
|
|
|
+ Action: types.ActAllow,
|
|
|
+ Args: []*types.Arg{},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ Name: "mlockall",
|
|
|
+ Action: types.ActAllow,
|
|
|
+ Args: []*types.Arg{},
|
|
|
+ },
|
|
|
{
|
|
|
Name: "mmap",
|
|
|
Action: types.ActAllow,
|
|
@@ -1663,24 +1678,6 @@ func DefaultProfile(rs *specs.Spec) *types.Seccomp {
|
|
|
Args: []*types.Arg{},
|
|
|
},
|
|
|
}...)
|
|
|
- case "CAP_IPC_LOCK":
|
|
|
- syscalls = append(syscalls, []*types.Syscall{
|
|
|
- {
|
|
|
- Name: "mlock",
|
|
|
- Action: types.ActAllow,
|
|
|
- Args: []*types.Arg{},
|
|
|
- },
|
|
|
- {
|
|
|
- Name: "mlock2",
|
|
|
- Action: types.ActAllow,
|
|
|
- Args: []*types.Arg{},
|
|
|
- },
|
|
|
- {
|
|
|
- Name: "mlockall",
|
|
|
- Action: types.ActAllow,
|
|
|
- Args: []*types.Arg{},
|
|
|
- },
|
|
|
- }...)
|
|
|
case "CAP_SYS_ADMIN":
|
|
|
capSysAdmin = true
|
|
|
syscalls = append(syscalls, []*types.Syscall{
|