Christian Göttsche cbd2472b7c migrate to new SELinux api
Using hard-coded access vector ids is deprecated and can lead to issues with custom SELinux policies.
Switch to `selinux_check_access()`.

Also use the libselinux log callback and log if available to audit.
This makes it easier for users to catch SELinux denials.

Drop legacy shortcut logic for passwd, which avoided a SELinux check if uid 0 changes a password of a user which username equals the current SELinux user identifier.
Nowadays usernames rarely match SELinux user identifiers and the benefit of skipping a SELinux check is negligible.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
2019-10-22 14:56:31 +02:00
..
2017-03-01 22:51:09 +01:00
2016-08-03 11:51:07 -05:00
2019-10-22 14:56:31 +02:00
2019-10-22 14:56:31 +02:00
2013-08-13 19:13:45 +02:00
2019-10-12 20:03:51 -05:00
2013-08-15 17:30:19 +02:00
2010-03-18 18:58:52 +00:00
2010-03-18 19:23:00 +00:00