selinux-policy/refpolicy/policy/modules/services/hal.if

40 lines
764 B
Plaintext
Raw Normal View History

2005-09-02 20:29:52 +00:00
## <summary>Hardware abstraction layer</summary>
2005-10-26 21:03:19 +00:00
########################################
## <summary>
## Execute hal in the hal domain.
## </summary>
## <param name="domain">
## Domain allowed access.
## </param>
#
interface(`hal_domtrans',`
gen_require(`
type hald_t, hald_exec_t;
')
domain_auto_trans($1,hald_exec_t,hald_t)
allow $1 hald_t:fd use;
allow hald_t $1:fd use;
allow hald_t $1:fifo_file rw_file_perms;
allow hald_t $1:process sigchld;
')
2005-11-08 22:00:30 +00:00
########################################
## <summary>
## Send to hal over a unix domain
## datagram socket.
## </summary>
## <param name="domain">
## Domain allowed access.
## </param>
#
interface(`hal_dgram_sendto',`
gen_require(`
type hald_t;
')
allow $1 hald_t:unix_dgram_socket sendto;
')