Merge pull request #197696 from MidAutumnMoon/go-119-services-fix-3
nixos/{shiori,nats,geoipupdate,prometheus-smartct,}: set proper SystemCallFilter
This commit is contained in:
commit
493ae49688
@ -197,7 +197,7 @@ in
|
|||||||
ProtectKernelTunables = true;
|
ProtectKernelTunables = true;
|
||||||
ProtectProc = "invisible";
|
ProtectProc = "invisible";
|
||||||
ProcSubset = "pid";
|
ProcSubset = "pid";
|
||||||
SystemCallFilter = [ "@system-service" "~@privileged" "~@resources" ];
|
SystemCallFilter = [ "@system-service" "~@privileged" ];
|
||||||
RestrictAddressFamilies = [ "AF_INET" "AF_INET6" ];
|
RestrictAddressFamilies = [ "AF_INET" "AF_INET6" ];
|
||||||
RestrictRealtime = true;
|
RestrictRealtime = true;
|
||||||
RestrictNamespaces = true;
|
RestrictNamespaces = true;
|
||||||
|
@ -66,10 +66,7 @@ in {
|
|||||||
ProtectProc = "invisible";
|
ProtectProc = "invisible";
|
||||||
ProcSubset = "pid";
|
ProcSubset = "pid";
|
||||||
SupplementaryGroups = [ "disk" ];
|
SupplementaryGroups = [ "disk" ];
|
||||||
SystemCallFilter = [
|
SystemCallFilter = [ "@system-service" "~@privileged" ];
|
||||||
"@system-service"
|
|
||||||
"~@privileged @resources"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,7 @@ in {
|
|||||||
RestrictNamespaces = true;
|
RestrictNamespaces = true;
|
||||||
RestrictRealtime = true;
|
RestrictRealtime = true;
|
||||||
RestrictSUIDSGID = true;
|
RestrictSUIDSGID = true;
|
||||||
SystemCallFilter = [ "@system-service" "~@privileged" "~@resources" ];
|
SystemCallFilter = [ "@system-service" "~@privileged" ];
|
||||||
UMask = "0077";
|
UMask = "0077";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -86,7 +86,7 @@ in {
|
|||||||
SystemCallErrorNumber = "EPERM";
|
SystemCallErrorNumber = "EPERM";
|
||||||
SystemCallFilter = [
|
SystemCallFilter = [
|
||||||
"@system-service"
|
"@system-service"
|
||||||
"~@cpu-emulation" "~@debug" "~@keyring" "~@memlock" "~@obsolete" "~@privileged" "~@resources" "~@setuid"
|
"~@cpu-emulation" "~@debug" "~@keyring" "~@memlock" "~@obsolete" "~@privileged" "~@setuid"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user