Bug 1005834 - motion service should have own policy
Summary: motion service should have own policy
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-09 13:24 UTC by Miroslav Grepl
Modified: 2013-11-10 06:20 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-90.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-10 06:20:50 UTC
Type: Bug


Attachments (Terms of Use)

Description Miroslav Grepl 2013-09-09 13:24:13 UTC
Description of problem:

We have motion service running as zonemider_t which is probably wrong. Motion should have own policy and zoneminder should just domtrans to motion_t. 

Version-Release number of selected component (if applicable):

How reproducible:


Steps to Reproduce:
1. yum install motion
2. chcon -t bin_t `which motion`
3. systemctl start motion

Actual results:
#============= initrc_t ==============
allow initrc_t http_cache_port_t:tcp_socket name_bind;
allow initrc_t transproxy_port_t:tcp_socket name_bind;
allow initrc_t v4l_device_t:chr_file { read write ioctl open };


Expected results:

Motion should run in the motion_t domain.

Additional info:

Also some rules won't be needed for zoneminder because of a new motion policy.

Comment 3 Timothy Ward 2013-09-16 12:59:34 UTC
This sounds like a good suggestion but is also means that the Fedora build will require work to separate the motion code from upstream, as the new upstream version 1.26 has a lot of new code and changes in this area, and the new motion code has performance increases that are worthwhile. 

I hope this is easy to do as the changes in the new version 1.26 during testing seem to indicate a better package overall. What is required is that any changes made for Fedora be all pushed upstream as info to the Zonealarm Wiki and/or the github repository in the distribution Directory to make it easier for all concerned with the Fedora package.

http://www.zoneminder.com/wiki/index.php/Contents#Distribution-specific_guides

https://github.com/Zoneminder/Zoneminder

Comment 4 Lukas Vrabec 2013-10-09 13:12:17 UTC
I included motion policy to git repo, so this policy will be included in the new selinux-policy package for rawhide and f20.

Comment 5 Fedora Update System 2013-10-15 16:29:35 UTC
selinux-policy-3.12.1-90.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-90.fc20

Comment 6 Fedora Update System 2013-10-17 20:20:54 UTC
Package selinux-policy-3.12.1-90.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-90.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-19129/selinux-policy-3.12.1-90.fc20
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-11-10 06:20:50 UTC
selinux-policy-3.12.1-90.fc20 has been pushed to the Fedora 20 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.