selinux-policy/refpolicy/policy/modules/system/miscfiles.if

38 lines
930 B
Plaintext
Raw Normal View History

2005-04-20 19:07:16 +00:00
# Copyright (C) 2005 Tresys Technology, LLC
2005-04-14 20:18:17 +00:00
########################################
#
# miscfiles_read_localization(domain)
2005-04-14 20:18:17 +00:00
#
define(`miscfiles_read_localization',`
requires_block_template(`$0'_depend)
2005-04-14 20:18:17 +00:00
# FIXME: $1 read etc_t:lnk_file here
# FIXME: $1 search usr_t:dir here
# FIXME: $1 read lib_t:file(?)
allow $1 locale_t:dir { getattr read search };
allow $1 locale_t:lnk_file { getattr read };
allow $1 locale_t:file { getattr read };
')
define(`miscfiles_read_localization_depend',`
type locale_t;
class dir { getattr read search };
class lnk_file { getattr read };
class file { getattr read };
')
2005-05-05 20:33:35 +00:00
########################################
#
# miscfiles_legacy_read_localization(domain)
#
define(`miscfiles_legacy_read_localization',`
requires_block_template(`$0'_depend)
miscfiles_read_localization($1)
allow $1 locale_t:file execute;
')
define(`miscfiles_read_localization_depend',`
type locale_t;
class file execute;
')