[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
SELinux settings in SPEC file
- From: Gérard Milmeister <gemi bluewin ch>
- To: Discussion related to Fedora Extras <fedora-extras-list redhat com>
- Subject: SELinux settings in SPEC file
- Date: Thu, 13 Apr 2006 21:08:15 +0200
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.
--
Gérard Milmeister
Langackerstrasse 49
CH-8057 Zürich
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]