74926ff Add Local SELinux policy package version to analyses reports

Authored and Committed by plautrba 4 years ago
    Add Local SELinux policy package version to analyses reports
    
    Sometimes a SELinux domain is shipped by other than selinux-policy packages. In
    this case it's useful to report other package policy version together with
    selinux-policy version, e.g. for the following AVC:
    
    type=AVC msg=audit(1582621541.469:6896): avc:  denied  { write } for pid=1627505 comm="python3" name="plautrba" dev="dm-4" ino=19529729 scontext=system_u:system_r:mysqld_t:s0 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=dir permissive=1
    
    a report will contain the following lines:
    
    SELinux Policy RPM     selinux-policy-3.14.5-24.fc32.1.contrib.50770ffc2a14.noarch
    Local Policy RPM       mysql-selinux-1.0.0-9.fc32.noarch