Bug 1402190 - SELinux is preventing ksmtuned from 'write' accesses on the directory ksm.
Summary: SELinux is preventing ksmtuned from 'write' accesses on the directory ksm.
Keywords:
Status: CLOSED DUPLICATE of bug 1370779
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:260f4ec05ad8e364ade139acc82...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-07 02:12 UTC by Michael Hampton
Modified: 2016-12-07 02:13 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-07 02:13:12 UTC
Type: ---


Attachments (Terms of Use)

Description Michael Hampton 2016-12-07 02:12:01 UTC
Description of problem:
Still an issue in latest selinux-policy 3.13.1-225.

Reproduced with:

dnf -y install ksm
systemctl start ksmtuned
SELinux is preventing ksmtuned from 'write' accesses on the directory ksm.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that ksmtuned should be allowed write access on the ksm 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 'ksmtuned' --raw | audit2allow -M my-ksmtuned
# semodule -X 300 -i my-ksmtuned.pp

Additional Information:
Source Context                system_u:system_r:ksmtuned_t:s0
Target Context                system_u:object_r:sysfs_t:s0
Target Objects                ksm [ dir ]
Source                        ksmtuned
Source Path                   ksmtuned
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-225.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.10-300.fc25.x86_64 #1 SMP Mon
                              Nov 21 18:59:16 UTC 2016 x86_64 x86_64
Alert Count                   2
First Seen                    2016-12-06 21:10:08 EST
Last Seen                     2016-12-06 21:10:08 EST
Local ID                      a4793dad-d93b-42ca-81d4-6f89bf32ea35

Raw Audit Messages
type=AVC msg=audit(1481076608.815:15396): avc:  denied  { write } for  pid=9791 comm="ksmtuned" name="ksm" dev="sysfs" ino=6567 scontext=system_u:system_r:ksmtuned_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir permissive=0


Hash: ksmtuned,ksmtuned_t,sysfs_t,dir,write

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

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

Potential duplicate: bug 1370779

Comment 1 Michael Hampton 2016-12-07 02:13:12 UTC

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


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