SELinux settings in SPEC file

Enrico Scholz enrico.scholz at
Fri Apr 14 09:37:37 UTC 2006

gemi at (Gérard Milmeister) writes:

> %post
> /usr/sbin/semanage fcontext -a -t textrel_shlib_t "%{_libdir}/gcl-%{version}/unixport/saved_ansi_gcl"
> /sbin/restorecon "%{_libdir}/gcl-%{version}/unixport/saved_ansi_gcl"
> %postun
> /usr/sbin/semanage fcontext -d -t textrel_shlib_t "%{_libdir}/gcl-%{version}/unixport/saved_ansi_gcl"
> Is this acceptable?

You should add a '|| :' after each command to avoid problems when SELinux
is disabled or when /usr is mounted read-only.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <>

More information about the fedora-extras-list mailing list