]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - units/systemd-nspawn@.service.in
nspawn: set DevicesPolicy closed and clean up duplicated devices
[thirdparty/systemd.git] / units / systemd-nspawn@.service.in
index 8f9cf9acfe7094747d9871140290bebef5847b7e..c8141639b6bc329dbaeb717143de1cc9099485a5 100644 (file)
@@ -25,18 +25,9 @@ TasksMax=16384
 # Enforce a strict device policy, similar to the one nspawn configures
 # when it allocates its own scope unit. Make sure to keep these
 # policies in sync if you change them!
-DevicePolicy=strict
-DeviceAllow=/dev/null rwm
-DeviceAllow=/dev/zero rwm
-DeviceAllow=/dev/full rwm
-DeviceAllow=/dev/random rwm
-DeviceAllow=/dev/urandom rwm
-DeviceAllow=/dev/tty rwm
+DevicePolicy=closed
 DeviceAllow=/dev/net/tun rwm
-DeviceAllow=/dev/pts/ptmx rw
 DeviceAllow=char-pts rw
-DeviceAllow=/run/systemd/inaccessible/chr rwm
-DeviceAllow=/run/systemd/inaccessible/blk rwm
 
 # nspawn itself needs access to /dev/loop-control and /dev/loop, to
 # implement the --image= option. Add these here, too.