Bug 1460481 - SELinux avoids writing to tlp-related /run/tlp/lock_tlp (via ethtool and iw)
SELinux avoids writing to tlp-related /run/tlp/lock_tlp (via ethtool and iw)
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy (Show other bugs)
7.3
x86_64 Linux
unspecified Severity medium
: rc
: ---
Assigned To: Lukas Vrabec
Milos Malik
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-10 21:14 EDT by Robert Scheck
Modified: 2017-08-18 05:41 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Robert Scheck 2017-06-10 21:14:30 EDT
Description of problem:
type=AVC msg=audit(1495147151.891:174): avc:  denied  { write } for  pid=2741 comm="iw" path="/run/tlp/lock_tlp" dev="tmpfs" ino=26857 scontext=system_u:system_r:ifconfig_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=file
type=SYSCALL msg=audit(1495147151.891:174): arch=c000003e syscall=59 success=yes exit=0 a0=1f1d5a0 a1=1e541f0 a2=1e58720 a3=7fffd80779e0 items=0 ppid=2687 pid=2741 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iw" exe="/usr/sbin/iw" subj=system_u:system_r:ifconfig_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1495147151.902:175): avc:  denied  { write } for  pid=2744 comm="ethtool" path="/run/tlp/lock_tlp" dev="tmpfs" ino=26857 scontext=system_u:system_r:ifconfig_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=file
type=SYSCALL msg=audit(1495147151.902:175): arch=c000003e syscall=59 success=yes exit=0 a0=1f153f0 a1=1e541f0 a2=1e58720 a3=7fffd8077f70 items=0 ppid=2687 pid=2744 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-s0:c0.c1023 key=(null)
type=USER_START msg=audit(1495147152.470:176): pid=2776 uid=1000 auid=1000 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_open grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix acct="root" exe="/usr/bin/pkexec" hostname=? addr=? terminal=? res=success'
type=AVC msg=audit(1495147181.027:177): avc:  denied  { write } for  pid=2924 comm="iw" path="/run/tlp/lock_tlp" dev="tmpfs" ino=26857 scontext=system_u:system_r:ifconfig_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=file
type=SYSCALL msg=audit(1495147181.027:177): arch=c000003e syscall=59 success=yes exit=0 a0=17b3650 a1=16ee200 a2=16f2740 a3=7ffd66bf8680 items=0 ppid=2888 pid=2924 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iw" exe="/usr/sbin/iw" subj=system_u:system_r:ifconfig_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1495147181.034:178): avc:  denied  { write } for  pid=2927 comm="ethtool" path="/run/tlp/lock_tlp" dev="tmpfs" ino=26857 scontext=system_u:system_r:ifconfig_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=file
type=SYSCALL msg=audit(1495147181.034:178): arch=c000003e syscall=59 success=yes exit=0 a0=17b55c0 a1=16ee200 a2=16f2740 a3=7ffd66bf8c10 items=0 ppid=2888 pid=2927 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-s0:c0.c1023 key=(null)

Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.13.1-102.el7_3.16.noarch

How reproducible:
Everytime, see above and below. Basically a system with GUI and tlp.

Actual results:
SELinux avoids writing to tlp-related /run/tlp/lock_tlp (via ethtool and iw).

Expected results:
No AVC denied.

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