selinux-util: increase log severity
authorChristian Göttsche <cgzones@googlemail.com>
Wed, 18 Dec 2019 13:56:54 +0000 (14:56 +0100)
committerChristian Göttsche <cgzones@googlemail.com>
Tue, 4 Feb 2020 17:11:42 +0000 (18:11 +0100)
commit074b597dd904112b83d9cb1cfea016116aea1e14
tree8663e75085cf27603215047231fdc46d0f8e0900
parent2979f04b99373a8856ad3737006e9390cb209fc8
selinux-util: increase log severity

`log_enforcing()` and `log_enforcing_errno()` are only used for important messages, which describe failures in enforced mode.
They are guarded either by `!mac_selinux_use()` or `!label_hnd` checks, where the latter is itself guarded by the former.
Only SELinux enabled systems print these logs.
This helps to configure a system in permissive mode, without getting surprising failures when switching to enforced mode.
src/basic/selinux-util.c