gitea runner
This commit is contained in:
@@ -71,17 +71,25 @@
|
|||||||
"/home/github/infrastructure"
|
"/home/github/infrastructure"
|
||||||
];
|
];
|
||||||
|
|
||||||
# CRITICAL: Completely disable mount namespace isolation
|
# CRITICAL: Allow the runner to create child processes without namespace restrictions
|
||||||
PrivateMounts = lib.mkForce false;
|
|
||||||
MountFlags = lib.mkForce "";
|
|
||||||
|
|
||||||
# Also bind the nix store
|
|
||||||
BindReadOnlyPaths = lib.mkForce [
|
BindReadOnlyPaths = lib.mkForce [
|
||||||
"/nix/store"
|
"/nix/store"
|
||||||
"/nix/var"
|
"/nix/var"
|
||||||
"/run/current-system"
|
"/run/current-system"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Completely disable mount namespace isolation
|
||||||
|
PrivateMounts = lib.mkForce false;
|
||||||
|
MountFlags = lib.mkForce "shared"; # Share mounts with child processes
|
||||||
|
|
||||||
|
# Allow the runner process to use unshare/clone without restrictions
|
||||||
|
SystemCallFilter = lib.mkForce [ ];
|
||||||
|
RestrictNamespaces = lib.mkForce false;
|
||||||
|
|
||||||
|
# Give the runner CAP_SYS_ADMIN to create namespaces if needed, but inherit parent's
|
||||||
|
AmbientCapabilities = lib.mkForce [ "CAP_SYS_ADMIN" ];
|
||||||
|
CapabilityBoundingSet = lib.mkForce [ "CAP_SYS_ADMIN" ];
|
||||||
|
|
||||||
# Disable all other sandboxing features
|
# Disable all other sandboxing features
|
||||||
DynamicUser = lib.mkForce false;
|
DynamicUser = lib.mkForce false;
|
||||||
PrivateDevices = lib.mkForce false;
|
PrivateDevices = lib.mkForce false;
|
||||||
@@ -97,12 +105,10 @@
|
|||||||
ProtectProc = lib.mkForce "default";
|
ProtectProc = lib.mkForce "default";
|
||||||
ProtectSystem = lib.mkForce false;
|
ProtectSystem = lib.mkForce false;
|
||||||
NoNewPrivileges = lib.mkForce false;
|
NoNewPrivileges = lib.mkForce false;
|
||||||
RestrictNamespaces = lib.mkForce false;
|
|
||||||
RestrictRealtime = lib.mkForce false;
|
RestrictRealtime = lib.mkForce false;
|
||||||
RestrictSUIDSGID = lib.mkForce false;
|
RestrictSUIDSGID = lib.mkForce false;
|
||||||
RemoveIPC = lib.mkForce false;
|
RemoveIPC = lib.mkForce false;
|
||||||
LockPersonality = lib.mkForce false;
|
LockPersonality = lib.mkForce false;
|
||||||
SystemCallFilter = lib.mkForce [ ];
|
|
||||||
RestrictAddressFamilies = lib.mkForce [ ];
|
RestrictAddressFamilies = lib.mkForce [ ];
|
||||||
|
|
||||||
User = lib.mkForce "gitea-runner";
|
User = lib.mkForce "gitea-runner";
|
||||||
|
|||||||
Reference in New Issue
Block a user