Bug 691101

Summary: SELinux is preventing /usr/libexec/mission-control-5.#prelink#.d1OCKN (deleted) from 'remove_name' accesses on the directory accounts.cfg.J7TJSV.
Product: [Fedora] Fedora Reporter: Trevor Davenport <trevor.davenport>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:d98b5d1cc69ed86ec6fc74dafdf8dfd75e8b5af437ac62c6a1b3408163a1bc9b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-28 11:42:26 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 Trevor Davenport 2011-03-26 18:26:18 UTC
SELinux is preventing /usr/libexec/mission-control-5.#prelink#.d1OCKN (deleted) from 'remove_name' accesses on the directory accounts.cfg.J7TJSV.

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

If you believe that mission-control-5.#prelink#.d1OCKN (deleted) should be allowed remove_name access on the accounts.cfg.J7TJSV 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                accounts.cfg.J7TJSV [ dir ]
Source                        mission-control
Source Path                   /usr/libexec/mission-control-5.#prelink#.d1OCKN
                              (deleted)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.1-6.fc15.x86_64
                              #1 SMP Wed Mar 23 22:43:31 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Sat 26 Mar 2011 11:24:46 AM PDT
Last Seen                     Sat 26 Mar 2011 11:24:46 AM PDT
Local ID                      1874c707-4fba-44f4-8585-d68f3831a5f2

Raw Audit Messages
type=AVC msg=audit(1301163886.942:390): avc:  denied  { remove_name } for  pid=26660 comm="mission-control" name="accounts.cfg.J7TJSV" dev=dm-5 ino=21234602 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(1301163886.942:390): avc:  denied  { rename } for  pid=26660 comm="mission-control" name="accounts.cfg.J7TJSV" dev=dm-5 ino=21234602 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(1301163886.942:390): avc:  denied  { unlink } for  pid=26660 comm="mission-control" name="accounts.cfg" dev=dm-5 ino=21234606 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(1301163886.942:390): arch=x86_64 syscall=rename success=yes exit=0 a0=1eeae50 a1=1e2f120 a2=1e71640 a3=1 items=0 ppid=1 pid=26660 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=3 comm=mission-control exe=2F7573722F6C6962657865632F6D697373696F6E2D636F6E74726F6C2D352E237072656C696E6B232E64314F434B4E202864656C6574656429 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,remove_name

audit2allow

#============= telepathy_mission_control_t ==============
allow telepathy_mission_control_t user_home_t:dir remove_name;
allow telepathy_mission_control_t user_home_t:file { rename unlink };

audit2allow -R

#============= telepathy_mission_control_t ==============
allow telepathy_mission_control_t user_home_t:dir remove_name;
allow telepathy_mission_control_t user_home_t:file { rename unlink };

Comment 1 Miroslav Grepl 2011-03-28 11:42:26 UTC
Execute

# restorecon -R -v ~/

Should fix it.