Bug 524639
Summary: | SELinux is preventing snmpd (snmpd_t) "getattr" to /root/.rpmmacros (user_home_dir_t) | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Milos Malik <mmalik> |
Component: | selinux-policy | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE <qe-baseos-auto> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 5.4 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-10-15 18:35:49 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Milos Malik
2009-09-21 15:17:12 UTC
Following command does not help, new AVC appears each time when snmpd service is started. restorecon -v /root/.rpmmacros To be precise slighly different AVC appears (target context = user_home_dir_t vs. user_home_t). type=AVC msg=audit(1253546483.292:3963): avc: denied { getattr } for pid=22098 comm="snmpd" path="/root/.rpmmacros" dev=dm-0 ino=1047145 scontext=root:system_r:snmpd_t:s0 tcontext=root:object_r:user_home_t:s0 tclass=file type=SYSCALL msg=audit(1253546483.292:3963): arch=40000003 syscall=195 success=no exit=-13 a0=bf885930 a1=bf885998 a2=a29ff4 a3=5 items=0 ppid=1 pid=22098 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=577 comm="snmpd" exe="/usr/sbin/snmpd" subj=root:system_r:snmpd_t:s0 key=(null) How about you remove the /root/.rpmmacros file and the problem goes away. snmpd for some reason is executing some rpm code which is trying to look at this file. |