Description of problem: * the openhpid service runs successfully even if the denials appear Version-Release number of selected component (if applicable): openhpi-3.8.0-10.fc32.x86_64 openhpi-libs-3.8.0-10.fc32.x86_64 selinux-policy-3.14.5-28.fc32.noarch selinux-policy-targeted-3.14.5-28.fc32.noarch How reproducible: * always Steps to Reproduce: 1. get a Fedora 32 machine (targeted policy is active) 2. remove the OPENHPI_UNCONFIGURED line from /etc/openhpi/openhpi.conf file 3. start the openhpid service 4. search for SELinux denials Actual results (enforcing mode): ---- type=PROCTITLE msg=audit(03/17/2020 04:10:18.052:360) : proctitle=/usr/sbin/openhpid -c /etc/openhpi/openhpi.conf type=SYSCALL msg=audit(03/17/2020 04:10:18.052:360) : arch=x86_64 syscall=sched_setattr success=no exit=EACCES(Permission denied) a0=0x63e a1=0x55c86579aab0 a2=0x0 a3=0x7ff2cce78a40 items=0 ppid=1 pid=1598 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=openhpid exe=/usr/sbin/openhpid subj=system_u:system_r:openhpid_t:s0 key=(null) type=AVC msg=audit(03/17/2020 04:10:18.052:360) : avc: denied { setsched } for pid=1598 comm=openhpid scontext=system_u:system_r:openhpid_t:s0 tcontext=system_u:system_r:openhpid_t:s0 tclass=process permissive=0 type=AVC msg=audit(03/17/2020 04:10:18.052:360) : avc: denied { sys_nice } for pid=1598 comm=openhpid capability=sys_nice scontext=system_u:system_r:openhpid_t:s0 tcontext=system_u:system_r:openhpid_t:s0 tclass=capability permissive=0 ---- Expected results: * no SELinux denials
Actual results (permissive mode): ---- type=PROCTITLE msg=audit(03/17/2020 04:17:30.146:367) : proctitle=/usr/sbin/openhpid -c /etc/openhpi/openhpi.conf type=SYSCALL msg=audit(03/17/2020 04:17:30.146:367) : arch=x86_64 syscall=sched_setattr success=yes exit=0 a0=0x67e a1=0x55eaa59efa80 a2=0x0 a3=0x7f479ce07a40 items=0 ppid=1 pid=1662 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=openhpid exe=/usr/sbin/openhpid subj=system_u:system_r:openhpid_t:s0 key=(null) type=AVC msg=audit(03/17/2020 04:17:30.146:367) : avc: denied { setsched } for pid=1662 comm=openhpid scontext=system_u:system_r:openhpid_t:s0 tcontext=system_u:system_r:openhpid_t:s0 tclass=process permissive=1 type=AVC msg=audit(03/17/2020 04:17:30.146:367) : avc: denied { sys_nice } for pid=1662 comm=openhpid capability=sys_nice scontext=system_u:system_r:openhpid_t:s0 tcontext=system_u:system_r:openhpid_t:s0 tclass=capability permissive=1 ---- There are no additional SELinux denials recorded on the machine.
After upgrading selinux-policy* packages to 3.14.5-30.fc32 the number of SELinux denials decreases: ---- type=PROCTITLE msg=audit(03/17/2020 04:30:02.890:383) : proctitle=/usr/sbin/openhpid -c /etc/openhpi/openhpi.conf type=SYSCALL msg=audit(03/17/2020 04:30:02.890:383) : arch=x86_64 syscall=sched_setattr success=no exit=EACCES(Permission denied) a0=0x9bb a1=0x559a6eed9a80 a2=0x0 a3=0x7ff4cf883a40 items=0 ppid=1 pid=2491 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=openhpid exe=/usr/sbin/openhpid subj=system_u:system_r:openhpid_t:s0 key=(null) type=AVC msg=audit(03/17/2020 04:30:02.890:383) : avc: denied { sys_nice } for pid=2491 comm=openhpid capability=sys_nice scontext=system_u:system_r:openhpid_t:s0 tcontext=system_u:system_r:openhpid_t:s0 tclass=capability permissive=0 ----
Following SELinux denial still appears: ---- type=PROCTITLE msg=audit(03/17/2020 04:33:53.480:388) : proctitle=/usr/sbin/openhpid -c /etc/openhpi/openhpi.conf type=SYSCALL msg=audit(03/17/2020 04:33:53.480:388) : arch=x86_64 syscall=sched_setattr success=yes exit=0 a0=0x9d6 a1=0x56418ff41a80 a2=0x0 a3=0x7f3f92ee4a40 items=0 ppid=1 pid=2518 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=openhpid exe=/usr/sbin/openhpid subj=system_u:system_r:openhpid_t:s0 key=(null) type=AVC msg=audit(03/17/2020 04:33:53.480:388) : avc: denied { sys_nice } for pid=2518 comm=openhpid capability=sys_nice scontext=system_u:system_r:openhpid_t:s0 tcontext=system_u:system_r:openhpid_t:s0 tclass=capability permissive=1 ----
*** This bug has been marked as a duplicate of bug 1811407 ***