diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-07-22 17:37:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-22 17:37:54 +0200 |
commit | 8a18507c55ea89451c32ae10d4cc11acc828b279 (patch) | |
tree | a02e298c4a12e5d7ac6a6cebbf6945eff5693b3d /units | |
parent | b3d1d51603408e7aea7971fabf41b38c9e12fd69 (diff) | |
parent | 0d9e799102674c50e0755686a6b93f933d9f49a3 (diff) |
Merge pull request #3779 from kinvolk/alessandro/nspawn-inaccessible-devs
cgroup: whitelist inaccessible devices for "auto" and "closed" DevicePolicy
Diffstat (limited to 'units')
-rw-r--r-- | units/systemd-nspawn@.service.in | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in index 8f9cf9acfe..c8141639b6 100644 --- a/units/systemd-nspawn@.service.in +++ b/units/systemd-nspawn@.service.in @@ -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. |