Bug 663412

Summary: SELinux is preventing /usr/bin/gnome-screensaver "getattr" access on /usr/sbin/tcpdump.
Product: [Fedora] Fedora Reporter: Renich Bon Ciric <renich>
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:442ee22eed88c01750266eb44658276e6d2e3bf7d7e66ad9010c0c453f8e2940
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-16 13:04:47 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 Renich Bon Ciric 2010-12-15 18:03:27 UTC
Summary:

SELinux is preventing /usr/bin/gnome-screensaver "getattr" access on
/usr/sbin/tcpdump.

Detailed Description:

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

SELinux denied access requested by gnome-screensav. It is not expected that this
access is required by gnome-screensav and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:netutils_exec_t:s0
Target Objects                /usr/sbin/tcpdump [ file ]
Source                        gnome-screensav
Source Path                   /usr/bin/gnome-screensaver
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gnome-screensaver-2.30.2-2.fc14
Target RPM Packages           tcpdump-4.1.1-1.fc14
Policy RPM                    selinux-policy-3.9.7-16.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.9-64.fc14.x86_64 #1 SMP Fri Dec 3 12:19:41
                              UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Wed 15 Dec 2010 10:35:49 AM CST
Last Seen                     Wed 15 Dec 2010 10:35:49 AM CST
Local ID                      2dd2bc51-83e6-4305-8596-b932b1fc50b9
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1292430949.333:46840): avc:  denied  { getattr } for  pid=11063 comm="gnome-screensav" path="/usr/sbin/tcpdump" dev=dm-0 ino=2765439 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:netutils_exec_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1292430949.333:46840): arch=c000003e syscall=4 success=yes exit=0 a0=226cb19 a1=7fff2d9989a0 a2=7fff2d9989a0 a3=1 items=0 ppid=1 pid=11063 auid=4294967295 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=4294967295 comm="gnome-screensav" exe="/usr/bin/gnome-screensaver" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,gnome-screensav,xdm_t,netutils_exec_t,file,getattr
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t netutils_exec_t:file getattr;

Comment 1 Miroslav Grepl 2010-12-16 13:04:47 UTC

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