Bug 671028

Summary: SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 from read, write access on the file /home_private/rick/.xsession-errors.XXXIADPV.
Product: [Fedora] Fedora Reporter: Richard P. Spillane <necro351>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:fb208cdd51c7edc65460d375ca5c71e0e1c000f1bed73e8ba99cdff624e79427
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-20 08:58:49 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 Richard P. Spillane 2011-01-19 23:25:59 UTC
SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 from read, write access on the file /home_private/rick/.xsession-errors.XXXIADPV.

*****  Plugin catchall_labels (71.9 confidence) suggests  ********************

If you want to allow polkit-agent-helper-1 to have read write access on the .xsession-errors.XXXIADPV file
Then you need to change the label on /home_private/rick/.xsession-errors.XXXIADPV
Do
# semanage fcontext -a -t FILE_TYPE '/home_private/rick/.xsession-errors.XXXIADPV'
where FILE_TYPE is one of the following: policykit_auth_t, policykit_var_lib_t, policykit_var_run_t, afs_cache_t, user_cron_spool_t, faillog_t, policykit_reload_t, pcscd_var_run_t, policykit_tmp_t, root_t. 
Then execute: 
restorecon -v '/home_private/rick/.xsession-errors.XXXIADPV'


*****  Plugin leaks (14.7 confidence) suggests  ******************************

If you want to ignore polkit-agent-helper-1 trying to read write access the .xsession-errors.XXXIADPV 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 /usr/libexec/polkit-1/polkit-agent-helper-1 /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

*****  Plugin catchall (14.7 confidence) suggests  ***************************

If you believe that polkit-agent-helper-1 should be allowed read write access on the .xsession-errors.XXXIADPV 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 polkit-agent-he /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c
                              0.c1023
Target Context                system_u:object_r:default_t:s0
Target Objects                /home_private/rick/.xsession-errors.XXXIADPV [
                              file ]
Source                        polkit-agent-he
Source Path                   /usr/libexec/polkit-1/polkit-agent-helper-1
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           polkit-0.98-4.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-20.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec 23
                              16:04:50 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Wed 19 Jan 2011 06:16:21 PM EST
Last Seen                     Wed 19 Jan 2011 06:16:21 PM EST
Local ID                      aee4bb40-b2da-4e2a-ae6e-ecc26aa15499

Raw Audit Messages
type=AVC msg=audit(1295478981.276:26145): avc:  denied  { read write } for  pid=4090 comm="polkit-agent-he" path="/home_private/rick/.xsession-errors.XXXIADPV" dev=dm-2 ino=10092672 scontext=unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c0.c1023 tcontext=system_u:object_r:default_t:s0 tclass=file

polkit-agent-he,policykit_auth_t,default_t,file,read,write
type=SYSCALL msg=audit(1295478981.276:26145): arch=x86_64 syscall=execve success=yes exit=0 a0=3734c06798 a1=7fff11023950 a2=7fff11023c28 a3=7fff11023430 items=0 ppid=2592 pid=4090 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=500 tty=(none) ses=3 comm=polkit-agent-he exe=/usr/libexec/polkit-1/polkit-agent-helper-1 subj=unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c0.c1023 key=(null)
polkit-agent-he,policykit_auth_t,default_t,file,read,write

#============= policykit_auth_t ==============
allow policykit_auth_t default_t:file { read write };

Comment 1 Miroslav Grepl 2011-01-20 08:58:49 UTC

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