X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fmount-setup.c;h=07794df049adb65da3c8fe6e8c7add99973ac408;hb=6c1f3ba54ac1f42598c543b86daaf294b29294b1;hp=c26dedca60a466b5fc24f0bff5440565ba6c42d2;hpb=d2e54fae5ca7a0f71b5ac8b356a589ff0a09ea0a;p=elogind.git diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c index c26dedca6..07794df04 100644 --- a/src/core/mount-setup.c +++ b/src/core/mount-setup.c @@ -39,6 +39,7 @@ #include "strv.h" #include "mkdir.h" #include "path-util.h" +#include "missing.h" #ifndef TTY_GID #define TTY_GID 5 @@ -120,7 +121,7 @@ static int mount_one(const MountPoint *p, bool relabel) { /* Relabel first, just in case */ if (relabel) - label_fix(p->where, true); + label_fix(p->where, true, true); if ((r = path_is_mount_point(p->where, true)) < 0) return r; @@ -149,7 +150,7 @@ static int mount_one(const MountPoint *p, bool relabel) { /* Relabel again, since we now mounted something fresh here */ if (relabel) - label_fix(p->where, false); + label_fix(p->where, false, false); return 1; } @@ -346,7 +347,7 @@ static int nftw_cb( if (_unlikely_(ftwbuf->level == 0)) return FTW_CONTINUE; - label_fix(fpath, true); + label_fix(fpath, false, false); /* /run/initramfs is static data and big, no need to * dynamically relabel its contents at boot... */ @@ -390,7 +391,7 @@ int mount_setup(bool loaded_policy) { /* Explicitly relabel these */ NULSTR_FOREACH(j, relabel) - label_fix(j, true); + label_fix(j, true, false); after_relabel = now(CLOCK_MONOTONIC);