Bug 1658823 - SELinux is preventing certwatch from 'write' accesses on the directory /sys/kernel/config.
Summary: SELinux is preventing certwatch from 'write' accesses on the directory /sys/k...
Keywords:
Status: CLOSED DUPLICATE of bug 1655357
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 28
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a4f02fce6113e89a8173a7708a8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-12 22:51 UTC by John Griffiths
Modified: 2018-12-13 12:13 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-12-13 12:13:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Griffiths 2018-12-12 22:51:16 UTC
Description of problem:
SELinux is preventing certwatch from 'write' accesses on the directory /sys/kernel/config.

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

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

Additional Information:
Source Context                system_u:system_r:certwatch_t:s0-s0:c0.c1023
Target Context                system_u:object_r:configfs_t:s0
Target Objects                /sys/kernel/config [ dir ]
Source                        certwatch
Source Path                   certwatch
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-48.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.19.6-200.fc28.x86_64 #1 SMP Sun
                              Dec 2 18:03:32 UTC 2018 x86_64 x86_64
Alert Count                   12
First Seen                    2018-12-12 03:11:06 EST
Last Seen                     2018-12-12 03:11:06 EST
Local ID                      15f23a12-de17-48da-88b0-44ade93fe810

Raw Audit Messages
type=AVC msg=audit(1544602266.802:47555): avc:  denied  { write } for  pid=7441 comm="certwatch" name="/" dev="configfs" ino=15693 scontext=system_u:system_r:certwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:configfs_t:s0 tclass=dir permissive=0


Hash: certwatch,certwatch_t,configfs_t,dir,write

Version-Release number of selected component:
selinux-policy-3.14.1-48.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.19.6-200.fc28.x86_64
type:           libreport

Potential duplicate: bug 1655354

Comment 1 Zdenek Pytela 2018-12-13 12:13:49 UTC

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


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