mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 06:19:00 +00:00
services/yt-dlp: update hardening options
This commit is contained in:
parent
c86182d53a
commit
c9d497c3fc
@ -66,7 +66,7 @@ in {
|
|||||||
The location of the archive to be downloaded. Must be an absolute path.
|
The location of the archive to be downloaded. Must be an absolute path.
|
||||||
'';
|
'';
|
||||||
default = "/archives/yt-dlp-service";
|
default = "/archives/yt-dlp-service";
|
||||||
example = lib.literalExpression "/archiving-service/videos";
|
example = lib.literalExpression "/var/archives/yt-dlp-service";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraArgs = lib.mkOption {
|
extraArgs = lib.mkOption {
|
||||||
@ -129,12 +129,18 @@ in {
|
|||||||
'';
|
'';
|
||||||
startAt = value.startAt;
|
startAt = value.startAt;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
LockPersonality = true;
|
||||||
NoNewPrivileges = true;
|
NoNewPrivileges = true;
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
|
PrivateUsers = true;
|
||||||
|
PrivateDevices = true;
|
||||||
ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
ProtectClock = true;
|
ProtectClock = true;
|
||||||
ProtectKernelModules = true;
|
|
||||||
ProtectKernelLogs = true;
|
ProtectKernelLogs = true;
|
||||||
|
ProtectKernelModules = true;
|
||||||
|
ProtectKernelTunables = true;
|
||||||
|
SystemCallFilter = "@system-service";
|
||||||
|
SystemCallErrorNumber = "EPERM";
|
||||||
};
|
};
|
||||||
}) cfg.jobs;
|
}) cfg.jobs;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user