selinux-policy/strict/file_contexts/program/rpm.fc

30 lines
1.1 KiB
Plaintext
Raw Normal View History

2005-04-29 17:45:15 +00:00
# rpm
/var/lib/rpm(/.*)? system_u:object_r:rpm_var_lib_t
/var/lib/alternatives(/.*)? system_u:object_r:rpm_var_lib_t
/bin/rpm -- system_u:object_r:rpm_exec_t
/usr/bin/yum -- 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
2005-10-14 18:22:30 +00:00
/usr/bin/synaptic -- system_u:object_r:rpm_exec_t
2005-04-29 17:45:15 +00:00
/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
/var/log/rpmpkgs.* -- system_u:object_r:rpm_log_t
/var/log/yum\.log -- system_u:object_r:rpm_log_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
')
# 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
')
2005-10-14 18:22:30 +00:00
ifdef(`mls_policy', `
/sbin/cpio -- system_u:object_r:rpm_exec_t
')