Bug 794718 - SELinux is preventing /usr/bin/gconftool-2 from 'write' accesses on the dossier .gconf.
Summary: SELinux is preventing /usr/bin/gconftool-2 from 'write' accesses on the dossi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:801aa84405e4afe47b971e66b45...
: 790380 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-17 11:54 UTC by Pascal94
Modified: 2012-04-22 03:36 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.10.0-84.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-22 03:36:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Pascal94 2012-02-17 11:54:03 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.6-3.fc16.x86_64
reason:         SELinux is preventing /usr/bin/gconftool-2 from 'write' accesses on the dossier .gconf.
time:           ven. 17 févr. 2012 12:54:24 CET

description:
:SELinux is preventing /usr/bin/gconftool-2 from 'write' accesses on the dossier .gconf.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that gconftool-2 should be allowed write access on the .gconf 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 gconftool-2 /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:boinc_project_t:s0
:Target Context                system_u:object_r:boinc_var_lib_t:s0
:Target Objects                .gconf [ dir ]
:Source                        gconftool-2
:Source Path                   /usr/bin/gconftool-2
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           GConf2-3.2.3-3.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux CM-ELITE-341 3.2.6-3.fc16.x86_64 #1 SMP Mon
:                              Feb 13 20:35:42 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    ven. 17 févr. 2012 12:53:46 CET
:Last Seen                     ven. 17 févr. 2012 12:53:46 CET
:Local ID                      16aebc82-ca4e-437d-ad54-54d52089f7aa
:
:Raw Audit Messages
:type=AVC msg=audit(1329479626.433:76): avc:  denied  { write } for  pid=2086 comm="gconftool-2" name=".gconf" dev=sda1 ino=794391 scontext=system_u:system_r:boinc_project_t:s0 tcontext=system_u:object_r:boinc_var_lib_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1329479626.433:76): arch=x86_64 syscall=open success=yes exit=ESRCH a0=1e82190 a1=41 a2=1c0 a3=7fff56b2ccc0 items=0 ppid=2048 pid=2086 auid=4294967295 uid=993 gid=990 euid=993 suid=993 fsuid=993 egid=990 sgid=990 fsgid=990 tty=(none) ses=4294967295 comm=gconftool-2 exe=/usr/bin/gconftool-2 subj=system_u:system_r:boinc_project_t:s0 key=(null)
:
:Hash: gconftool-2,boinc_project_t,boinc_var_lib_t,dir,write
:
:audit2allow
:
:#============= boinc_project_t ==============
:#!!!! The source type 'boinc_project_t' can write to a 'dir' of the following types:
:# var_lib_t, boinc_project_var_lib_t, tmp_t, boinc_project_tmp_t
:
:allow boinc_project_t boinc_var_lib_t:dir write;
:
:audit2allow -R
:
:#============= boinc_project_t ==============
:#!!!! The source type 'boinc_project_t' can write to a 'dir' of the following types:
:# var_lib_t, boinc_project_var_lib_t, tmp_t, boinc_project_tmp_t
:
:allow boinc_project_t boinc_var_lib_t:dir write;
:

Comment 1 Miroslav Grepl 2012-02-20 15:33:30 UTC
If you try to execute

$ restorecon -R -v /var/lib/boinc

are you getting an ouput?

Comment 2 Pascal94 2012-02-20 18:38:23 UTC
here it is :

bash-4.2$ sudo restorecon -R -v /var/lib/boinc
[sudo] password for pascal: 
restorecon reset /var/lib/boinc/notices context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/setiathome.berkeley.edu_notices.php.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/archive_wuprop.boinc-af.org_notices.py.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/isaac.ssl.berkeley.edu_test_notices.php.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/archive_isaac.ssl.berkeley.edu_test_notices.php.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/wuprop.boinc-af.org_notices.py.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/archive_www.worldcommunitygrid.org_about_us_displayNews.do.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/feeds_lhcathome2.cern.ch_test4theory.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/feeds_www.worldcommunitygrid.org.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/feeds_wuprop.boinc-af.org.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/archive_setiathome.berkeley.edu_notices.php.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/feeds.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/www.worldcommunitygrid.org_about_us_displayNews.do.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/feeds_isaac.ssl.berkeley.edu_test.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/archive_boinc01.cern.ch_test4theory_notices.php.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/boinc01.cern.ch_test4theory_notices.php.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/notices/feeds_setiathome.berkeley.edu.xml context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/.pki context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
restorecon reset /var/lib/boinc/.pki/nssdb context system_u:object_r:boinc_project_var_lib_t:s0->system_u:object_r:boinc_var_lib_t:s0
bash-4.2$


thanks for your help

Comment 3 Miroslav Grepl 2012-03-16 10:48:35 UTC
*** Bug 790380 has been marked as a duplicate of this bug. ***

Comment 4 Miroslav Grepl 2012-03-16 10:51:04 UTC
Fixed in Fxed in selinux-policy-3.10.0-81.fc16

Comment 5 Fedora Update System 2012-04-18 12:54:24 UTC
selinux-policy-3.10.0-84.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-84.fc16

Comment 6 Fedora Update System 2012-04-22 03:36:34 UTC
selinux-policy-3.10.0-84.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


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