diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2014-11-20 14:37:08 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-21 00:34:26 +0100 |
commit | 797e7a51cdfb23fa1b90b0a0ea2d5c1c83a739e1 (patch) | |
tree | f4efc0322171aa6da9a87a390af2110b28c1ca02 /tmpfiles.d | |
parent | 1fc5560911a7e9e8cf2993e17e1f0a001e148809 (diff) | |
download | systemd-797e7a51cdfb23fa1b90b0a0ea2d5c1c83a739e1.tar.gz |
tmpfiles.d: Create /var/lib/containers
Create /var/lib/containers so that it exists with an appropriate mode. We want
0700 by default so that users on the host aren't able to call suid root
binaries in the container. This becomes a security issue if a user can enter a
container as root, create a suid root binary, and call that from the host.
(This assumes that containers are caged by mandatory access control or are
started as user).
Diffstat (limited to 'tmpfiles.d')
-rw-r--r-- | tmpfiles.d/var.conf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tmpfiles.d/var.conf b/tmpfiles.d/var.conf index 4b63e4197b..b4bf3bc58b 100644 --- a/tmpfiles.d/var.conf +++ b/tmpfiles.d/var.conf @@ -18,4 +18,6 @@ f /var/log/btmp 0600 root utmp - d /var/cache 0755 - - - d /var/lib 0755 - - - +d /var/lib/containers 0700 - - - + d /var/spool 0755 - - - |