selinux bug or my bug?
Stephen Smalley
sds at epoch.ncsc.mil
Fri Apr 2 20:49:10 UTC 2004
On Fri, 2004-04-02 at 15:40, Anthony Joseph Seward wrote:
> When I want to do upgrades or installs from a machine that already has
> an RPM based distro on it, I install an RPM that I make that lets me
> start from GRUB or LILO (as an aside, this should get around the disc1
> won't boot problem that people are having). When I install the RPM on a
> system that already has test2 installed with selinux enabled, I get the
> following error:
>
> [root at mza samba]# rpm -Uvh /nfs/u3/mirrors/installers/FC2-test2-i386/rpms/FC2-test2-installer-2.0-1.i386.rpm
> Preparing... ########################################### [100%]
> 1:FC2-test2-installer ########################################### [100%]
> error: setexeccon(root:staff_r:rpm_script_t) fails from context "root:staff_r:staff_t": Invalid argument
> error: %post(FC2-test2-installer-2.0-1) scriptlet failed, exit status 255
>
> Is this an error in selinx or in my %post script? I've attached the .spec file.
You need to run rpm from sysadm_r. You can use 'su' or 'newrole -r
sysadm_r' to switch to sysadm_r.
--
Stephen Smalley <sds at epoch.ncsc.mil>
National Security Agency
More information about the fedora-test-list
mailing list