Bug 443569
| Summary: | runcon user_u:system_r:unconfined_t:s0 <command> doesn't work in rawhide | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ondrej Vasik <ovasik> |
| Component: | policycoreutils | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | ||
| 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: | 2008-04-22 11:01:17 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
Ondrej Vasik
2008-04-22 08:44:44 UTC
Sorry for missing end of the sentence in the Description of problem, it should be "selinux policies or mcstrans(d). There is no recent change in runcon in coreutils package." Change your code to runcon -t unconfined_t -u unconfined_u true -j user_u can not execute unconfined_t in rawhide. Ok, thanks for explanation, so it requires change in upstream coreutils test-suite. I was just a bit surprised that it worked few days ago and now it fails even in permissive mode. Will use runcon unconfined_u:system_r:unconfined_t:s0 true -j. (In fact the code in test suite is runcon $(id -Z) true -j (and id -Z gets context by getcon() ). So I think this is still a bit buggy behaviour since I got the context user_u:system_r:unconfined_t:s0 from selinux/selinux.h getcon(). If user_u could not use unconfined_t, then it should not be returned as selinux context of user. Sounds like somthing is a little fishy on your test machine. I just tried the above command on unconfined_u:unconfined_r:unconfined_t:s0 And it worked fine for me, on Rawhide. I think you machine might have a screwed up user database. If this was an upgrade from F7 you might need to execute. semanage login -m -s unconfined_u __default__ Thanks, that fixed my problem on test machine - seems to be that screwed up user database was the cause. Sorry for bothering you. |