One last comment, more as an aside to --setfscontext expectations
than anything else ...
There is a way to track implicit dependencies on helper executables
using probe dependencies. E.g. RPM packaging SHOULD carry
Requires: executable(/sbin/restorecon)
or (for path relocation independence portability, note the doubled percent)
Requires: executable(%%{_sbindir}/restorecon)
or (to use PATH lookup instead, with the obvious change to the alias)
Requires: executable(restorecon)
And if one wants to make the dependency "soft", and treat the dependency assertion
failure as a warning rather than an error
Requires(hint): executable(restorecon)
One last comment, more as an aside to --setfscontext expectations
than anything else ...
There is a way to track implicit dependencies on helper executables /sbin/restoreco n) %%{_sbindir} /restorecon) restorecon)
using probe dependencies. E.g. RPM packaging SHOULD carry
Requires: executable(
or (for path relocation independence portability, note the doubled percent)
Requires: executable(
or (to use PATH lookup instead, with the obvious change to the alias)
Requires: executable(
And if one wants to make the dependency "soft", and treat the dependency assertion restorecon)
failure as a warning rather than an error
Requires(hint): executable(