Bug 1005834

Summary: motion service should have own policy
Product: [Fedora] Fedora Reporter: Miroslav Grepl <mgrepl>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl, timwa1
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.12.1-90.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-10 06:20:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.