Bug 704830

Summary: SELinux is preventing /usr/libexec/mission-control-5 (deleted) from 'write' accesses on the directory .cache.
Product: [Fedora] Fedora Reporter: lex0tanil <adminakos>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:4906b0214785f62b682f084b86e812cc830cd97bf24b4841664f7d67e54a5db6
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-16 05:47:48 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 lex0tanil 2011-05-15 11:22:36 UTC
SELinux is preventing /usr/libexec/mission-control-5 (deleted) from 'write' accesses on the directory .cache.

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

If you believe that mission-control-5 (deleted) should be allowed write access on the .cache 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 mission-control /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:telepathy_mission_contro
                              l_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                .cache [ dir ]
Source                        mission-control
Source Path                   /usr/libexec/mission-control-5 (deleted)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-23.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.x86_64 #1 SMP Wed Mar
                              30 16:55:57 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Fri 13 May 2011 03:18:42 PM BST
Last Seen                     Fri 13 May 2011 03:18:42 PM BST
Local ID                      9434800a-c2bc-4f4e-90ba-45174a441ec3

Raw Audit Messages
type=AVC msg=audit(1305296322.278:133): avc:  denied  { write } for  pid=1874 comm="mission-control" name=".cache" dev=dm-2 ino=1048603 scontext=unconfined_u:unconfined_r:telepathy_mission_control_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir


type=AVC msg=audit(1305296322.278:133): avc:  denied  { add_name } for  pid=1874 comm="mission-control" name=".mc_connections" scontext=unconfined_u:unconfined_r:telepathy_mission_control_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir


type=AVC msg=audit(1305296322.278:133): avc:  denied  { create } for  pid=1874 comm="mission-control" name=".mc_connections" scontext=unconfined_u:unconfined_r:telepathy_mission_control_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=AVC msg=audit(1305296322.278:133): avc:  denied  { write open } for  pid=1874 comm="mission-control" name=".mc_connections" dev=dm-2 ino=1048944 scontext=unconfined_u:unconfined_r:telepathy_mission_control_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1305296322.278:133): arch=x86_64 syscall=open success=yes exit=EBADF a0=1279a80 a1=241 a2=1b6 a3=7fff624ddec0 items=0 ppid=1 pid=1874 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=mission-control exe=2F7573722F6C6962657865632F6D697373696F6E2D636F6E74726F6C2D35202864656C6574656429 subj=unconfined_u:unconfined_r:telepathy_mission_control_t:s0-s0:c0.c1023 key=(null)

Hash: mission-control,telepathy_mission_control_t,user_home_t,dir,write

audit2allow

#============= telepathy_mission_control_t ==============
#!!!! The source type 'telepathy_mission_control_t' can write to a 'dir' of the following types:
# telepathy_mission_control_home_t, telepathy_mission_control_cache_home_t, user_home_dir_t, cache_home_t

allow telepathy_mission_control_t user_home_t:dir { write add_name };
#!!!! The source type 'telepathy_mission_control_t' can write to a 'file' of the following types:
# telepathy_mission_control_home_t, telepathy_mission_control_cache_home_t

allow telepathy_mission_control_t user_home_t:file { write create open };

audit2allow -R

#============= telepathy_mission_control_t ==============
#!!!! The source type 'telepathy_mission_control_t' can write to a 'dir' of the following types:
# telepathy_mission_control_home_t, telepathy_mission_control_cache_home_t, user_home_dir_t, cache_home_t

allow telepathy_mission_control_t user_home_t:dir { write add_name };
#!!!! The source type 'telepathy_mission_control_t' can write to a 'file' of the following types:
# telepathy_mission_control_home_t, telepathy_mission_control_cache_home_t

allow telepathy_mission_control_t user_home_t:file { write create open };

Comment 1 Miroslav Grepl 2011-05-16 05:47:48 UTC
Looks like your homedir is mislabeled. Execute

# restorecon -R -v ~/

and also could you please close this instance Empathy and run a new one.