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)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 13 Nov 2024 19:48:10 +0000 (19:48 +0000)
commit9d060fb7eb6be828c3a6a822e38dabcc627ac98d
treec8b84a41e8e76371f75aa3d711d4d07ca2ce180d
parentc54a5fa6a8bfc6b1b7ad87ccc6d59679cdf7ef5a
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
(cherry picked from commit 8144537a81c7a815af3d4c63cd8545ee17b2715d)
src/core/mount.c
src/core/swap.c