selinux-refpolicy/policy/modules/apps/livecd.if
Markus Linnala 9127219358 policy: interfaces: doc: indent param blocks consistently
There is more than 5000 parameter documentations. Only about 300 are
differently done. Change them to be consistently indented.

param with one space
and content inside with one tab

This was done with:

sed -ri '
/^##[[:space:]]*<param/,/^##[[:space:]]*<[/]param>/{
	s/^##[[:space:]]*/##\t/;
	s/^##[[:space:]]*(<[/]?summary)/##\t\1/;
	s/^##[[:space:]]*(<[/]?param)/## \1/;
}' policy/modules/*/*.if

Signed-off-by: Markus Linnala <Markus.Linnala@cybercom.com>
2021-07-02 12:19:25 +03:00

103 lines
1.9 KiB
Plaintext

## <summary>Tool for building alternate livecd for different os and policy versions.</summary>
########################################
## <summary>
## Execute a domain transition to run livecd.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`livecd_domtrans',`
gen_require(`
type livecd_t, livecd_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, livecd_exec_t, livecd_t)
')
########################################
## <summary>
## Execute livecd in the livecd
## domain, and allow the specified
## role the livecd domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
## <param name="role">
## <summary>
## Role allowed access.
## </summary>
## </param>
#
interface(`livecd_run',`
gen_require(`
attribute_role livecd_roles;
')
livecd_domtrans($1)
roleattribute $2 livecd_roles;
')
########################################
## <summary>
## Read livecd temporary files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`livecd_read_tmp_files',`
gen_require(`
type livecd_tmp_t;
')
files_search_tmp($1)
read_files_pattern($1, livecd_tmp_t, livecd_tmp_t)
')
########################################
## <summary>
## Read and write livecd temporary files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`livecd_rw_tmp_files',`
gen_require(`
type livecd_tmp_t;
')
files_search_tmp($1)
rw_files_pattern($1, livecd_tmp_t, livecd_tmp_t)
')
########################################
## <summary>
## Read and write livecd semaphores.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`livecd_rw_semaphores',`
gen_require(`
type livecd_t;
')
allow $1 livecd_t:sem rw_sem_perms;
')