Bug 1554142 - the motion service triggers SELinux denials
Summary: the motion service triggers SELinux denials
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 28
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-11 20:57 UTC by Milos Malik
Modified: 2018-09-07 13:56 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.14.1-14.fc28
Clone Of:
Environment:
Last Closed: 2018-03-18 00:52:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Milos Malik 2018-03-11 20:57:59 UTC
Description of problem:
 * the motion service runs even if SELinux denials appeared

Version-Release number of selected component (if applicable):
motion-4.1.1-2.fc28.x86_64
selinux-policy-3.14.2-2.fc29.noarch
selinux-policy-targeted-3.14.2-2.fc29.noarch

How reproducible:
 * always

Steps to Reproduce:
1. get a Fedora 28 machine (targeted policy is active)
2. install RPMfusion repositories
3. install the motion package
3. start the motion service
4. search for SELinux denials

Actual results (enforcing mode):
----
type=AVC msg=audit(03/11/2018 16:34:37.960:381) : avc:  denied  { read } for  pid=18412 comm=motion name=cpu dev="sysfs" ino=37 scontext=system_u:system_r:motion_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir permissive=0 
----
type=AVC msg=audit(03/11/2018 16:34:37.962:382) : avc:  denied  { read } for  pid=18412 comm=motion name=node dev="sysfs" ino=690 scontext=system_u:system_r:motion_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir permissive=0 
----

Expected results:
* no SELinux denials

Comment 1 Milos Malik 2018-03-11 21:02:19 UTC
Actual results (permissive mode):
----
type=AVC msg=audit(03/11/2018 16:58:26.507:391) : avc:  denied  { read } for  pid=18485 comm=motion name=cpu dev="sysfs" ino=37 scontext=system_u:system_r:motion_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir permissive=1 
----
type=AVC msg=audit(03/11/2018 16:58:26.508:392) : avc:  denied  { read } for  pid=18485 comm=motion name=meminfo dev="sysfs" ino=764 scontext=system_u:system_r:motion_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file permissive=1 
----
type=AVC msg=audit(03/11/2018 16:58:26.508:393) : avc:  denied  { open } for  pid=18485 comm=motion path=/sys/devices/system/node/node0/meminfo dev="sysfs" ino=764 scontext=system_u:system_r:motion_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file permissive=1 
----
type=AVC msg=audit(03/11/2018 16:58:26.509:394) : avc:  denied  { getattr } for  pid=18485 comm=motion path=/sys/devices/system/node/node0/meminfo dev="sysfs" ino=764 scontext=system_u:system_r:motion_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file permissive=1 
----

Comment 2 Fedora Update System 2018-03-12 18:26:17 UTC
selinux-policy-3.14.1-13.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-59cbf1effc

Comment 3 Fedora Update System 2018-03-13 15:09:50 UTC
selinux-policy-3.14.1-13.fc28 has been pushed to the Fedora 28 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-2018-59cbf1effc

Comment 4 Fedora Update System 2018-03-15 21:24:01 UTC
selinux-policy-3.14.1-14.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-59cbf1effc

Comment 5 Fedora Update System 2018-03-16 14:42:22 UTC
selinux-policy-3.14.1-14.fc28 has been pushed to the Fedora 28 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-2018-59cbf1effc

Comment 6 Fedora Update System 2018-03-18 00:52:51 UTC
selinux-policy-3.14.1-14.fc28 has been pushed to the Fedora 28 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.