Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito e181fe
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito ebf760
# libraries_use_dynamic_loader(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`libraries_use_dynamic_loader',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 lib_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 lib_t:lnk_file { getattr read };
Chris PeBenito 219bcf
allow $1 ld_so_t:lnk_file { getattr read };
Chris PeBenito b4cd15
allow $1 ld_so_t:file { getattr read execute };
Chris PeBenito b4cd15
allow $1 ld_so_cache_t:file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`libraries_use_dynamic_loader_depend',`
Chris PeBenito b4cd15
type lib_t, ld_so_t, ld_so_cache_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class lnk_file { getattr read };
Chris PeBenito b4cd15
class file { getattr read execute };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito ebf760
# libraries_legacy_use_dynamic_loader(domain)
Chris PeBenito 8beec8
#
Chris PeBenito 8beec8
define(`libraries_legacy_use_dynamic_loader',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8beec8
libraries_use_dynamic_loader($1,optional)
Chris PeBenito 8beec8
allow $1 ld_so_t:file execmod;
Chris PeBenito 8beec8
allow $1 ld_so_cache_t:file execute;
Chris PeBenito 8beec8
')
Chris PeBenito 8beec8
Chris PeBenito 8beec8
define(`libraries_legacy_use_dynamic_loader_depend',`
Chris PeBenito 8beec8
libraries_use_dynamic_loader_depend
Chris PeBenito 8beec8
type ld_so_t, ld_so_cache_t;
Chris PeBenito 8beec8
class file { execute execmod };
Chris PeBenito 8beec8
')
Chris PeBenito 8beec8
Chris PeBenito 8beec8
########################################
Chris PeBenito 8beec8
#
Chris PeBenito 075c4f
# libraries_execute_dynamic_loader(domain)
Chris PeBenito 075c4f
#
Chris PeBenito 075c4f
define(`libraries_execute_dynamic_loader',`
Chris PeBenito 075c4f
requires_block_template(`$0'_depend)
Chris PeBenito 075c4f
allow $1 lib_t:dir { getattr read search };
Chris PeBenito 075c4f
allow $1 lib_t:lnk_file { getattr read };
Chris PeBenito 075c4f
allow $1 ld_so_t:lnk_file { getattr read };
Chris PeBenito 075c4f
allow $1 ld_so_t:file { getattr read execute execute_no_trans };
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
define(`libraries_execute_dynamic_loader_depend',`
Chris PeBenito 075c4f
type lib_t, ld_so_t;
Chris PeBenito 075c4f
class dir { getattr read search };
Chris PeBenito 075c4f
class lnk_file { getattr read };
Chris PeBenito 075c4f
class file { getattr read execute execute_no_trans };
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
########################################
Chris PeBenito 075c4f
#
Chris PeBenito ebf760
# libraries_modify_dynamic_loader_cache(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`libraries_modify_dynamic_loader_cache',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 ld_so_cache_t:file { getattr read write };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`libraries_modify_dynamic_loader_cache_depend',`
Chris PeBenito b4cd15
type ld_so_cache_t;
Chris PeBenito b4cd15
class file { getattr read write };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito ebf760
# libraries_read_shared_libraries(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`libraries_read_shared_libraries',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 lib_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 lib_t:lnk_file { getattr read };
Chris PeBenito 219bcf
allow $1 { shlib_t texrel_shlib_t }:lnk_file { getattr read };
Chris PeBenito 33bc0d
allow $1 { shlib_t texrel_shlib_t }:file { getattr read execute };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`libraries_read_shared_libraries_depend',`
Chris PeBenito 33bc0d
type lib_t, shlib_t, texrel_shlib_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class lnk_file { getattr read };
Chris PeBenito b4cd15
class file { getattr read execute };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito 8beec8
#
Chris PeBenito ebf760
# libraries_legacy_read_shared_libraries(domain)
Chris PeBenito 8beec8
#
Chris PeBenito 8beec8
define(`libraries_legacy_read_shared_libraries',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito ebf760
libraries_read_shared_libraries($1)
Chris PeBenito 8beec8
allow $1 { shlib_t texrel_shlib_t }:file execmod;
Chris PeBenito 8beec8
')
Chris PeBenito 8beec8
Chris PeBenito 8beec8
define(`libraries_legacy_read_shared_libraries_depend',`
Chris PeBenito 8beec8
type shlib_t, texrel_shlib_t;
Chris PeBenito 8beec8
class file execmod;
Chris PeBenito 8beec8
')
Chris PeBenito 8beec8
Chris PeBenito 8beec8
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 118186
# libraries_read_library_resources(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 118186
define(`libraries_read_library_resources',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 lib_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 lib_t:{ file lnk_file } { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 118186
define(`libraries_read_library_resources_depend',`
Chris PeBenito b4cd15
type lib_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class lnk_file { getattr read };
Chris PeBenito b4cd15
class file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito ebf760
# libraries_execute_library_scripts(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`libraries_execute_library_scripts',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 lib_t:dir { getattr read search };
Chris PeBenito b4cd15
allow $1 lib_t:lnk_file { getattr read };
Chris PeBenito b4cd15
allow $1 lib_t:file { getattr read execute execute_no_trans };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`libraries_execute_library_scripts_depend',`
Chris PeBenito b4cd15
type lib_t;
Chris PeBenito b4cd15
class dir { getattr read search };
Chris PeBenito b4cd15
class lnk_file { getattr read };
Chris PeBenito b4cd15
class file { getattr read execute execute_no_trans };
Chris PeBenito b4cd15
')