Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
commit ab7d6fdda3517ce43947f69eda9750c40e3f1ce8
Author: Miroslav Grepl <mgrepl>
Date: Mon Oct 13 11:15:59 2014 +0200
ALlow sensord to getattr on sysfs.
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://rhn.redhat.com/errata/RHBA-2015-0458.html
Description of problem: Version-Release number of selected component (if applicable): lm_sensors-sensord-3.3.4-11.el7.x86_64 selinux-policy-3.13.1-1.el7.noarch selinux-policy-devel-3.13.1-1.el7.noarch selinux-policy-mls-3.13.1-1.el7.noarch selinux-policy-targeted-3.13.1-1.el7.noarch How reproducible: always Steps to Reproduce: 1. get a RHEL-7.1 machine with active targeted policy 2. service sensord start 3. search for AVCs Actual results (enforcing mode): ---- type=PATH msg=audit(10/03/2014 16:43:35.985:834) : item=0 name=/sys inode=1 dev=00:10 mode=dir,555 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:sysfs_t:s0 objtype=NORMAL type=CWD msg=audit(10/03/2014 16:43:35.985:834) : cwd=/ type=SYSCALL msg=audit(10/03/2014 16:43:35.985:834) : arch=x86_64 syscall=statfs success=no exit=-13(Permission denied) a0=0x7fbfece512a0 a1=0x7fff58edd080 a2=0xffffffff a3=0x7fff58edce00 items=1 ppid=1 pid=6508 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=sensord exe=/usr/sbin/sensord subj=system_u:system_r:sensord_t:s0 key=(null) type=AVC msg=audit(10/03/2014 16:43:35.985:834) : avc: denied { getattr } for pid=6508 comm=sensord name=/ dev="sysfs" ino=1 scontext=system_u:system_r:sensord_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=filesystem ---- Actual results (permissive mode): ---- type=PATH msg=audit(10/03/2014 16:45:01.780:383) : item=0 name=/sys inode=1 dev=00:10 mode=dir,555 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:sysfs_t:s0 objtype=NORMAL type=CWD msg=audit(10/03/2014 16:45:01.780:383) : cwd=/ type=SYSCALL msg=audit(10/03/2014 16:45:01.780:383) : arch=x86_64 syscall=statfs success=yes exit=0 a0=0x7f34ad70e2a0 a1=0x7fff7bbd1e50 a2=0xffffffff a3=0x7fff7bbd1bd0 items=1 ppid=1 pid=5347 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=sensord exe=/usr/sbin/sensord subj=system_u:system_r:sensord_t:s0 key=(null) type=AVC msg=audit(10/03/2014 16:45:01.780:383) : avc: denied { getattr } for pid=5347 comm=sensord name=/ dev="sysfs" ino=1 scontext=system_u:system_r:sensord_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=filesystem ---- Expected results: * no AVCs