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