selinux bug or my bug?
Anthony Joseph Seward
anthony.seward at ieee.org
Fri Apr 2 21:09:48 UTC 2004
On Fri, 2004-04-02 at 15:49 -0500, Stephen Smalley wrote:
> 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.
>
When I slogin as root from another machine, why don't I get asked which
role I want?
Tony
> --
> Stephen Smalley <sds at epoch.ncsc.mil>
> National Security Agency
>
>
> --
> fedora-test-list mailing list
> fedora-test-list at redhat.com
> To unsubscribe:
> http://www.redhat.com/mailman/listinfo/fedora-test-list
--
Anthony Joseph Seward <anthony.seward at ieee.org>
More information about the fedora-test-list
mailing list