|
Chris PeBenito |
48e0db |
## <summary>Policy for system libraries.</summary>
|
|
Chris PeBenito |
48e0db |
|
|
Chris PeBenito |
48e0db |
########################################
|
|
Chris PeBenito |
62a7b0 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Execute ldconfig in the ldconfig domain.
|
|
Chris PeBenito |
62a7b0 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
48e0db |
#
|
|
Chris PeBenito |
199895 |
interface(`libs_domtrans_ldconfig',`
|
|
Chris PeBenito |
139520 |
gen_require(`
|
|
Chris PeBenito |
139520 |
type ldconfig_t, ldconfig_exec_t;
|
|
Chris PeBenito |
139520 |
')
|
|
Chris PeBenito |
139520 |
|
|
Chris PeBenito |
139520 |
corecmd_search_sbin($1)
|
|
Chris PeBenito |
0fd9dc |
domain_auto_trans($1,ldconfig_exec_t,ldconfig_t)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 ldconfig_t:fd use;
|
|
Chris PeBenito |
0c73cd |
allow ldconfig_t $1:fd use;
|
|
Chris PeBenito |
0c73cd |
allow ldconfig_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
0c73cd |
allow ldconfig_t $1:process sigchld;
|
|
Chris PeBenito |
48e0db |
')
|
|
Chris PeBenito |
48e0db |
|
|
Chris PeBenito |
48e0db |
########################################
|
|
Chris PeBenito |
62a7b0 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Execute ldconfig in the ldconfig domain.
|
|
Chris PeBenito |
62a7b0 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <param name="role">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## The role to allow the ldconfig domain.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <param name="terminal">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## The type of the terminal allow the ldconfig domain to use.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
48e0db |
#
|
|
Chris PeBenito |
199895 |
interface(`libs_run_ldconfig',`
|
|
Chris PeBenito |
139520 |
gen_require(`
|
|
Chris PeBenito |
139520 |
type ldconfig_t;
|
|
Chris PeBenito |
139520 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c9428d |
libs_domtrans_ldconfig($1)
|
|
Chris PeBenito |
0c73cd |
role $2 types ldconfig_t;
|
|
Chris PeBenito |
139520 |
allow ldconfig_t $3:chr_file rw_term_perms;
|
|
Chris PeBenito |
48e0db |
')
|
|
Chris PeBenito |
e181fe |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
62a7b0 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Use the dynamic link/loader for automatic loading
|
|
Chris PeBenito |
414e41 |
## of shared libraries.
|
|
Chris PeBenito |
62a7b0 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
199895 |
interface(`libs_use_ld_so',`
|
|
Chris PeBenito |
139520 |
gen_require(`
|
|
Chris PeBenito |
139520 |
type lib_t, ld_so_t, ld_so_cache_t;
|
|
Chris PeBenito |
139520 |
')
|
|
Chris PeBenito |
139520 |
|
|
Chris PeBenito |
139520 |
files_list_etc($1)
|
|
Chris PeBenito |
0c73cd |
allow $1 lib_t:dir r_dir_perms;
|
|
Chris PeBenito |
0c73cd |
allow $1 lib_t:lnk_file r_file_perms;
|
|
Chris PeBenito |
0c73cd |
allow $1 ld_so_t:lnk_file r_file_perms;
|
|
Chris PeBenito |
0c73cd |
allow $1 ld_so_t:file rx_file_perms;
|
|
Chris PeBenito |
0c73cd |
allow $1 ld_so_cache_t:file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
62a7b0 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Use the dynamic link/loader for automatic loading
|
|
Chris PeBenito |
414e41 |
## of shared libraries with legacy support.
|
|
Chris PeBenito |
62a7b0 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
8beec8 |
#
|
|
Chris PeBenito |
199895 |
interface(`libs_legacy_use_ld_so',`
|
|
Chris PeBenito |
139520 |
gen_require(`
|
|
Chris PeBenito |
139520 |
type ld_so_t, ld_so_cache_t;
|
|
Chris PeBenito |
139520 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c9428d |
libs_use_ld_so($1)
|
|
Chris PeBenito |
0c73cd |
allow $1 ld_so_t:file execmod;
|
|
Chris PeBenito |
0c73cd |
allow $1 ld_so_cache_t:file execute;
|
|
Chris PeBenito |
8beec8 |
')
|
|
Chris PeBenito |
8beec8 |
|
|
Chris PeBenito |
8beec8 |
########################################
|
|
Chris PeBenito |
62a7b0 |
## <summary>
|
|
Chris PeBenito |
62a7b0 |
## Execute the dynamic link/loader in the caller's domain.
|
|
Chris PeBenito |
62a7b0 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
075c4f |
#
|
|
Chris PeBenito |
199895 |
interface(`libs_exec_ld_so',`
|
|
Chris PeBenito |
139520 |
gen_require(`
|
|
Chris PeBenito |
139520 |
type lib_t, ld_so_t;
|
|
Chris PeBenito |
139520 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 lib_t:dir r_dir_perms;
|
|
Chris PeBenito |
0c73cd |
allow $1 lib_t:lnk_file r_file_perms;
|
|
Chris PeBenito |
0c73cd |
allow $1 ld_so_t:lnk_file r_file_perms;
|
|
Chris PeBenito |
139520 |
can_exec($1,ld_so_t)
|
|
Chris PeBenito |
075c4f |
')
|
|
Chris PeBenito |
075c4f |
|
|
Chris PeBenito |
075c4f |
########################################
|
|
Chris PeBenito |
62a7b0 |
## <summary>
|
|
Chris PeBenito |
2c2435 |
## Create, read, write, and delete the
|
|
Chris PeBenito |
2c2435 |
## dynamic link/loader.
|
|
Chris PeBenito |
2c2435 |
## </summary>
|
|
Chris PeBenito |
2c2435 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
2c2435 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
2c2435 |
## </param>
|
|
Chris PeBenito |
2c2435 |
#
|
|
Chris PeBenito |
2c2435 |
# cjp: added for prelink
|
|
Chris PeBenito |
2c2435 |
interface(`libs_manage_ld_so',`
|
|
Chris PeBenito |
2c2435 |
gen_require(`
|
|
Chris PeBenito |
2c2435 |
type lib_t, ld_so_t;
|
|
Chris PeBenito |
2c2435 |
')
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
allow $1 lib_t:dir rw_dir_perms;
|
|
Chris PeBenito |
2c2435 |
allow $1 ld_so_t:file manage_file_perms;
|
|
Chris PeBenito |
2c2435 |
')
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
########################################
|
|
Chris PeBenito |
2c2435 |
## <summary>
|
|
Chris PeBenito |
2c2435 |
## Relabel to and from the type used for
|
|
Chris PeBenito |
2c2435 |
## the dynamic link/loader.
|
|
Chris PeBenito |
2c2435 |
## </summary>
|
|
Chris PeBenito |
2c2435 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
2c2435 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
2c2435 |
## </param>
|
|
Chris PeBenito |
2c2435 |
#
|
|
Chris PeBenito |
2c2435 |
# cjp: added for prelink
|
|
Chris PeBenito |
2c2435 |
interface(`libs_relabel_ld_so',`
|
|
Chris PeBenito |
2c2435 |
gen_require(`
|
|
Chris PeBenito |
2c2435 |
type lib_t, ld_so_t;
|
|
Chris PeBenito |
2c2435 |
')
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
allow $1 lib_t:dir search_dir_perms;
|
|
Chris PeBenito |
2c2435 |
allow $1 ld_so_t:file { relabelfrom relabelto };
|
|
Chris PeBenito |
2c2435 |
')
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
########################################
|
|
Chris PeBenito |
2c2435 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Modify the dynamic link/loader's cached listing
|
|
Chris PeBenito |
414e41 |
## of shared libraries.
|
|
Chris PeBenito |
62a7b0 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
199895 |
interface(`libs_rw_ld_so_cache',`
|
|
Chris PeBenito |
139520 |
gen_require(`
|
|
Chris PeBenito |
139520 |
type ld_so_cache_t;
|
|
Chris PeBenito |
139520 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
139520 |
files_list_etc($1)
|
|
Chris PeBenito |
dd8229 |
allow $1 ld_so_cache_t:file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
139520 |
########################################
|
|
Chris PeBenito |
62a7b0 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Search library directories.
|
|
Chris PeBenito |
62a7b0 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
139520 |
#
|
|
Chris PeBenito |
199895 |
interface(`libs_search_lib',`
|
|
Chris PeBenito |
139520 |
gen_require(`
|
|
Chris PeBenito |
139520 |
type lib_t;
|
|
Chris PeBenito |
139520 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
139520 |
allow $1 lib_t:dir search;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
62a7b0 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Create, read, write, and delete library directories.
|
|
Chris PeBenito |
5afdf0 |
## </summary>
|
|
Chris PeBenito |
5afdf0 |
## <param name="domain">
|
|
Chris PeBenito |
5afdf0 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
5afdf0 |
## </summary>
|
|
Chris PeBenito |
5afdf0 |
## </param>
|
|
Chris PeBenito |
5afdf0 |
#
|
|
Chris PeBenito |
5afdf0 |
interface(`libs_manage_lib_dirs',`
|
|
Chris PeBenito |
5afdf0 |
gen_require(`
|
|
Chris PeBenito |
5afdf0 |
type lib_t;
|
|
Chris PeBenito |
5afdf0 |
')
|
|
Chris PeBenito |
5afdf0 |
|
|
Chris PeBenito |
5afdf0 |
allow $1 lib_t:dir manage_dir_perms;
|
|
Chris PeBenito |
5afdf0 |
')
|
|
Chris PeBenito |
5afdf0 |
|
|
Chris PeBenito |
5afdf0 |
########################################
|
|
Chris PeBenito |
5afdf0 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Read files in the library directories, such
|
|
Chris PeBenito |
414e41 |
## as static libraries.
|
|
Chris PeBenito |
62a7b0 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
1815ba |
interface(`libs_read_lib_files',`
|
|
Chris PeBenito |
139520 |
gen_require(`
|
|
Chris PeBenito |
139520 |
type lib_t;
|
|
Chris PeBenito |
139520 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
139520 |
files_search_usr($1)
|
|
Chris PeBenito |
dd8229 |
allow $1 lib_t:dir r_dir_perms;
|
|
Chris PeBenito |
dd8229 |
allow $1 lib_t:{ file lnk_file } r_file_perms;
|
|
Chris PeBenito |
f5c42b |
')
|
|
Chris PeBenito |
f5c42b |
|
|
Chris PeBenito |
f5c42b |
########################################
|
|
Chris PeBenito |
62a7b0 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Execute library scripts in the caller domain.
|
|
Chris PeBenito |
62a7b0 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
f5c42b |
#
|
|
Chris PeBenito |
199895 |
interface(`libs_exec_lib_files',`
|
|
Chris PeBenito |
139520 |
gen_require(`
|
|
Chris PeBenito |
139520 |
type lib_t;
|
|
Chris PeBenito |
139520 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
139520 |
files_search_usr($1)
|
|
Chris PeBenito |
dd8229 |
allow $1 lib_t:dir r_dir_perms;
|
|
Chris PeBenito |
0fd9dc |
allow $1 lib_t:lnk_file r_file_perms;
|
|
Chris PeBenito |
139520 |
can_exec($1,lib_t)
|
|
Chris PeBenito |
f5c42b |
')
|
|
Chris PeBenito |
f5c42b |
|
|
Chris PeBenito |
f5c42b |
########################################
|
|
Chris PeBenito |
5f38a6 |
## <summary>
|
|
Chris PeBenito |
f932d8 |
## Load and execute functions from generic
|
|
Chris PeBenito |
f932d8 |
## lib files as shared libraries.
|
|
Chris PeBenito |
f932d8 |
## </summary>
|
|
Chris PeBenito |
f932d8 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
f932d8 |
## </param>
|
|
Chris PeBenito |
f932d8 |
#
|
|
Chris PeBenito |
1815ba |
interface(`libs_use_lib_files',`
|
|
Chris PeBenito |
f932d8 |
gen_require(`
|
|
Chris PeBenito |
f932d8 |
type lib_t;
|
|
Chris PeBenito |
f932d8 |
')
|
|
Chris PeBenito |
f932d8 |
|
|
Chris PeBenito |
f932d8 |
files_list_usr($1)
|
|
Chris PeBenito |
f932d8 |
allow $1 lib_t:dir r_dir_perms;
|
|
Chris PeBenito |
f932d8 |
allow $1 lib_t:lnk_file r_file_perms;
|
|
Chris PeBenito |
f932d8 |
allow $1 lib_t:file rx_file_perms;
|
|
Chris PeBenito |
f932d8 |
')
|
|
Chris PeBenito |
f932d8 |
|
|
Chris PeBenito |
f932d8 |
########################################
|
|
Chris PeBenito |
f932d8 |
## <summary>
|
|
Chris PeBenito |
2c2435 |
## Create, read, write, and delete generic
|
|
Chris PeBenito |
2c2435 |
## files in library directories.
|
|
Chris PeBenito |
2c2435 |
## </summary>
|
|
Chris PeBenito |
2c2435 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
2c2435 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
2c2435 |
## </param>
|
|
Chris PeBenito |
2c2435 |
#
|
|
Chris PeBenito |
2c2435 |
# cjp: added for prelink
|
|
Chris PeBenito |
2c2435 |
interface(`libs_manage_lib_files',`
|
|
Chris PeBenito |
2c2435 |
gen_require(`
|
|
Chris PeBenito |
2c2435 |
type lib_t;
|
|
Chris PeBenito |
2c2435 |
')
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
8cf671 |
allow $1 lib_t:dir rw_dir_perms;
|
|
Chris PeBenito |
2c2435 |
allow $1 lib_t:file manage_file_perms;
|
|
Chris PeBenito |
2c2435 |
')
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
########################################
|
|
Chris PeBenito |
2c2435 |
## <summary>
|
|
Chris PeBenito |
5f38a6 |
## Relabel files to the type used in library directories.
|
|
Chris PeBenito |
5f38a6 |
## </summary>
|
|
Chris PeBenito |
5f38a6 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
5f38a6 |
## </param>
|
|
Chris PeBenito |
5f38a6 |
#
|
|
Chris PeBenito |
5f38a6 |
interface(`libs_relabelto_lib_files',`
|
|
Chris PeBenito |
5f38a6 |
gen_require(`
|
|
Chris PeBenito |
5f38a6 |
type lib_t;
|
|
Chris PeBenito |
5f38a6 |
')
|
|
Chris PeBenito |
5f38a6 |
|
|
Chris PeBenito |
2c2435 |
allow $1 lib_t:dir search_dir_perms;
|
|
Chris PeBenito |
5f38a6 |
allow $1 lib_t:file relabelto;
|
|
Chris PeBenito |
5f38a6 |
')
|
|
Chris PeBenito |
5f38a6 |
|
|
Chris PeBenito |
5f38a6 |
########################################
|
|
Chris PeBenito |
62a7b0 |
## <summary>
|
|
Chris PeBenito |
2c2435 |
## Relabel to and from the type used
|
|
Chris PeBenito |
2c2435 |
## for generic lib files.
|
|
Chris PeBenito |
2c2435 |
## </summary>
|
|
Chris PeBenito |
2c2435 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
2c2435 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
2c2435 |
## </param>
|
|
Chris PeBenito |
2c2435 |
#
|
|
Chris PeBenito |
2c2435 |
# cjp: added for prelink
|
|
Chris PeBenito |
2c2435 |
interface(`libs_relabel_lib_files',`
|
|
Chris PeBenito |
2c2435 |
gen_require(`
|
|
Chris PeBenito |
2c2435 |
type lib_t;
|
|
Chris PeBenito |
2c2435 |
')
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
allow $1 lib_t:dir search_dir_perms;
|
|
Chris PeBenito |
2c2435 |
allow $1 lib_t:file { relabelfrom relabelto };
|
|
Chris PeBenito |
2c2435 |
')
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
########################################
|
|
Chris PeBenito |
2c2435 |
## <summary>
|
|
Chris PeBenito |
8cf671 |
## Delete generic symlinks in library directories.
|
|
Chris PeBenito |
8cf671 |
## </summary>
|
|
Chris PeBenito |
8cf671 |
## <param name="domain">
|
|
Chris PeBenito |
8cf671 |
## <summary>
|
|
Chris PeBenito |
8cf671 |
## Domain allowed access.
|
|
Chris PeBenito |
8cf671 |
## </summary>
|
|
Chris PeBenito |
8cf671 |
## </param>
|
|
Chris PeBenito |
8cf671 |
#
|
|
Chris PeBenito |
8cf671 |
# cjp: added for prelink
|
|
Chris PeBenito |
8cf671 |
interface(`libs_delete_lib_symlinks',`
|
|
Chris PeBenito |
8cf671 |
gen_require(`
|
|
Chris PeBenito |
8cf671 |
type lib_t;
|
|
Chris PeBenito |
8cf671 |
')
|
|
Chris PeBenito |
8cf671 |
|
|
Chris PeBenito |
8cf671 |
allow $1 lib_t:dir { getattr search read write remove_name };
|
|
Chris PeBenito |
8cf671 |
allow $1 lib_t:lnk_file unlink;
|
|
Chris PeBenito |
8cf671 |
')
|
|
Chris PeBenito |
8cf671 |
|
|
Chris PeBenito |
8cf671 |
########################################
|
|
Chris PeBenito |
8cf671 |
## <summary>
|
|
Chris PeBenito |
2c2435 |
## Create, read, write, and delete shared libraries.
|
|
Chris PeBenito |
2c2435 |
## </summary>
|
|
Chris PeBenito |
2c2435 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
2c2435 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
2c2435 |
## </param>
|
|
Chris PeBenito |
2c2435 |
#
|
|
Chris PeBenito |
2c2435 |
# cjp: added for prelink
|
|
Chris PeBenito |
2c2435 |
interface(`libs_manage_shared_libs',`
|
|
Chris PeBenito |
2c2435 |
gen_require(`
|
|
Chris PeBenito |
2c2435 |
type lib_t, shlib_t, textrel_shlib_t;
|
|
Chris PeBenito |
2c2435 |
')
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
allow $1 lib_t:dir rw_dir_perms;
|
|
Chris PeBenito |
2c2435 |
allow $1 { shlib_t textrel_shlib_t }:file manage_file_perms;
|
|
Chris PeBenito |
2c2435 |
')
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
########################################
|
|
Chris PeBenito |
2c2435 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Load and execute functions from shared libraries.
|
|
Chris PeBenito |
62a7b0 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
199895 |
interface(`libs_use_shared_libs',`
|
|
Chris PeBenito |
139520 |
gen_require(`
|
|
Chris PeBenito |
a324ef |
type lib_t, shlib_t, textrel_shlib_t;
|
|
Chris PeBenito |
139520 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
694248 |
files_list_usr($1)
|
|
Chris PeBenito |
0c73cd |
allow $1 lib_t:dir r_dir_perms;
|
|
Chris PeBenito |
0c73cd |
allow $1 lib_t:lnk_file r_file_perms;
|
|
Chris PeBenito |
a324ef |
allow $1 { shlib_t textrel_shlib_t }:lnk_file r_file_perms;
|
|
Chris PeBenito |
a324ef |
allow $1 { shlib_t textrel_shlib_t }:file rx_file_perms;
|
|
Chris PeBenito |
a324ef |
allow $1 textrel_shlib_t:file execmod;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
62a7b0 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Load and execute functions from shared libraries,
|
|
Chris PeBenito |
414e41 |
## with legacy support.
|
|
Chris PeBenito |
62a7b0 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
8beec8 |
#
|
|
Chris PeBenito |
199895 |
interface(`libs_legacy_use_shared_libs',`
|
|
Chris PeBenito |
139520 |
gen_require(`
|
|
Chris PeBenito |
a324ef |
type shlib_t, textrel_shlib_t;
|
|
Chris PeBenito |
139520 |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c9428d |
libs_use_shared_libs($1)
|
|
Chris PeBenito |
a324ef |
allow $1 { shlib_t textrel_shlib_t }:file execmod;
|
|
Chris PeBenito |
8beec8 |
')
|
|
Chris PeBenito |
8beec8 |
|
|
Chris PeBenito |
2c2435 |
########################################
|
|
Chris PeBenito |
2c2435 |
## <summary>
|
|
Chris PeBenito |
2c2435 |
## Relabel to and from the type used for
|
|
Chris PeBenito |
2c2435 |
## shared libraries.
|
|
Chris PeBenito |
2c2435 |
## </summary>
|
|
Chris PeBenito |
2c2435 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
2c2435 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
2c2435 |
## </param>
|
|
Chris PeBenito |
2c2435 |
#
|
|
Chris PeBenito |
2c2435 |
# cjp: added for prelink
|
|
Chris PeBenito |
2c2435 |
interface(`libs_relabel_shared_libs',`
|
|
Chris PeBenito |
2c2435 |
gen_require(`
|
|
Chris PeBenito |
2c2435 |
type lib_t, shlib_t, textrel_shlib_t;
|
|
Chris PeBenito |
2c2435 |
')
|
|
Chris PeBenito |
2c2435 |
|
|
Chris PeBenito |
2c2435 |
allow $1 lib_t:dir search_dir_perms;
|
|
Chris PeBenito |
2c2435 |
allow $1 { shlib_t textrel_shlib_t }:file { relabelfrom relabelto };
|
|
Chris PeBenito |
2c2435 |
')
|
|
Chris PeBenito |
5afdf0 |
|
|
Chris PeBenito |
5afdf0 |
########################################
|
|
Chris PeBenito |
5afdf0 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Create an object in lib directories, with
|
|
Chris PeBenito |
5afdf0 |
## the shared libraries type using a type transition.
|
|
Chris PeBenito |
5afdf0 |
## </summary>
|
|
Chris PeBenito |
5afdf0 |
## <param name="domain">
|
|
Chris PeBenito |
5afdf0 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## Domain allowed access.
|
|
Chris PeBenito |
5afdf0 |
## </summary>
|
|
Chris PeBenito |
5afdf0 |
## </param>
|
|
Chris PeBenito |
5afdf0 |
## <param name="object">
|
|
Chris PeBenito |
5afdf0 |
## <summary>
|
|
Chris PeBenito |
5afdf0 |
## The object class of the object being created.
|
|
Chris PeBenito |
5afdf0 |
## </summary>
|
|
Chris PeBenito |
5afdf0 |
## </param>
|
|
Chris PeBenito |
5afdf0 |
#
|
|
Chris PeBenito |
5afdf0 |
interface(`files_lib_filetrans_shared_lib',`
|
|
Chris PeBenito |
5afdf0 |
gen_require(`
|
|
Chris PeBenito |
5afdf0 |
type root_t;
|
|
Chris PeBenito |
5afdf0 |
')
|
|
Chris PeBenito |
5afdf0 |
|
|
Chris PeBenito |
5afdf0 |
allow $1 root_t:dir rw_dir_perms;
|
|
Chris PeBenito |
5afdf0 |
type_transition $1 root_t:$2 shlib_t;
|
|
Chris PeBenito |
5afdf0 |
')
|