Bug 696910

Summary: SELinux is preventing /usr/bin/pulseaudio from 'setattr' accesses on the directory /home/amit/.sandbox_ff_home/.pulse.
Product: [Fedora] Fedora Reporter: Amit Shah <amit.shah>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:b6c3123ef0adb4b85310633297b2f6f409b66b159e0b7d960d3f1f8b66dcf986
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-07 19:34: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 Amit Shah 2011-04-15 08:49:49 UTC
SELinux is preventing /usr/bin/pulseaudio from 'setattr' accesses on the directory /home/amit/.sandbox_ff_home/.pulse.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/home/amit/.sandbox_ff_home/.pulse default label should be user_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/amit/.sandbox_ff_home/.pulse

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that pulseaudio should be allowed setattr access on the .pulse 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 pulseaudio /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:sandbox_web_client_t:s0:
                              c6,c215
Target Context                unconfined_u:object_r:sandbox_file_t:s0:c197,c496
Target Objects                /home/amit/.sandbox_ff_home/.pulse [ dir ]
Source                        pulseaudio
Source Path                   /usr/bin/pulseaudio
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           pulseaudio-0.9.21-7.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-37.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-10.fc15.x86_64
                              #1 SMP Thu Mar 31 03:11:25 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Tue 12 Apr 2011 02:35:33 PM IST
Last Seen                     Tue 12 Apr 2011 02:35:33 PM IST
Local ID                      795acbf4-c921-435c-bec8-218764760d4d

Raw Audit Messages
type=AVC msg=audit(1302599133.531:27077): avc:  denied  { setattr } for  pid=19205 comm="pulseaudio" name=".pulse" dev=dm-3 ino=5376805 scontext=unconfined_u:unconfined_r:sandbox_web_client_t:s0:c6,c215 tcontext=unconfined_u:object_r:sandbox_file_t:s0:c197,c496 tclass=dir


type=SYSCALL msg=audit(1302599133.531:27077): arch=x86_64 syscall=chown success=yes exit=0 a0=d6dc70 a1=1f4 a2=1f5 a3=34cf480710 items=0 ppid=1 pid=19205 auid=500 uid=500 gid=501 euid=500 suid=500 fsuid=500 egid=501 sgid=501 fsgid=501 tty=(none) ses=1 comm=pulseaudio exe=/usr/bin/pulseaudio subj=unconfined_u:unconfined_r:sandbox_web_client_t:s0:c6,c215 key=(null)

Hash: pulseaudio,sandbox_web_client_t,sandbox_file_t,dir,setattr

audit2allow

#============= sandbox_web_client_t ==============
#!!!! This avc is a constraint violation.  You will need to add an attribute to either the source or target type to make it work.
#Contraint rule: 
allow sandbox_web_client_t sandbox_file_t:dir setattr;

audit2allow -R

#============= sandbox_web_client_t ==============
#!!!! This avc is a constraint violation.  You will need to add an attribute to either the source or target type to make it work.
#Contraint rule: 
allow sandbox_web_client_t sandbox_file_t:dir setattr;

Comment 1 Miroslav Grepl 2011-04-15 12:17:40 UTC
How did you run sandbox?

Comment 2 Daniel Walsh 2011-04-15 12:26:01 UTC
This looks like they are running with a permanant homedir?

Comment 3 Amit Shah 2011-04-16 02:49:03 UTC
Right:

sandbox -X -t sandbox_web_t -H ~/.sandbox_ff_home firefox about:blank