Bug 748947 - SELinux is preventing /sbin/consoletype from 'write' accesses on the file /home/alirohman/.kde/share/config/dolphinrc.lock (deleted).
Summary: SELinux is preventing /sbin/consoletype from 'write' accesses on the file /ho...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:647be190ef4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-25 16:27 UTC by Ali Rohman
Modified: 2011-10-26 07:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-26 07:52:31 UTC
Type: ---


Attachments (Terms of Use)

Description Ali Rohman 2011-10-25 16:27:33 UTC
SELinux is preventing /sbin/consoletype from 'write' accesses on the file /home/(removed)/.kde/share/config/dolphinrc.lock (deleted).

*****  Plugin restorecon (98.5 confidence) suggests  *************************

If you want to fix the label. 
/home/(removed)/.kde/share/config/dolphinrc.lock (deleted) default label should be config_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/(removed)/.kde/share/config/dolphinrc.lock (deleted)

*****  Plugin leaks (1.48 confidence) suggests  ******************************

If you want to ignore consoletype trying to write access the dolphinrc.lock (deleted) file, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /sbin/consoletype /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

*****  Plugin catchall (1.48 confidence) suggests  ***************************

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

Additional Information:
Source Context                unconfined_u:system_r:consoletype_t:s0
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                /home/(removed)/.kde/share/config/dolphinrc.lock
                              (deleted) [ file ]
Source                        consoletype
Source Path                   /sbin/consoletype
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           initscripts-9.30.1-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-44.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.40.7-0.fc15.x86_64 #1 SMP Mon
                              Oct 17 18:23:57 UTC 2011 x86_64 x86_64
Alert Count                   4
First Seen                    Tue 25 Oct 2011 05:37:46 PM WIT
Last Seen                     Tue 25 Oct 2011 10:06:58 PM WIT
Local ID                      5d124d1a-2a8f-4f93-9363-feca58f4d875

Raw Audit Messages
type=AVC msg=audit(1319555218.979:102): avc:  denied  { write } for  pid=3456 comm="consoletype" path=2F686F6D652F616C69726F686D616E2F2E6B64652F73686172652F636F6E6669672F646F6C7068696E72632E6C6F636B202864656C6574656429 dev=dm-2 ino=20710976 scontext=unconfined_u:system_r:consoletype_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=AVC msg=audit(1319555218.979:102): avc:  denied  { write } for  pid=3456 comm="consoletype" path=2F686F6D652F616C69726F686D616E2F2E6B64652F73686172652F636F6E6669672F646F6C7068696E72632E6C6F636B202864656C6574656429 dev=dm-2 ino=20710680 scontext=unconfined_u:system_r:consoletype_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=AVC msg=audit(1319555218.979:102): avc:  denied  { write } for  pid=3456 comm="consoletype" path=2F686F6D652F616C69726F686D616E2F446F776E6C6F6164732F2E6469726563746F72792E6C6F636B202864656C6574656429 dev=dm-2 ino=20710958 scontext=unconfined_u:system_r:consoletype_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=AVC msg=audit(1319555218.979:102): avc:  denied  { write } for  pid=3456 comm="consoletype" path=2F686F6D652F616C69726F686D616E2F446F776E6C6F6164732F2E6469726563746F72792E6C6F636B202864656C6574656429 dev=dm-2 ino=20710904 scontext=unconfined_u:system_r:consoletype_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=AVC msg=audit(1319555218.979:102): avc:  denied  { write } for  pid=3456 comm="consoletype" path=2F686F6D652F616C69726F686D616E2F2E6B64652F73686172652F617070732F646F6C7068696E2F766965775F70726F706572746965732F6C6F63616C2F6574632F2E6469726563746F72792E6C6F636B202864656C6574656429 dev=dm-2 ino=21496609 scontext=unconfined_u:system_r:consoletype_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=AVC msg=audit(1319555218.979:102): avc:  denied  { write } for  pid=3456 comm="consoletype" path=2F686F6D652F616C69726F686D616E2F2E6B64652F73686172652F617070732F526563656E74446F63756D656E74732F68747470642D322E322E32312E7461722E677A2E6465736B746F702E6C6F636B202864656C6574656429 dev=dm-2 ino=20710977 scontext=unconfined_u:system_r:consoletype_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=AVC msg=audit(1319555218.979:102): avc:  denied  { write } for  pid=3456 comm="consoletype" path=2F686F6D652F616C69726F686D616E2F2E6B64652F73686172652F636F6E6669672F646F6C7068696E72632E6C6F636B202864656C6574656429 dev=dm-2 ino=20710786 scontext=unconfined_u:system_r:consoletype_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1319555218.979:102): arch=x86_64 syscall=execve success=yes exit=0 a0=11f8a60 a1=11f8b60 a2=1204ec0 a3=0 items=0 ppid=3455 pid=3456 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=consoletype exe=/sbin/consoletype subj=unconfined_u:system_r:consoletype_t:s0 key=(null)

Hash: consoletype,consoletype_t,user_home_t,file,write

audit2allow

#============= consoletype_t ==============
allow consoletype_t user_home_t:file write;

audit2allow -R

#============= consoletype_t ==============
allow consoletype_t user_home_t:file write;

Comment 1 Miroslav Grepl 2011-10-25 16:42:51 UTC
Do you know which tool you were using when this happened?

Comment 2 Daniel Walsh 2011-10-25 17:39:12 UTC
Well first I would run

restorecon -R -v ~/

To fix the labeling on your system.

Comment 3 Miroslav Grepl 2011-10-26 07:52:31 UTC
Yes, this should be first.


Note You need to log in before you can comment on or make changes to this bug.