Re: SELinux settings in SPEC file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gérard Milmeister wrote:
I have now the following lines in the SPEC file for gcl:

Requires(post): policycoreutils
Requires(postun): policycoreutils
...
%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? The package only builds with SELinux disabled,
but this is the case on the buildsystem, so I don't think it
will be a problem.

but what about FC4 ?
those commands are FC5/rawhide only right?

--
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux