Bug 836407

Summary: SELinux is preventing /usr/lib/ICAClient/wfica from 'create' accesses on the directory .ICAClient.
Product: [Fedora] Fedora Reporter: Jerry Amundson <jamundso>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:cc5d7892bad7d87c109f6c2ab0ab8a366b4085a16acd17978ec3db73d27c75c2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-21 22:51:11 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 Jerry Amundson 2012-06-29 00:55:34 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.3-1.fc17.i686
time:           Thu 28 Jun 2012 07:54:52 PM CDT

description:
:SELinux is preventing /usr/lib/ICAClient/wfica from 'create' accesses on the directory .ICAClient.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that wfica should be allowed create access on the .ICAClient 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 wfica /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
:                              0.c1023
:Target Context                unconfined_u:object_r:user_home_dir_t:s0
:Target Objects                .ICAClient [ dir ]
:Source                        wfica
:Source Path                   /usr/lib/ICAClient/wfica
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-132.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.3-1.fc17.i686 #1 SMP Mon Jun 18
:                              20:52:37 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    Thu 28 Jun 2012 07:51:43 PM CDT
:Last Seen                     Thu 28 Jun 2012 07:51:43 PM CDT
:Local ID                      0ef6138b-d441-40c7-b780-f3996723ac0f
:
:Raw Audit Messages
:type=AVC msg=audit(1340931103.8:1498): avc:  denied  { create } for  pid=6115 comm="wfica" name=".ICAClient" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1340931103.8:1498): arch=i386 syscall=mkdir per=400000 success=no exit=EACCES a0=bfdcf6a0 a1=1ff a2=81ee160 a3=bfdcf9a0 items=0 ppid=6113 pid=6115 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=165 comm=wfica exe=/usr/lib/ICAClient/wfica subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)
:
:Hash: wfica,mozilla_plugin_t,user_home_dir_t,dir,create
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Miroslav Grepl 2012-07-11 11:39:15 UTC
If you execute

# restorecon -R -v /home

Does it help?

Comment 2 Daniel Walsh 2012-07-11 18:17:05 UTC
Add

	userdom_user_home_dir_filetrans($1, mozilla_home_t, dir, ".ICAClient")


to mozilla_filetrans_home_content

Fix in F18.

Comment 3 Miroslav Grepl 2012-07-12 08:08:26 UTC
Added.

Comment 4 Fedora Update System 2012-07-18 13:04:01 UTC
selinux-policy-3.10.0-140.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-140.fc17

Comment 5 Fedora Update System 2012-07-19 09:10:52 UTC
Package selinux-policy-3.10.0-140.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-140.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-10840/selinux-policy-3.10.0-140.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-07-21 22:51:11 UTC
selinux-policy-3.10.0-140.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.