| Summary: | motion webcontrol_port blocked by SELinux: SELinux is preventing /usr/bin/motion from accept access on the tcp_socket . | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Martin Dengler <martin> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | dominick.grift, dwalsh, lvrabec, martin, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-07-15 12:05:09 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
Martin Dengler
2013-12-05 00:54:52 UTC
Martin, could play around # semanage permissive -a motion_t re-test it # ausearch -m avc -ts recent # semanage permissive -d motion_t Thank you. Hi Miroslav,
Unfortunately I didn't have time to test that fully. I've updated to F20 and with this policy:
# rpm -q selinux-policy
selinux-policy-3.12.1-166.fc20.noarch
...and:
systemctl stop motion
semanage permissive -d motion_t
systemctl start motion
...I can't reproduce the issue: I see no related AVCs and the web interface works. If I use:
semanage permissive -a motion_t
...I of course see no AVCs. I'm not sure if it's fixed or my other local motion policies (below) are affecting the outcome, despite being inactive:
# # semodule -l | grep motion
motion-pol 1.0 Disabled
motion-pol2 1.0 Disabled
motion 1.0.0
# cat motion-pol.te
module motion-pol 1.0;
require {
type home_root_t;
type motion_t;
class tcp_socket accept;
class dir search;
}
#============= motion_t ==============
allow motion_t home_root_t:dir search;
#!!!! This avc is allowed in the current policy
allow motion_t self:tcp_socket accept;
# cat motion-pol2.te
module motion-pol2 1.0;
require {
type motion_t;
class tcp_socket accept;
}
#============= motion_t ==============
allow motion_t self:tcp_socket accept;
Hi, It looks like we fixed this in F20 so I backport changes from F20 to F19. Thanks very much! |