rpm/plugins
Panu Matilainen 153c5c2198 Use common error logic regardless of setexecfilecon() availability
Refactor the custom exec context setting code to look like setexecfilecon()
in case the real one is not available to eliminate pesky behavioral
differences between the two cases.

This fixes a concrete bug of libselinux setexecfilecon() returning with
an error when security_getenforce() returns with -1 (such as a bare
chroot with no /sys mounts etc), causing us to spit out useless error
messages in that case ever since fixing the bogus if-logic in
commit ab601b882b.

Fixes: #1077
2020-02-19 14:26:15 +01:00
..
Makefile.am Add plugin for logging audit events for package operations as per OSPP v4.2 2019-04-09 11:04:02 +02:00
audit.c Add plugin for logging audit events for package operations as per OSPP v4.2 2019-04-09 11:04:02 +02:00
ima.c ima: Also apply signatures to config files 2018-02-12 10:21:40 +02:00
prioreset.c Move scriptlet priority reset to a plugin 2017-03-10 12:15:32 +02:00
selinux.c Use common error logic regardless of setexecfilecon() availability 2020-02-19 14:26:15 +01:00
syslog.c Include system.h in ima and syslog plugins 2017-03-24 12:51:39 +02:00
systemd_inhibit.c Fix a minor memory leak on suppressed inhibition lock warning message 2020-01-29 15:19:18 +01:00