selinux-refpolicy/policy/modules/services/certbot.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

47 lines
946 B
Plaintext

## <summary>SSL certificate requesting tool certbot AKA letsencrypt.</summary>
########################################
## <summary>
## Execute certbot/letsencrypt in the certbot
## domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`certbot_domtrans',`
gen_require(`
type certbot_t, certbot_exec_t;
')
domtrans_pattern($1, certbot_exec_t, certbot_t)
')
########################################
## <summary>
## Execute certbot/letsencrypt in the certbot
## domain, and allow the specified role
## the firstboot domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
## <param name="role">
## <summary>
## Role allowed access.
## </summary>
## </param>
#
interface(`certbot_run',`
gen_require(`
type certbot_t;
')
certbot_domtrans($1)
role $2 types certbot_t;
')