diff --git a/policy/modules/services/aptcacher.if b/policy/modules/services/aptcacher.if index 8c99a699b..12c1335a0 100644 --- a/policy/modules/services/aptcacher.if +++ b/policy/modules/services/aptcacher.if @@ -63,43 +63,3 @@ interface(`aptcacher_stream_connect',` files_search_runtime($1) stream_connect_pattern($1, aptcacher_runtime_t, aptcacher_runtime_t, aptcacher_t) ') - -###################################### -## -## read aptcacher config -## -## -## -## Domain allowed to read it. -## -## -# -interface(`aptcacher_read_config',` - gen_require(` - type aptcacher_etc_t; - ') - - files_search_etc($1) - allow $1 aptcacher_etc_t:dir list_dir_perms; - allow $1 aptcacher_etc_t:file read_file_perms; -') - -###################################### -## -## mmap and read aptcacher config -## -## -## -## Domain allowed to read it. -## -## -# -interface(`aptcacher_mmap_read_config',` - gen_require(` - type aptcacher_etc_t; - ') - - files_search_etc($1) - allow $1 aptcacher_etc_t:dir list_dir_perms; - allow $1 aptcacher_etc_t:file mmap_read_file_perms; -') diff --git a/policy/modules/services/cron.te b/policy/modules/services/cron.te index 505a3bde0..310aff71c 100644 --- a/policy/modules/services/cron.te +++ b/policy/modules/services/cron.te @@ -339,11 +339,6 @@ ifdef(`distro_debian',` dpkg_manage_db(system_cronjob_t) ') - optional_policy(` - aptcacher_mmap_read_config(system_cronjob_t) - corenet_tcp_connect_aptcacher_port(system_cronjob_t) - ') - optional_policy(` logwatch_search_cache_dir(crond_t) ')