add legacy lib use

This commit is contained in:
Chris PeBenito 2005-04-26 19:10:29 +00:00
parent 960373dddd
commit 8beec89d27

View File

@ -20,6 +20,23 @@ class lnk_file { getattr read };
class file { getattr read execute }; class file { getattr read execute };
') ')
########################################
#
# libraries_legacy_use_dynamic_loader(domain,[`optional']
#
define(`libraries_legacy_use_dynamic_loader',`
requires_block_template(libraries_legacy_use_dynamic_loader_depend,$2)
libraries_use_dynamic_loader($1,optional)
allow $1 ld_so_t:file execmod;
allow $1 ld_so_cache_t:file execute;
')
define(`libraries_legacy_use_dynamic_loader_depend',`
libraries_use_dynamic_loader_depend
type ld_so_t, ld_so_cache_t;
class file { execute execmod };
')
######################################## ########################################
# #
# libraries_modify_dynamic_loader_cache(domain,[`optional'] # libraries_modify_dynamic_loader_cache(domain,[`optional']
@ -53,6 +70,22 @@ class lnk_file { getattr read };
class file { getattr read execute }; class file { getattr read execute };
') ')
########################################
#
# libraries_legacy_read_shared_libraries(domain,[`optional']
#
define(`libraries_legacy_read_shared_libraries',`
requires_block_template(libraries_legacy_read_shared_libraries_depend,$2)
libraries_read_shared_libraries($1,optional)
allow $1 { shlib_t texrel_shlib_t }:file execmod;
')
define(`libraries_legacy_read_shared_libraries_depend',`
type shlib_t, texrel_shlib_t;
class file execmod;
libraries_read_shared_libraries_depend
')
######################################## ########################################
# #
# libraries_read_static_libraries(domain,[`optional'] # libraries_read_static_libraries(domain,[`optional']