chiark / gitweb /
core/mount-setup.c: also relabel /dev/shm for selinux (#3039)
[elogind.git] / src / core / mount-setup.c
index 0467fe210f9459c2278fb0e13e8e0b5bfb8c77fc..0d73ce6fa7c8bdf4ecaeff223efffbd4ce52aca4 100644 (file)
@@ -392,6 +392,7 @@ int mount_setup(bool loaded_policy) {
                 before_relabel = now(CLOCK_MONOTONIC);
 
                 nftw("/dev", nftw_cb, 64, FTW_MOUNT|FTW_PHYS|FTW_ACTIONRETVAL);
+                nftw("/dev/shm", nftw_cb, 64, FTW_MOUNT|FTW_PHYS|FTW_ACTIONRETVAL);
                 nftw("/run", nftw_cb, 64, FTW_MOUNT|FTW_PHYS|FTW_ACTIONRETVAL);
 
                 after_relabel = now(CLOCK_MONOTONIC);