94dc8ea Provide rpm macros for packages installing SELinux modules

Authored and Committed by plautrba 7 years ago
    Provide rpm macros for packages installing SELinux modules
    
    There's no unified practice how to install SELinux modules from packages
    and how to relabel a filesystem after the change. This update provides
    several new macros which should help maintainers with the process.
    
    %selinux_relabel_pre [-s <policytype>]
    - backups the current file_contexts for later use with fixfiles
    
    %selinux_relabel_post [-s <policytype>]
    - relabels a filesystem based on changes in file_contexts using fixfiles
    
    %selinux_modules_install [-s <policytype>] module [module]...
    %selinux_modules_uninstall [-s <policytype>] module [module]...
    - install and uninstall modules to the priority 200
    
        
file added
+77
file modified
+5 -1