You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
boolskip_if_run_is_rec; /* For child mounts of /run, if it's moved recursively no need to handle */
36
42
} transfer_table[] = {
37
-
{ "/dev", MS_BIND|MS_REC }, /* Recursive, because we want to save the original /dev/shm + /dev/pts and similar */
38
-
{ "/sys", MS_BIND|MS_REC }, /* Similar, we want to retain various API VFS, or the cgroupv1 /sys/fs/cgroup/ tree */
39
-
{ "/proc", MS_BIND|MS_REC }, /* Similar */
40
-
{ "/run", MS_BIND}, /* Stuff mounted below this we don't save, as it might have lost its relevance, i.e. credentials, removable media and such, we rather want that the new boot mounts this fresh */
41
-
{ SYSTEM_CREDENTIALS_DIRECTORY, MS_BIND},/* Credentials passed into the system should survive */
42
-
{ ENCRYPTED_SYSTEM_CREDENTIALS_DIRECTORY, MS_BIND},/* Similar */
43
-
{ "/run/host", MS_BIND|MS_REC },/* Host supplied hierarchy should also survive */
43
+
{ "/dev", MS_BIND|MS_REC, false }, /* Recursive, because we want to save the original /dev/shm + /dev/pts and similar */
44
+
{ "/sys", MS_BIND|MS_REC, false }, /* Similar, we want to retain various API VFS, or the cgroupv1 /sys/fs/cgroup/ tree */
45
+
{ "/proc", MS_BIND|MS_REC, false }, /* Similar */
46
+
{ "/run", run_mount_flags, false }, /* Recursive except on soft reboot, see above */
47
+
{ SYSTEM_CREDENTIALS_DIRECTORY, MS_BIND, true }, /* Credentials passed into the system should survive */
48
+
{ ENCRYPTED_SYSTEM_CREDENTIALS_DIRECTORY, MS_BIND, true }, /* Similar */
49
+
{ "/run/host", MS_BIND|MS_REC, true }, /* Host supplied hierarchy should also survive */
0 commit comments