Bug 1286851
| Summary: | ip netns exec needs more permissions | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Aleksandar Kostadinov <akostadi> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.3 | CC: | akostadi, errata-xmlrpc, KeshavParankusham, lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.13.1-80.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-04 02:25:36 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: | |
| Embargoed: | |||
|
Description
Aleksandar Kostadinov
2015-11-30 21:44:59 UTC
FYI, because the workaround will go away on `restorecon` or RPM upgrade, I've created a separate service type=simple, to execute `chcon ...`. I've added Requires=chcon.service under [Unit] section of my main service. Now upon running main service, systemd will first run my chcon service to fix permissions. I don't know why chcon doesn't work in ExecStartPre. My wild guess is that systemd sets as context the context of the ExecStart executable so if it is not right from the beginning, everything fails. Just for information to those who wonder before policy is officially fixed. Or maybe I should have imported a custom policy.. Hi Aleksandar, Could you test your scenario in Permissive SELinux mode? (#setenforce 0) And after tests could you attach all avcs? #ausearch -m AVC -ts recent Thank you. Sorry, can't get the idea. Do you have a new policy I can try? Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2283.html (In reply to errata-xmlrpc from comment #9) > Since the problem described in this bug report should be > resolved in a recent advisory, it has been closed with a > resolution of ERRATA. > > For information on the advisory, and where to find the updated > files, follow the link below. > > If the solution does not work for you, open a new bug report. > > https://rhn.redhat.com/errata/RHBA-2016-2283.html I've just faced this issue yesterday, is the bug fixed? Can I know the details in which version it was fixed and if not, may I know why it's not fixed, if there's some reason due to which fixing this bug is not recommended/advisable, or know how to get the update if it is fixed. Because I've faced the same issue even in the latest versions. (In reply to Aleksandar Kostadinov from comment #1) > FYI, because the workaround will go away on `restorecon` or RPM upgrade, > I've created a separate service type=simple, to execute `chcon ...`. I've > added Requires=chcon.service under [Unit] section of my main service. Now > upon running main service, systemd will first run my chcon service to fix > permissions. > > I don't know why chcon doesn't work in ExecStartPre. My wild guess is that > systemd sets as context the context of the ExecStart executable so if it is > not right from the beginning, everything fails. > > Just for information to those who wonder before policy is officially fixed. > Or maybe I should have imported a custom policy.. Hi, thanks for the workaround, it makes things lot easier, just wanted to know if this is the recommended way to do things as of now. Or is there a better/ any other way we can fix this issue, any advice would be invaluable, thanks in advance. (In reply to Keshav from comment #10) > (In reply to errata-xmlrpc from comment #9) > > Since the problem described in this bug report should be > > resolved in a recent advisory, it has been closed with a > > resolution of ERRATA. > > > > For information on the advisory, and where to find the updated > > files, follow the link below. > > > > If the solution does not work for you, open a new bug report. > > > > https://rhn.redhat.com/errata/RHBA-2016-2283.html > > I've just faced this issue yesterday, is the bug fixed? Can I know the > details in which version it was fixed and if not, may I know why it's not > fixed, if there's some reason due to which fixing this bug is not > recommended/advisable, or know how to get the update if it is fixed. Because > I've faced the same issue even in the latest versions. If you know any details, it would be really helpful, thanks. The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |