By default mount(8), umount(8), swapon(8) and swapoff(8) should run with
with the SMACK label inherited from systemd rather than the default one
meant for services.
Fixes: aa5ae9711ef3cd0c69b7fcfbd65bca05fb704a8a
Follow-up-for:
20bbf5ee4c6c80599a91e7a4b7474e931a27db4a
if (r < 0)
return r;
+ /* Assume the label inherited from systemd as the fallback */
+ exec_params.fallback_smack_process_label = NULL;
+
r = exec_spawn(UNIT(m),
c,
&m->exec_context,
if (r < 0)
return r;
+ /* Assume the label inherited from systemd as the fallback */
+ exec_params.fallback_smack_process_label = NULL;
+
r = exec_spawn(UNIT(s),
c,
&s->exec_context,