]> git.ipfire.org Git - thirdparty/systemd.git/commit
selinux-setup: modernizations 36955/head
authorLennart Poettering <lennart@poettering.net>
Wed, 2 Apr 2025 13:33:28 +0000 (15:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Apr 2025 14:09:20 +0000 (16:09 +0200)
commitec88828430c1dd6b92c2176ac933469cc1d593a8
treedf802be5db4bf988be2e54c4f4ebd8183f43982c
parentab4a5982c195e611a03a9f970cae27d9fa78acae
selinux-setup: modernizations

Adjustments to match our current coding style, in particular ensures we
always print log messages for unexpected errors.

This changes our code assume mac_selinux_get_create_label_from_exe()
returns a valid label on success. I checked libselinux, this is
guaranteed, and is otherwise relied on in our tree, hence don't do the
pointless check here.
src/core/selinux-setup.c