nspawn: compress mount table a bit

This commit is contained in:
Lennart Poettering 2011-07-13 22:50:59 +02:00
parent 4e2d4c08fc
commit 576a01c873
2 changed files with 12 additions and 10 deletions

2
TODO
View File

@ -20,6 +20,8 @@ F15 External:
Features:
* warn if the user stops a service but not its associated socket
* logind: spawn user@..service on login
* logind: implement shutdown service

View File

@ -134,7 +134,7 @@ static int mount_all(const char *dest) {
{ "tmpfs", "/run", "tmpfs", "mode=755", MS_NOSUID|MS_NODEV, true },
#ifdef HAVE_SELINUX
{ "/selinux", "/selinux", "bind", NULL, MS_BIND, false }, /* Bind mount first */
{ "/selinux", "/selinux", "selinuxfs", NULL, MS_BIND|MS_RDONLY|MS_REMOUNT, false }, /* Then, make it r/o */
{ "/selinux", "/selinux", "bind", NULL, MS_BIND|MS_RDONLY|MS_REMOUNT, false }, /* Then, make it r/o */
#endif
};