mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
nspawn: compress mount table a bit
This commit is contained in:
parent
4e2d4c08fc
commit
576a01c873
2
TODO
2
TODO
@ -20,6 +20,8 @@ F15 External:
|
|||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
||||||
|
* warn if the user stops a service but not its associated socket
|
||||||
|
|
||||||
* logind: spawn user@..service on login
|
* logind: spawn user@..service on login
|
||||||
|
|
||||||
* logind: implement shutdown service
|
* logind: implement shutdown service
|
||||||
|
20
src/nspawn.c
20
src/nspawn.c
@ -124,17 +124,17 @@ static int mount_all(const char *dest) {
|
|||||||
} MountPoint;
|
} MountPoint;
|
||||||
|
|
||||||
static const MountPoint mount_table[] = {
|
static const MountPoint mount_table[] = {
|
||||||
{ "/proc", "/proc", "bind", NULL, MS_BIND, true },
|
{ "/proc", "/proc", "bind", NULL, MS_BIND, true },
|
||||||
{ "/proc/sys", "/proc/sys", "bind", NULL, MS_BIND, true }, /* Bind mount first */
|
{ "/proc/sys", "/proc/sys", "bind", NULL, MS_BIND, true }, /* Bind mount first */
|
||||||
{ "/proc/sys", "/proc/sys", "bind", NULL, MS_BIND|MS_RDONLY|MS_REMOUNT, true }, /* Then, make it r/o */
|
{ "/proc/sys", "/proc/sys", "bind", NULL, MS_BIND|MS_RDONLY|MS_REMOUNT, true }, /* Then, make it r/o */
|
||||||
{ "/sys", "/sys", "bind", NULL, MS_BIND, true }, /* Bind mount first */
|
{ "/sys", "/sys", "bind", NULL, MS_BIND, true }, /* Bind mount first */
|
||||||
{ "/sys", "/sys", "bind", NULL, MS_BIND|MS_RDONLY|MS_REMOUNT, true }, /* Then, make it r/o */
|
{ "/sys", "/sys", "bind", NULL, MS_BIND|MS_RDONLY|MS_REMOUNT, true }, /* Then, make it r/o */
|
||||||
{ "tmpfs", "/dev", "tmpfs", "mode=755", MS_NOSUID, true },
|
{ "tmpfs", "/dev", "tmpfs", "mode=755", MS_NOSUID, true },
|
||||||
{ "/dev/pts", "/dev/pts", "bind", NULL, MS_BIND, true },
|
{ "/dev/pts", "/dev/pts", "bind", NULL, MS_BIND, true },
|
||||||
{ "tmpfs", "/run", "tmpfs", "mode=755", MS_NOSUID|MS_NODEV, true },
|
{ "tmpfs", "/run", "tmpfs", "mode=755", MS_NOSUID|MS_NODEV, true },
|
||||||
#ifdef HAVE_SELINUX
|
#ifdef HAVE_SELINUX
|
||||||
{ "/selinux", "/selinux", "bind", NULL, MS_BIND, false }, /* Bind mount first */
|
{ "/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
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user