All of lore.kernel.org
 help / color / mirror / Atom feed
* upgrade howto
@ 2005-06-21 23:06 antoine
  2005-06-22 11:45 ` Stephen Smalley
  2005-06-22 11:54 ` Stephen Smalley
  0 siblings, 2 replies; 4+ messages in thread
From: antoine @ 2005-06-21 23:06 UTC (permalink / raw)
  To: SELinux

What is the safest way of upgrading libselinux and libsepol?

I attempted it a couple of weeks ago and had to resort to statically
linked copies of ls and tar to restore the previous version after the
upgrade broke my system. Clearly, I did something wrong. What is scary
is that a lot of the core system utilities are linked against libselinux
(ls, init, portage, etc) and that when I upgrade, it would seem that I
need to rebuild them (as just upgrading the library left them unusable)
- which is impossible without these basic tools... catch 22?

Note: this is on a Gentoo system where everything is compiled from
source and so a big rpm upgrade transaction is simply not an option
here.

Thanks
Antoine


--
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: upgrade howto
  2005-06-21 23:06 upgrade howto antoine
@ 2005-06-22 11:45 ` Stephen Smalley
  2005-06-22 11:54 ` Stephen Smalley
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen Smalley @ 2005-06-22 11:45 UTC (permalink / raw)
  To: antoine; +Cc: SELinux

On Wed, 2005-06-22 at 00:06 +0100, antoine wrote:
> What is the safest way of upgrading libselinux and libsepol?
> 
> I attempted it a couple of weeks ago and had to resort to statically
> linked copies of ls and tar to restore the previous version after the
> upgrade broke my system. Clearly, I did something wrong. What is scary
> is that a lot of the core system utilities are linked against libselinux
> (ls, init, portage, etc) and that when I upgrade, it would seem that I
> need to rebuild them (as just upgrading the library left them unusable)
> - which is impossible without these basic tools... catch 22?

I'm puzzled by this, as libselinux and libsepol should always remain
backward compatible.  If they weren't, we would be changing the shared
library version.  I've successfully upgraded to the latest upstream
libselinux and libsepol even on older systems from a source build (i.e.
a make install relabel in libselinux and libsepol) without problems in
the past.  More details on the nature of the breakage, please?

-- 
Stephen Smalley
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: upgrade howto
  2005-06-21 23:06 upgrade howto antoine
  2005-06-22 11:45 ` Stephen Smalley
@ 2005-06-22 11:54 ` Stephen Smalley
  2005-06-22 19:41   ` antoine
  1 sibling, 1 reply; 4+ messages in thread
From: Stephen Smalley @ 2005-06-22 11:54 UTC (permalink / raw)
  To: antoine; +Cc: SELinux

On Wed, 2005-06-22 at 00:06 +0100, antoine wrote:
> What is the safest way of upgrading libselinux and libsepol?
> 
> I attempted it a couple of weeks ago and had to resort to statically
> linked copies of ls and tar to restore the previous version after the
> upgrade broke my system. Clearly, I did something wrong. What is scary
> is that a lot of the core system utilities are linked against libselinux
> (ls, init, portage, etc) and that when I upgrade, it would seem that I
> need to rebuild them (as just upgrading the library left them unusable)
> - which is impossible without these basic tools... catch 22?

Note btw that while upgrading should always work, downgrading is another
matter.  So if Gentoo was using a newer base version of libsepol and
libselinux (e.g. one from the sourceforge CVS tree), and you downgraded
to an older one (e.g. the last nsa.gov release, which was in March),
that could easily break your system as your userland may be depending on
newer interfaces.  nsa.gov releases are only made periodically,
typically when there is a new Linux kernel release (e.g. one should be
occurring soon for 2.6.12), whereas the sourceforge CVS tree tracks
development much more closely, and some distributions (like Fedora)
track the sourceforge CVS tree directly.

-- 
Stephen Smalley
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: upgrade howto
  2005-06-22 11:54 ` Stephen Smalley
@ 2005-06-22 19:41   ` antoine
  0 siblings, 0 replies; 4+ messages in thread
From: antoine @ 2005-06-22 19:41 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: SELinux

On Wed, 2005-06-22 at 07:54 -0400, Stephen Smalley wrote:
> On Wed, 2005-06-22 at 00:06 +0100, antoine wrote:
> > What is the safest way of upgrading libselinux and libsepol?
> > 
> > I attempted it a couple of weeks ago and had to resort to statically
> > linked copies of ls and tar to restore the previous version after the
> > upgrade broke my system. Clearly, I did something wrong. What is scary
> > is that a lot of the core system utilities are linked against libselinux
> > (ls, init, portage, etc) and that when I upgrade, it would seem that I
> > need to rebuild them (as just upgrading the library left them unusable)
> > - which is impossible without these basic tools... catch 22?
> 
> Note btw that while upgrading should always work, downgrading is another
> matter.  So if Gentoo was using a newer base version of libsepol and
> libselinux (e.g. one from the sourceforge CVS tree), and you downgraded
> to an older one (e.g. the last nsa.gov release, which was in March),
> that could easily break your system as your userland may be depending on
> newer interfaces.  nsa.gov releases are only made periodically,
> typically when there is a new Linux kernel release (e.g. one should be
> occurring soon for 2.6.12), whereas the sourceforge CVS tree tracks
> development much more closely, and some distributions (like Fedora)
> track the sourceforge CVS tree directly.

I was upgrading from CVS and clearly I must have done something wrong.
I've just upgraded by creating new Gentoo ebuild files for the just
released versions and it all worked fine.

Antoine


--
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:[~2005-06-22 19:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-21 23:06 upgrade howto antoine
2005-06-22 11:45 ` Stephen Smalley
2005-06-22 11:54 ` Stephen Smalley
2005-06-22 19:41   ` antoine

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.