Bug 790144 - SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 from 'read' accesses on the None /var/log/gdm/:2-greeter.log.
Summary: SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 from 'read'...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: gdm
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ray Strode [halfline]
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:611b7c30b3df2b6e3b8721e432d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-13 18:38 UTC by Grosswiler Roger
Modified: 2013-02-13 22:01 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-13 22:01:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Grosswiler Roger 2012-02-13 18:38:36 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.5-3.fc16.x86_64
reason:         SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 from 'read' accesses on the None /var/log/gdm/:2-greeter.log.
time:           Mon 13 Feb 2012 19:38:07 CET

description:
:SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 from 'read' accesses on the None /var/log/gdm/:2-greeter.log.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that polkit-agent-helper-1 should be allowed read access on the :2-greeter.log <Unbekannt> 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                system_u:system_r:policykit_auth_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:xdm_log_t:s0
:Target Objects                /var/log/gdm/:2-greeter.log [ None ]
:Source                        polkit-agent-he
:Source Path                   /usr/libexec/polkit-1/polkit-agent-helper-1
:Port                          <Unbekannt>
:Host                          (removed)
:Source RPM Packages           polkit-0.102-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 (removed) 3.2.5-3.fc16.x86_64 #1 SMP Thu Feb 9
:                              01:24:38 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    Mon 13 Feb 2012 14:32:38 CET
:Last Seen                     Mon 13 Feb 2012 14:32:38 CET
:Local ID                      70d49708-fccb-4155-a807-bbf7aa41313a
:
:Raw Audit Messages
:type=AVC msg=audit(1329139958.735:416): avc:  denied  { read } for  pid=29719 comm="polkit-agent-he" path="/var/log/gdm/:2-greeter.log" dev=dm-1 ino=655774 scontext=system_u:system_r:policykit_auth_t:s0-s0:c0.c1023 tcontext=system_u:object_r:xdm_log_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1329139958.735:416): arch=c000003e syscall=59 success=yes exit=0 a0=34900071b0 a1=7fffdb9006d0 a2=21a4b00 a3=7fffdb9001e0 items=0 ppid=19843 pid=29719 auid=42 uid=42 gid=42 euid=0 suid=0 fsuid=0 egid=42 sgid=42 fsgid=42 tty=(none) ses=15 comm="polkit-agent-he" exe="/usr/libexec/polkit-1/polkit-agent-helper-1" subj=system_u:system_r:policykit_auth_t:s0-s0:c0.c1023 key=(null)
:
:
:Hash: polkit-agent-he,policykit_auth_t,xdm_log_t,None,read
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Daniel Walsh 2012-02-13 21:55:42 UTC
This is a leak.

Comment 2 Ray Strode [halfline] 2012-02-16 20:51:23 UTC
not sure why it would be reading :2-greeter.log, but it definitely writes to it...that's where stderr goes.

Comment 3 Daniel Walsh 2012-02-17 14:47:39 UTC
It is not reading, but you opened it for read and passed that access onto your children which is causing this AVC.

We currently allow

	xserver_xdm_append_log(policykit_auth_t)


The proper fix for this would be to not open this file for read.

Comment 4 Ray Strode [halfline] 2012-02-17 19:24:20 UTC
stdout and stderr are normally opened for both read and write (just look at ls -l /proc/*/fd/[12])  .  I have some vague notion of hitting a problem before when opening either STDIN as O_RDONLY or STDOUT/STDERR but that was years ago and I can't find any evidence it even happened looking through git logs for various projects, so I'll make the change.

Comment 5 collura 2012-03-18 21:39:56 UTC
filename looks related 

  https://bugzilla.redhat.com/show_bug.cgi?id=804450

Comment 6 Fedora End Of Life 2013-01-16 17:24:21 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 7 Fedora End Of Life 2013-02-13 22:01:54 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


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