chiark / gitweb /
Make PrivateTmp dirs also inaccessible from the outside
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Mar 2013 05:38:28 +0000 (01:38 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Mar 2013 18:08:41 +0000 (14:08 -0400)
commitd34cd374905a40e65769351a2808b741b5418bf1
tree5dbd6761c13de63a6d5b1c0733d82990abb46aef
parent1f048a6b6bcc30d2e157711b3d231d7a944e6ffb
Make PrivateTmp dirs also inaccessible from the outside

Currently, PrivateTmp=yes means that the service cannot see the /tmp
shared by rest of the system and is isolated from other services using
PrivateTmp, but users can access and modify /tmp as seen by the
service.

Move the private /tmp and /var/tmp directories into a 0077-mode
directory. This way unpriviledged users on the system cannot see (or
modify) /tmp as seen by the service.
src/core/execute.c
src/core/namespace.c
src/shared/util.c
src/shared/util.h
tmpfiles.d/tmp.conf