core: make mount(8) and swapon(8) inherit SMACK label from systemd
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 29 Oct 2024 14:53:45 +0000 (15:53 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 Oct 2024 16:41:23 +0000 (17:41 +0100)
commit8144537a81c7a815af3d4c63cd8545ee17b2715d
tree65717ebf7fb25896cee9dfd18e9f7bb5c9e96630
parent58ada3eab2b51fd238b48842e7c77aaa4e9fcbf2
core: make mount(8) and swapon(8) inherit SMACK label from systemd

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
src/core/mount.c
src/core/swap.c