mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +03:00
core: reindent mount/kmod tables
This commit is contained in:
parent
0ad68f8743
commit
68d4c45263
@ -81,7 +81,7 @@ static const MountPoint mount_table[] = {
|
||||
{ "securityfs", "/sys/kernel/security", "securityfs", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV,
|
||||
NULL, MNT_NONE },
|
||||
#ifdef HAVE_SMACK
|
||||
{ "smackfs", "/sys/fs/smackfs", "smackfs", "smackfsdef=*", MS_NOSUID|MS_NOEXEC|MS_NODEV|MS_STRICTATIME,
|
||||
{ "smackfs", "/sys/fs/smackfs", "smackfs", "smackfsdef=*", MS_NOSUID|MS_NOEXEC|MS_NODEV,
|
||||
mac_smack_use, MNT_FATAL },
|
||||
{ "tmpfs", "/dev/shm", "tmpfs", "mode=1777,smackfsroot=*", MS_NOSUID|MS_NODEV|MS_STRICTATIME,
|
||||
mac_smack_use, MNT_FATAL },
|
||||
@ -380,15 +380,19 @@ static int nftw_cb(
|
||||
#endif
|
||||
|
||||
int mount_setup(bool loaded_policy) {
|
||||
int r;
|
||||
unsigned i;
|
||||
int r = 0;
|
||||
|
||||
for (i = 0; i < ELEMENTSOF(mount_table); i ++) {
|
||||
r = mount_one(mount_table + i, true);
|
||||
int j;
|
||||
|
||||
j = mount_one(mount_table + i, loaded_policy);
|
||||
if (r == 0)
|
||||
r = j;
|
||||
}
|
||||
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
||||
#if defined(HAVE_SELINUX) || defined(HAVE_SMACK)
|
||||
/* Nodes in devtmpfs and /run need to be manually updated for
|
||||
|
Loading…
Reference in New Issue
Block a user