Bug 116109 - setexeccon(user_u:user_r:rpm_script_t) fails from context "user_u:user_r:user_t": Invalid argument
setexeccon(user_u:user_r:rpm_script_t) fails from context "user_u:user_r:user...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-02-18 06:23 EST by Kaj J. Niemi
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-02-18 12:17:38 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Kaj J. Niemi 2004-02-18 06:23:49 EST
Description of problem:

% sudo rpm -Fvh qt*
Password:
Preparing...               
########################################### [100%]
   1:qt                    
########################################### [  4%]
warning: setexeccon(user_u:user_r:rpm_script_t) fails from context
"user_u:user_r:user_t": Invalid argument
Continuing ...


Version-Release number of selected component (if applicable):
rpm-4.3-0.11

How reproducible:
Always

Steps to Reproduce:
1. install something
2.
3.
  
Actual results:
Software still does get installed

Additional info:
Best guess is that this is SELinux related.
Comment 1 Jeff Johnson 2004-02-18 12:17:38 EST
Yup, this is not a bug, you need to insure that rpm is invoked
from the "sysadm_r" (or "system_r", but that's for anaconda)
role.

Invoking id will show you what role you are in "user_u:user_r:user_t".

You can change roles by doing
    newrole -r sysadm_r
There are other ways to establish "sysadm_r" role as well, including
    a) su -
    b) sudo -r sysadm_r
Comment 2 Kaj J. Niemi 2004-02-18 12:28:47 EST
Dang.. my bad. Thanks ;-)

Note You need to log in before you can comment on or make changes to this bug.