mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
Moved back to TemporaryFileSystem for system hardening.
I misunderstood bind mounts...
This commit is contained in:
parent
c8382c2126
commit
a90293626d
|
@ -301,8 +301,12 @@ in {
|
|||
)
|
||||
++ [externalStateDir]
|
||||
++ (mapAttrsToList (k: v: v.path) cfg.volumes);
|
||||
ProtectSystem = "strict";
|
||||
ProtectHome = "tmpfs";
|
||||
# ProtectSystem = "strict";
|
||||
# Note that unlike what 'ro' implies,
|
||||
# this actually makes it impossible to read anything in the root FS,
|
||||
# except for things explicitly mounted via `RuntimeDirectory`, `StateDirectory`, `CacheDirectory`, and `BindReadOnlyPaths`.
|
||||
# This is because TemporaryFileSystem creates a *new* *empty* filesystem for the process, so only bindmounts are visible.
|
||||
TemporaryFileSystem = "/:ro";
|
||||
PrivateTmp = true;
|
||||
PrivateDevices = true;
|
||||
ProtectKernelTunables = true;
|
||||
|
|
Loading…
Reference in a new issue