RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1514591 - Restarting ipmievd service results in avc denied errors.
Summary: Restarting ipmievd service results in avc denied errors.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.5
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-17 20:18 UTC by Rachel Sibley
Modified: 2018-10-30 10:01 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-203.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 10:01:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3111 0 None None None 2018-10-30 10:01:53 UTC

Description Rachel Sibley 2017-11-17 20:18:41 UTC
Description of problem:
Restarting the ipmievd service results in avc denied errors.

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-175.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. yum install ipmitool
2. systemctl restart ipmievd
3. /sbin/ausearch -m AVC -m SELINUX_ERR | grep ipmievd

Actual results:
type=SYSCALL msg=audit(1510963531.701:72): arch=c000003e syscall=2 success=no exit=-13 a0=7f0f7aa4d622 a1=0 a2=1b6 a3=21000 items=0 ppi)
type=AVC msg=audit(1510963531.701:72): avc:  denied  { search } for  pid=12830 comm="ipmievd" name="pki" dev="dm-0" ino=33611406 sconter

Expected results:
No avc denied errors

Additional info:
[root@dell-pet710-01 ~]#  ls -Z /dev/ipmi0
crw-------. root root system_u:object_r:ipmi_device_t:s0 /dev/ipmi0
[root@dell-pet710-01 ~]# uname -r
3.10.0-768.el7.x86_64

Related BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1349058

Comment 2 Milos Malik 2017-11-19 18:46:06 UTC
SELinux denial mentioned in comment#0 is not complete. Parts like scontext, tcontext and tclass are missing. Please run following command and attach the output to this bug:

# ausearch -m avc -m user_avc -m selinux_err -m user_selinux_err -i -c ipmievd

Comment 3 Rachel Sibley 2017-11-27 20:22:30 UTC
Hi Milos, additional info provided below:

~]# ausearch -m avc -m user_avc -m selinux_err -m user_selinux_err -i -c ipmievd
----
type=PROCTITLE msg=audit(11/27/2017 20:20:18.851:110) : proctitle=/usr/sbin/ipmievd sel daemon pidfile=/var/run/ipmievd.pid 
type=SYSCALL msg=audit(11/27/2017 20:20:18.851:110) : arch=x86_64 syscall=open success=no exit=EACCES(Permission denied) a0=0x7f0bc3b7d622 a1=O_RDONLY a2=0x1b6 a3=0x21000 items=0 ppid=1 pid=3395 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=ipmievd exe=/usr/sbin/ipmievd subj=system_u:system_r:ipmievd_t:s0 key=(null) 
type=AVC msg=audit(11/27/2017 20:20:18.851:110) : avc:  denied  { search } for  pid=3395 comm=ipmievd name=pki dev="dm-0" ino=33611406 scontext=system_u:system_r:ipmievd_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=dir 
----
type=PROCTITLE msg=audit(11/27/2017 20:21:17.225:113) : proctitle=/usr/sbin/ipmievd sel daemon pidfile=/var/run/ipmievd.pid 
type=SYSCALL msg=audit(11/27/2017 20:21:17.225:113) : arch=x86_64 syscall=open success=no exit=EACCES(Permission denied) a0=0x7fd60e382622 a1=O_RDONLY a2=0x1b6 a3=0x21000 items=0 ppid=1 pid=9167 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=ipmievd exe=/usr/sbin/ipmievd subj=system_u:system_r:ipmievd_t:s0 key=(null) 
type=AVC msg=audit(11/27/2017 20:21:17.225:113) : avc:  denied  { search } for  pid=9167 comm=ipmievd name=pki dev="dm-0" ino=33611406 scontext=system_u:system_r:ipmievd_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=dir

Comment 9 errata-xmlrpc 2018-10-30 10:01:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3111


Note You need to log in before you can comment on or make changes to this bug.