RPM

Comment 3 for bug 660406

Revision history for this message
Jeff Johnson (n3npq) wrote :

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)