mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 10:25:06 +03:00
mount-setup: fix counting of early mounts without SMACK
http://lists.freedesktop.org/archives/systemd-devel/2014-August/021772.html
This commit is contained in:
parent
f6e81de494
commit
7c96ab1d24
@ -63,8 +63,13 @@ typedef struct MountPoint {
|
||||
|
||||
/* The first three entries we might need before SELinux is up. The
|
||||
* fourth (securityfs) is needed by IMA to load a custom policy. The
|
||||
* other ones we can delay until SELinux and IMA are loaded. */
|
||||
* other ones we can delay until SELinux and IMA are loaded. When
|
||||
* SMACK is enabled we need smackfs, too, so it's a fifth one. */
|
||||
#ifdef HAVE_SMACK
|
||||
#define N_EARLY_MOUNT 5
|
||||
#else
|
||||
#define N_EARLY_MOUNT 4
|
||||
#endif
|
||||
|
||||
static const MountPoint mount_table[] = {
|
||||
{ "sysfs", "/sys", "sysfs", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV,
|
||||
|
Loading…
Reference in New Issue
Block a user