Bug 119507
| Summary: | [unlimitedUsers] staff_r can not run rpm? Should /usr/lib/rpm/rpmi and not /bin/rpm be rpm_exec_t | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Aleksey Nogin <aleksey> |
| Component: | policy | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED RAWHIDE | QA Contact: | Ben Levenson <benl> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | gczarcinski, jbj, pgraner |
| Target Milestone: | --- | Keywords: | SELinux |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2004-04-07 11:40:04 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 114961 | ||
|
Description
Aleksey Nogin
2004-03-30 23:31:55 UTC
Actually, *everyone* should be able to run rpm -q ; anything else should be a tunable. I am not seeing this. What avc messages are you getting? Dan That's the thing - I am not getting any, just the "Permission denied". % rpm -q rpm bash: /bin/rpm: Permission denied % ls -l /bin/rpm -rwxr-xr-x 1 rpm rpm 75760 ÐÐ°Ñ 16 09:10 /bin/rpm % ls -lZ /bin/rpm -rwxr-xr-x+ rpm rpm system_u:object_r:rpm_exec_t /bin/rpm % id -Z aleksey:staff_r:staff_t % ls -lZ /usr/bin/yum -rwxr-xr-x+ root root system_u:object_r:rpm_exec_t /usr/bin/yum % yum bash: /usr/bin/yum: /usr/bin/python: bad interpreter: Permission denied % sudo rpm -q policy-sources policy-sources-1.9.1-2 Could you do a setenforce 0 Then execute the rpm -q command and see if you get any messages. Are you on the #selinux chat room? Dan security_compute_sid: invalid context aleksey:staff_r:rpm_t for scontext=aleksey:staff_r:staff_t tcontext=system_u:object_r:rpm_exec_t tclass=process For some reason you are attempting to transition to rpm_t. You should not be, for the staff user while not in unlimitedUsers. Could you check to see if you have a domain_trans for staff_t to rpm_t? Dan Ah, I do have unlimitedUsers set. role staff_r types rpm_t; If you want to run in unlimitedUsers you need to add the above line to rpm.te where the transition code is. I will fix this in the next policy. The unlimitedUsers role will be turned off in the next policy, as we attempt to tighten up the security, in policy. OK, I brough my tunable.te closer to the one currently distributed (including commenting out the unlimitedUsers) and the problem went away. Thanks! Fixed in policy-1.9.1-4 |