Bug 545081

Summary: SELinux is preventing gconf-defaults- (gconfdefaultsm_t) "read" to /home/forthommel/.gconf/apps/gnome-power-manager/actions/%gconf.xml (user_home_t).
Product: [Fedora] Fedora Reporter: Laurent Forthomme <forthommel>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:d4018999c64cc71951d4ad2a0123acdaae3014efa605047f50d5bed1847288e4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-07 20:29:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Laurent Forthomme 2009-12-07 14:20:05 UTC
Summary:

SELinux is preventing gconf-defaults- (gconfdefaultsm_t) "read" to
/home/forthommel/.gconf/apps/gnome-power-manager/actions/%gconf.xml
(user_home_t).

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by gconf-defaults-.
/home/forthommel/.gconf/apps/gnome-power-manager/actions/%gconf.xml may be a
mislabeled. /home/forthommel/.gconf/apps/gnome-power-manager/actions/%gconf.xml
default SELinux type is gconf_home_t, but its current type is user_home_t.
Changing this file back to the default type, may fix your problem.

File contexts can be assigned to a file in the following ways.

  * Files created in a directory receive the file context of the parent
    directory by default.
  * The SELinux policy might override the default label inherited from the
    parent directory by specifying a process running in context A which creates
    a file in a directory labeled B will instead create the file with label C.
    An example of this would be the dhcp client running with the dhclient_t type
    and creates a file in the directory /etc. This file would normally receive
    the etc_t type due to parental inheritance but instead the file is labeled
    with the net_conf_t type because the SELinux policy specifies this.
  * Users can change the file context on a file using tools such as chcon, or
    restorecon.

This file could have been mislabeled either by user error, or if an normally
confined application was run under the wrong domain.

However, this might also indicate a bug in SELinux because the file should not
have been labeled with this type.

If you believe this is a bug, please file a bug report
(http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

Allowing Access:

You can restore the default system context to this file by executing the
restorecon command. restorecon
'/home/forthommel/.gconf/apps/gnome-power-manager/actions/%gconf.xml', if this
file is a directory, you can recursively restore using restorecon -R
'/home/forthommel/.gconf/apps/gnome-power-manager/actions/%gconf.xml'.

Fix Command:

restorecon '/home/forthommel/.gconf/apps/gnome-power-manager/actions/%gconf.xml'

Additional Information:

Source Context                system_u:system_r:gconfdefaultsm_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                /home/forthommel/.gconf/apps/gnome-power-
                              manager/actions/%gconf.xml [ file ]
Source                        gconf-defaults-
Source Path                   /usr/libexec/gconf-defaults-mechanism
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           GConf2-2.26.2-1.fc11
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.12-85.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   restorecon
Host Name                     (removed)
Platform                      Linux (removed) 2.6.30.8-64.fc11.i586
                              #1 SMP Fri Sep 25 04:30:19 EDT 2009 i686 i686
Alert Count                   6
First Seen                    Fri 28 Aug 2009 02:32:26 PM CEST
Last Seen                     Fri 23 Oct 2009 12:55:25 AM CEST
Local ID                      469aa85d-9efb-4897-a2fc-e9fe615d5614
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1256252125.406:65): avc:  denied  { read } for  pid=30295 comm="gconf-defaults-" name="%gconf.xml" dev=dm-0 ino=278377 scontext=system_u:system_r:gconfdefaultsm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1256252125.406:65): avc:  denied  { open } for  pid=30295 comm="gconf-defaults-" name="%gconf.xml" dev=dm-0 ino=278377 scontext=system_u:system_r:gconfdefaultsm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1256252125.406:65): arch=40000003 syscall=5 success=yes exit=8 a0=8a03238 a1=0 a2=1b6 a3=8a032c0 items=0 ppid=1 pid=30295 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="gconf-defaults-" exe="/usr/libexec/gconf-defaults-mechanism" subj=system_u:system_r:gconfdefaultsm_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.12-85.fc11,restorecon,gconf-defaults-,gconfdefaultsm_t,user_home_t,file,read
audit2allow suggests:

#============= gconfdefaultsm_t ==============
allow gconfdefaultsm_t user_home_t:file { read open };

Comment 1 Daniel Walsh 2009-12-07 20:29:28 UTC

*** This bug has been marked as a duplicate of bug 538428 ***