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

91 lines
1.8 KiB
Plaintext

## <summary>Gnome clock handler for setting the time.</summary>
########################################
## <summary>
## Execute a domain transition to
## run gnomeclock.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`gnomeclock_domtrans',`
gen_require(`
type gnomeclock_t, gnomeclock_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, gnomeclock_exec_t, gnomeclock_t)
')
########################################
## <summary>
## Execute gnomeclock in the gnomeclock
## domain, and allow the specified
## role the gnomeclock domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
## <param name="role">
## <summary>
## Role allowed access.
## </summary>
## </param>
#
interface(`gnomeclock_run',`
gen_require(`
attribute_role gnomeclock_roles;
')
gnomeclock_domtrans($1)
roleattribute $2 gnomeclock_roles;
')
########################################
## <summary>
## Send and receive messages from
## gnomeclock over dbus.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`gnomeclock_dbus_chat',`
gen_require(`
type gnomeclock_t;
class dbus send_msg;
')
allow $1 gnomeclock_t:dbus send_msg;
allow gnomeclock_t $1:dbus send_msg;
')
########################################
## <summary>
## Do not audit attempts to send and
## receive messages from gnomeclock
## over dbus.
## </summary>
## <param name="domain">
## <summary>
## Domain to not audit.
## </summary>
## </param>
#
interface(`gnomeclock_dontaudit_dbus_chat',`
gen_require(`
type gnomeclock_t;
class dbus send_msg;
')
dontaudit $1 gnomeclock_t:dbus send_msg;
dontaudit gnomeclock_t $1:dbus send_msg;
')