Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1409198 - SELinux is preventing tlp from 'add_name' accesses on the directory rfkill-saved.
Summary: SELinux is preventing tlp from 'add_name' accesses on the directory rfkill-sa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:189497e202a7d6c54ab72c87016...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-30 07:06 UTC by Biji
Modified: 2017-01-11 07:24 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.13.1-225.6.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-11 07:24:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Biji 2016-12-30 07:06:17 UTC
Description of problem:
SELinux is preventing tlp from 'add_name' accesses on the directory rfkill-saved.

*****  Plugin catchall_labels (83.8 confidence) suggests   *******************

If you want to allow tlp to have add_name access on the rfkill-saved directory
Then you need to change the label on rfkill-saved
Do
# semanage fcontext -a -t FILE_TYPE 'rfkill-saved'
where FILE_TYPE is one of the following: sysfs_t, tlp_var_run_t, var_run_t.
Then execute:
restorecon -v 'rfkill-saved'


*****  Plugin catchall (17.1 confidence) suggests   **************************

If you believe that tlp should be allowed add_name access on the rfkill-saved directory 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:
# ausearch -c 'tlp' --raw | audit2allow -M my-tlp
# semodule -X 300 -i my-tlp.pp

Additional Information:
Source Context                system_u:system_r:tlp_t:s0
Target Context                system_u:object_r:var_lib_t:s0
Target Objects                rfkill-saved [ dir ]
Source                        tlp
Source Path                   tlp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-225.3.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.15-300.fc25.x86_64 #1 SMP Thu
                              Dec 15 23:10:23 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-12-30 12:52:14 WIB
Last Seen                     2016-12-30 12:52:14 WIB
Local ID                      9d66b469-ed69-4688-87d4-f1da9be6ee51

Raw Audit Messages
type=AVC msg=audit(1483077134.774:632): avc:  denied  { add_name } for  pid=8595 comm="tlp" name="rfkill-saved" scontext=system_u:system_r:tlp_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=dir permissive=1


Hash: tlp,tlp_t,var_lib_t,dir,add_name

Version-Release number of selected component:
selinux-policy-3.13.1-225.3.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.15-300.fc25.x86_64
type:           libreport

Comment 1 Fedora Update System 2017-01-08 22:24:10 UTC
selinux-policy-3.13.1-225.6.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-66d634473a

Comment 2 Fedora Update System 2017-01-10 03:26:42 UTC
selinux-policy-3.13.1-225.6.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-66d634473a

Comment 3 Fedora Update System 2017-01-11 07:24:53 UTC
selinux-policy-3.13.1-225.6.fc25 has been pushed to the Fedora 25 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.