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 8021cb
	corecmd_search_bin($1)
Chris PeBenito c0868a
	domtrans_pattern($1,ldconfig_exec_t,ldconfig_t)
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 bbcd3c
## <rolecap/>
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 c0868a
	allow $1 lib_t:dir list_dir_perms;
Chris PeBenito c0868a
Chris PeBenito c0868a
	read_lnk_files_pattern($1,lib_t,{ lib_t ld_so_t })
Chris PeBenito c0868a
	mmap_files_pattern($1,lib_t,ld_so_t)
Chris PeBenito c0868a
Chris PeBenito c0868a
	allow $1 ld_so_cache_t:file read_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 c0868a
	allow $1 lib_t:dir list_dir_perms;
Chris PeBenito c0868a
	read_lnk_files_pattern($1,lib_t,{ lib_t ld_so_t })
Chris PeBenito c0868a
	exec_files_pattern($1,lib_t,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 c0868a
	manage_files_pattern($1,lib_t,ld_so_t)
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 c0868a
	relabel_files_pattern($1,lib_t,ld_so_t)
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 c0868a
	allow $1 lib_t:dir search_dir_perms;
Chris PeBenito 405efe
')
Chris PeBenito 405efe
Chris PeBenito 405efe
########################################
Chris PeBenito 405efe
## <summary>
Chris PeBenito 3c3c04
##	Do not audit attempts to write to library directories.
Chris PeBenito 3c3c04
## </summary>
Chris PeBenito 3c3c04
## <desc>
Chris PeBenito 3c3c04
##	

Chris PeBenito 3c3c04
##	Do not audit attempts to write to library directories.
Chris PeBenito 3c3c04
##	Typically this is used to quiet attempts to recompile
Chris PeBenito 3c3c04
##	python byte code.
Chris PeBenito 3c3c04
##	

Chris PeBenito 3c3c04
## </desc>
Chris PeBenito 3c3c04
## <param name="domain">
Chris PeBenito 3c3c04
##	<summary>
Chris PeBenito 3c3c04
##	Domain allowed access.
Chris PeBenito 3c3c04
##	</summary>
Chris PeBenito 3c3c04
## </param>
Chris PeBenito 3c3c04
#
Chris PeBenito 3c3c04
interface(`libs_dontaudit_write_lib_dirs',`
Chris PeBenito 3c3c04
	gen_require(`
Chris PeBenito 3c3c04
		type lib_t;
Chris PeBenito 3c3c04
	')
Chris PeBenito 3c3c04
Chris PeBenito 3c3c04
	dontaudit $1 lib_t:dir write;
Chris PeBenito 3c3c04
')
Chris PeBenito 3c3c04
Chris PeBenito 3c3c04
########################################
Chris PeBenito 3c3c04
## <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 c0868a
	list_dirs_pattern($1,lib_t,lib_t)
Chris PeBenito c0868a
	read_files_pattern($1,lib_t,lib_t)
Chris PeBenito c0868a
	read_lnk_files_pattern($1,lib_t,lib_t)
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 c0868a
	allow $1 lib_t:dir list_dir_perms;
Chris PeBenito c0868a
	read_lnk_files_pattern($1,lib_t,lib_t)
Chris PeBenito c0868a
	exec_files_pattern($1,lib_t,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 c0868a
	allow $1 lib_t:dir list_dir_perms;
Chris PeBenito c0868a
	read_lnk_files_pattern($1,lib_t,lib_t)
Chris PeBenito c0868a
	mmap_files_pattern($1,lib_t,lib_t)
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 c0868a
	manage_files_pattern($1,lib_t,lib_t)
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 c0868a
	relabelto_files_pattern($1,lib_t,lib_t)
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 c0868a
	relabel_files_pattern($1,lib_t,lib_t)
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 c0868a
	delete_lnk_files_pattern($1,lib_t,lib_t)
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 c0868a
	manage_files_pattern($1,lib_t,{ shlib_t textrel_shlib_t })
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 c0868a
	allow $1 lib_t:dir list_dir_perms;
Chris PeBenito c0868a
	read_lnk_files_pattern($1,lib_t,{ lib_t shlib_t textrel_shlib_t })
Chris PeBenito c0868a
	mmap_files_pattern($1,lib_t,{ shlib_t textrel_shlib_t })
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 c0868a
	relabel_files_pattern($1,lib_t,{ shlib_t textrel_shlib_t })
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 113b4f
interface(`lib_filetrans_shared_lib',`
Chris PeBenito f0574f
	gen_require(`
Chris PeBenito c0868a
		type lib_t, shlib_t;
Chris PeBenito f0574f
	')
Chris PeBenito f0574f
Chris PeBenito c0868a
	filetrans_pattern($1,lib_t,shlib_t,$2)
Chris PeBenito f0574f
')
Chris PeBenito 113b4f
Chris PeBenito 113b4f
########################################
Chris PeBenito 113b4f
## <summary>
Chris PeBenito 113b4f
##	Create an object in lib directories, with
Chris PeBenito 113b4f
##	the shared libraries type using a type transition.  (Deprecated)
Chris PeBenito 113b4f
## </summary>
Chris PeBenito 113b4f
## <desc>
Chris PeBenito 113b4f
##	

Chris PeBenito 113b4f
##	Create an object in lib directories, with
Chris PeBenito 113b4f
##	the shared libraries type using a type transition.  (Deprecated)
Chris PeBenito 113b4f
##	

Chris PeBenito 113b4f
##	

Chris PeBenito 113b4f
##	lib_filetrans_shared_lib() should be used instead.
Chris PeBenito 113b4f
##	

Chris PeBenito 113b4f
## </desc>
Chris PeBenito 113b4f
## <param name="domain">
Chris PeBenito 113b4f
##	<summary>
Chris PeBenito 113b4f
##	Domain allowed access.
Chris PeBenito 113b4f
##	</summary>
Chris PeBenito 113b4f
## </param>
Chris PeBenito 113b4f
## <param name="object">
Chris PeBenito 113b4f
##	<summary>
Chris PeBenito 113b4f
##	The object class of the object being created.
Chris PeBenito 113b4f
##	</summary>
Chris PeBenito 113b4f
## </param>
Chris PeBenito 113b4f
#
Chris PeBenito 113b4f
interface(`files_lib_filetrans_shared_lib',`
Chris PeBenito 113b4f
	refpolicywarn(`$0($*) has been deprecated, use lib_filetrans_shared_lib() instead.')
Chris PeBenito 113b4f
	lib_filetrans_shared_lib($1,$2)
Chris PeBenito 113b4f
')