How to make SELinux file context permanent?

Gérard Milmeister gemi at bluewin.ch
Mon Apr 3 21:44:24 UTC 2006


On Mon, 2006-04-03 at 16:37 -0500, Ian Pilcher wrote:
> Gérard Milmeister wrote:
> > I have two packages, gcl and ecl, lisp compilers, that
> > need a context change of some binaries from
> >   system_u:object_r:lib_t
> > to
> >   system_u:object_r:textrel_shlib_t
> > These files reside in subdirectories of /usr/lib. Is it
> > possible to set context during RPM creation?
> > In any case, the changes are not permament, because after
> > a relabeling (or restorecon) of the filesystem, the context
> > reverts to the default.
> > What is the least painless way to do this correctly?
> 
> Call semanage in your %post script.

Ehm, can you be a bit more specific. The above is as far as I
get in understanding SELinux :-)

-- 
Gérard Milmeister
Langackerstrasse 49
CH-8057 Zürich




More information about the fedora-extras-list mailing list