diff --git a/refpolicy/policy/modules/admin/rpm.fc b/refpolicy/policy/modules/admin/rpm.fc new file mode 100644 index 000000000..f34076268 --- /dev/null +++ b/refpolicy/policy/modules/admin/rpm.fc @@ -0,0 +1,33 @@ +# Copyright (C) 2005 Tresys Technology, LLC + +/bin/rpm -- system_u:object_r:rpm_exec_t + +/usr/bin/apt-get -- system_u:object_r:rpm_exec_t +/usr/bin/apt-shell -- system_u:object_r:rpm_exec_t +/usr/bin/synaptic -- system_u:object_r:rpm_exec_t +/usr/bin/yum -- system_u:object_r:rpm_exec_t + +/usr/lib(64)?/rpm/rpmd -- system_u:object_r:bin_t +/usr/lib(64)?/rpm/rpmq -- system_u:object_r:bin_t +/usr/lib(64)?/rpm/rpmk -- system_u:object_r:bin_t +/usr/lib(64)?/rpm/rpmv -- system_u:object_r:bin_t + +ifdef(`distro_redhat', ` +/usr/sbin/up2date -- system_u:object_r:rpm_exec_t +/usr/sbin/rhn_check -- system_u:object_r:rpm_exec_t +') + +/var/lib/alternatives(/.*)? system_u:object_r:rpm_var_lib_t + +/var/lib/rpm(/.*)? system_u:object_r:rpm_var_lib_t + +/var/log/rpmpkgs.* -- system_u:object_r:rpm_log_t +/var/log/yum\.log -- system_u:object_r:rpm_log_t + +# SuSE +ifdef(`distro_suse', ` +/usr/bin/online_update -- system_u:object_r:rpm_exec_t +/sbin/yast2 -- system_u:object_r:rpm_exec_t +/var/lib/YaST2(/.*)? system_u:object_r:rpm_var_lib_t +/var/log/YaST2(/.*)? system_u:object_r:rpm_log_t +')