Bug 671365

Summary: SELinux is preventing /usr/sbin/aiccu from 'search' accesses on the directory /home.
Product: [Fedora] Fedora Reporter: Ioannis Aslanidis <aslanidis>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:30458948d2cb6517299ac287c90b2c9b453431112f9bd0497bcd49aaa79626f0
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-11 15:30:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ioannis Aslanidis 2011-01-21 12:24:10 UTC
SELinux is preventing /usr/sbin/aiccu from 'search' accesses on the directory /home.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that aiccu should be allowed search access on the home directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep aiccu /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:aiccu_t:s0
Target Context                system_u:object_r:home_root_t:s0
Target Objects                /home [ dir ]
Source                        aiccu
Source Path                   /usr/sbin/aiccu
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           aiccu-2007.01.15-7.fc12
Target RPM Packages           filesystem-2.4.35-1.fc14
Policy RPM                    selinux-policy-3.9.7-20.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec 23
                              16:04:50 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Fri 21 Jan 2011 01:22:56 PM CET
Last Seen                     Fri 21 Jan 2011 01:22:56 PM CET
Local ID                      5b6b0682-dc93-4206-97a3-8e1dd5c85c2f

Raw Audit Messages
type=AVC msg=audit(1295612576.898:28313): avc:  denied  { search } for  pid=10502 comm="aiccu" name="home" dev=sda3 ino=6553601 scontext=unconfined_u:system_r:aiccu_t:s0 tcontext=system_u:object_r:home_root_t:s0 tclass=dir

aiccu,aiccu_t,home_root_t,dir,search
type=SYSCALL msg=audit(1295612576.898:28313): arch=x86_64 syscall=open success=no exit=EACCES a0=7fffddd93ca0 a1=0 a2=1b6 a3=0 items=0 ppid=10501 pid=10502 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm=aiccu exe=/usr/sbin/aiccu subj=unconfined_u:system_r:aiccu_t:s0 key=(null)
aiccu,aiccu_t,home_root_t,dir,search

#============= aiccu_t ==============
allow aiccu_t home_root_t:dir search;

Comment 1 Ioannis Aslanidis 2011-01-21 12:35:30 UTC
When trying to load the SELinux module, I get this message:

libsepol.print_missing_requirements: aiccu's global requirements were not met: type/attribute aiccu_t (No such file or directory).
libsemanage.semanage_link_sandbox: Link packages failed (No such file or directory).
semodule:  Failed!

Comment 2 Daniel Walsh 2011-01-21 12:58:26 UTC
Please attach the te file you used to build.  Were you in the /home directory when you told aiccu to restart?