Bug 891501 - SELinux is preventing /usr/sbin/ethtool from 'write' accesses on the file /var/log/tuned/tuned.log.
Summary: SELinux is preventing /usr/sbin/ethtool from 'write' accesses on the file /va...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: tuned
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:fe97ed9a47d95446cd0ad801253...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-03 07:50 UTC by Stanislav Petr
Modified: 2013-01-12 15:08 UTC (History)
8 users (show)

Fixed In Version: tuned-2.1.2-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-12 15:08:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stanislav Petr 2013-01-03 07:50:03 UTC
Description of problem:
SELinux is preventing /usr/sbin/ethtool from 'write' accesses on the file /var/log/tuned/tuned.log.

*****  Plugin leaks (86.2 confidence) suggests  ******************************

If you want to ignore ethtool trying to write access the tuned.log 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/sbin/ethtool /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

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

If you believe that ethtool should be allowed write access on the tuned.log 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 ethtool /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:ifconfig_t:s0
Target Context                system_u:object_r:tuned_log_t:s0
Target Objects                /var/log/tuned/tuned.log [ file ]
Source                        ethtool
Source Path                   /usr/sbin/ethtool
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ethtool-3.4.1-2.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-67.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.6.11-3.fc18.x86_64 #1 SMP Mon
                              Dec 17 21:35:39 UTC 2012 x86_64 x86_64
Alert Count                   20
First Seen                    2012-12-16 02:04:26 CET
Last Seen                     2012-12-29 12:10:30 CET
Local ID                      62f9287b-230c-4511-ad40-33ac5816103c

Raw Audit Messages
type=AVC msg=audit(1356779430.724:1037): avc:  denied  { write } for  pid=17004 comm="ethtool" path="/var/log/tuned/tuned.log" dev="sda3" ino=358966 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:object_r:tuned_log_t:s0 tclass=file


type=SYSCALL msg=audit(1356779430.724:1037): arch=x86_64 syscall=execve success=yes exit=0 a0=7f0e1000e5a0 a1=7f0e1002c310 a2=7fff41798690 a3=3a8f520cf8 items=0 ppid=591 pid=17004 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=ethtool exe=/usr/sbin/ethtool subj=system_u:system_r:ifconfig_t:s0 key=(null)

Hash: ethtool,ifconfig_t,tuned_log_t,file,write

audit2allow

#============= ifconfig_t ==============
allow ifconfig_t tuned_log_t:file write;

audit2allow -R

#============= ifconfig_t ==============
allow ifconfig_t tuned_log_t:file write;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.11-3.fc18.x86_64
type:           libreport

Potential duplicate: bug 751851

Comment 1 Miroslav Grepl 2013-01-03 10:01:40 UTC
It has been fixed in the tuned package.

Comment 2 Jaroslav Škarvada 2013-01-07 13:41:01 UTC
The problem was resolved in bug 890435. Not closing as a dupe due to different release.

Comment 3 Fedora Update System 2013-01-07 13:42:43 UTC
tuned-2.1.2-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/FEDORA-2013-0068/tuned-2.1.2-1.fc18

Comment 4 Fedora Update System 2013-01-12 15:08:59 UTC
tuned-2.1.2-1.fc18 has been pushed to the Fedora 18 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.