All of lore.kernel.org
 help / color / mirror / Atom feed
* glibc rpm install error
@ 2003-09-02 17:10 Nick Davis
  2003-09-02 17:25 ` Stephen Smalley
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Davis @ 2003-09-02 17:10 UTC (permalink / raw)
  To: selinux

Hello,

I've been trying to get SELinux 2.6 up and running on a RH9 box, and am 
having some difficulties.  I can compile/install the kernel just fine, 
but I run into problems when building the userspace tools.  
Specifically, I'm trying to get the SRPMs all built.  The source RPMs 
all install and build, leaving me with several RPMS in the i386 
directory.  I've managed to get everything working fine (i.e. RPMs all 
install without errors) except the SELinux-patched glibc RPMs.  Here's 
the error I get:

Error: %postun(glibc-2.3.2-27.9.selinux.0) scriptlet failed, exit status 121

 From that point on, any command I run gives a Segmentation Fault.  I 
tried installing the glibc RPMs last, after all of the other utils, but 
the same thing happens.

Has anyone run into this problem before, or have an idea on what the 
problem might be?

Thanks in advance,

Nick Davis
Center for Information Security
University of Tulsa



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: glibc rpm install error
  2003-09-02 17:10 glibc rpm install error Nick Davis
@ 2003-09-02 17:25 ` Stephen Smalley
  2003-09-03  5:49   ` Russell Coker
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Smalley @ 2003-09-02 17:25 UTC (permalink / raw)
  To: Nick Davis; +Cc: selinux

On Tue, 2003-09-02 at 13:10, Nick Davis wrote:
> Error: %postun(glibc-2.3.2-27.9.selinux.0) scriptlet failed, exit status 121
> 
>  From that point on, any command I run gives a Segmentation Fault.  I 
> tried installing the glibc RPMs last, after all of the other utils, but 
> the same thing happens.
> 
> Has anyone run into this problem before, or have an idea on what the 
> problem might be?

Yes.  The problem isn't specific to SELinux; it also occurs when
installing the original RHL errata RPMs if you install the i386 glibc on
a system that previously had the i686 glibc installed.  You need to
build two sets of glibc RPMS, one with --target=i386 and one with
--target=i686, then install the glibc-N.i686.rpm along with
glibc-{common,...}-N.i386.rpm, omitting the glibc-N.i386.rpm entirely.

You may also be able to just grab the rawhide glibc from RH and use it,
as the changes to support AT_SECURE were upstreamed.

-- 
Stephen Smalley <sds@epoch.ncsc.mil>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: glibc rpm install error
  2003-09-02 17:25 ` Stephen Smalley
@ 2003-09-03  5:49   ` Russell Coker
  2003-09-03 12:26     ` Stephen Smalley
  0 siblings, 1 reply; 4+ messages in thread
From: Russell Coker @ 2003-09-03  5:49 UTC (permalink / raw)
  To: Stephen Smalley, Nick Davis; +Cc: SE Linux

On Wed, 3 Sep 2003 03:25, Stephen Smalley wrote:
> On Tue, 2003-09-02 at 13:10, Nick Davis wrote:
> > Error: %postun(glibc-2.3.2-27.9.selinux.0) scriptlet failed, exit status
> > 121
> >
> >  From that point on, any command I run gives a Segmentation Fault.  I
> > tried installing the glibc RPMs last, after all of the other utils, but
> > the same thing happens.
> >
> > Has anyone run into this problem before, or have an idea on what the
> > problem might be?
>
> Yes.  The problem isn't specific to SELinux; it also occurs when
> installing the original RHL errata RPMs if you install the i386 glibc on

There are also other potential problems.

When I tried compiling that for Debian I got the same result (of everything 
SEGV'ing) even though Debian does not have CPU optimised versions of glibc.

There must have been some subtle difference between my compiler and that which 
was used to originally build libc6, because I could not build one that worked 
in any reasonable amount of time.

If programs such as newrole etc are statically linked then you can get by 
without the patched libc6, and I'm planning to wait for it to get into the 
standard package (I've already spent excessive time fiddling with it).

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: glibc rpm install error
  2003-09-03  5:49   ` Russell Coker
@ 2003-09-03 12:26     ` Stephen Smalley
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Smalley @ 2003-09-03 12:26 UTC (permalink / raw)
  To: Russell Coker; +Cc: Nick Davis, SE Linux

On Wed, 2003-09-03 at 01:49, Russell Coker wrote:
> If programs such as newrole etc are statically linked then you can get by 
> without the patched libc6, and I'm planning to wait for it to get into the 
> standard package (I've already spent excessive time fiddling with it).

newrole cannot be statically linked, since it uses PAM.

-- 
Stephen Smalley <sds@epoch.ncsc.mil>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-09-03 12:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-02 17:10 glibc rpm install error Nick Davis
2003-09-02 17:25 ` Stephen Smalley
2003-09-03  5:49   ` Russell Coker
2003-09-03 12:26     ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.