Bug 980990
| Summary: | SELinux is preventing /usr/bin/bash from using the 'transition' accesses on a process. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ian Pilcher <ipilcher> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:d16b3eb171540da72ff238653b703ffba600dad3f866d3cfd7d7d1629698e5a1 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-07-12 12:12:34 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Ian Pilcher
2013-07-03 18:24:01 UTC
Not that simple, You can either add a Transitioning from one domain to another involves multiple access rules. allow unconfined_t openvswitch_t:process transition; But if you were executing runcon -r system_r -t openvswitch_t /bin/kmod You would also need. allow openvswitch_t insmod_exec_t:file entrypoint; But that is not necessarily what you want since you might want to see if openvswitch_t can transition to insmod_t when executing kmod. Something like: runcon -r system_r -t openvswitch_t /bin/sh -c /bin/kmod Which would require allow openvswitch_t bin_t:file entrypoint; Basically you can do it using these steps: Check if there is no transition # sesearch -A -s openvswitch_t -t insmod_t -c processes => no output => you can run # runcon -u system_u -r system_r -t initrc_t -- runcon -t openvswitch_t -- kmod for example. But it ends up with allow openvswitch_t insmod_exec_t:file entrypoint; So you need to change labeling for kmod and then you can run "runcon" # chcon -t openvswitch_exec_t /bin/kmod # runcon -u system_u -r system_r -t initrc_t -- runcon -t openvswitch_t -- kmod which will run kmod in the openvswitch_t domain. After testing MAKE SURE you run # restorecon -v /bin/kmod |