|
Chris PeBenito |
e2b84e |
## <summary>
|
|
Chris PeBenito |
e2b84e |
## Oddjob provides a mechanism by which unprivileged applications can
|
|
Chris PeBenito |
e2b84e |
## request that specified privileged operations be performed on their
|
|
Chris PeBenito |
e2b84e |
## behalf.
|
|
Chris PeBenito |
e2b84e |
## </summary>
|
|
Chris PeBenito |
e2b84e |
|
|
Chris PeBenito |
e2b84e |
########################################
|
|
Chris PeBenito |
e2b84e |
## <summary>
|
|
Chris PeBenito |
e2b84e |
## Execute a domain transition to run oddjob.
|
|
Chris PeBenito |
e2b84e |
## </summary>
|
|
Chris PeBenito |
e2b84e |
## <param name="domain">
|
|
Chris PeBenito |
e2b84e |
## <summary>
|
|
Chris PeBenito |
e2b84e |
## Domain allowed to transition.
|
|
Chris PeBenito |
e2b84e |
## </summary>
|
|
Chris PeBenito |
e2b84e |
## </param>
|
|
Chris PeBenito |
e2b84e |
#
|
|
Chris PeBenito |
e2b84e |
interface(`oddjob_domtrans',`
|
|
Chris PeBenito |
e2b84e |
gen_require(`
|
|
Chris PeBenito |
e2b84e |
type oddjob_t, oddjob_exec_t;
|
|
Chris PeBenito |
e2b84e |
')
|
|
Chris PeBenito |
e2b84e |
|
|
Chris PeBenito |
e2b84e |
domain_auto_trans($1,oddjob_exec_t,oddjob_t)
|
|
Chris PeBenito |
e2b84e |
allow oddjob_t $1:fd use;
|
|
Chris PeBenito |
e2b84e |
allow oddjob_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
e2b84e |
allow oddjob_t $1:process sigchld;
|
|
Chris PeBenito |
e2b84e |
')
|
|
Chris PeBenito |
e2b84e |
|
|
Chris PeBenito |
e2b84e |
########################################
|
|
Chris PeBenito |
e2b84e |
## <summary>
|
|
Chris PeBenito |
e2b84e |
## Make the specified program domain accessable
|
|
Chris PeBenito |
e2b84e |
## from the oddjob.
|
|
Chris PeBenito |
e2b84e |
## </summary>
|
|
Chris PeBenito |
e2b84e |
## <param name="domain">
|
|
Chris PeBenito |
e2b84e |
## <summary>
|
|
Chris PeBenito |
e2b84e |
## The type of the process to transition to.
|
|
Chris PeBenito |
e2b84e |
## </summary>
|
|
Chris PeBenito |
e2b84e |
## </param>
|
|
Chris PeBenito |
e2b84e |
## <param name="entrypoint">
|
|
Chris PeBenito |
e2b84e |
## <summary>
|
|
Chris PeBenito |
e2b84e |
## The type of the file used as an entrypoint to this domain.
|
|
Chris PeBenito |
e2b84e |
## </summary>
|
|
Chris PeBenito |
e2b84e |
## </param>
|
|
Chris PeBenito |
e2b84e |
#
|
|
Chris PeBenito |
e2b84e |
interface(`oddjob_system_entry',`
|
|
Chris PeBenito |
e2b84e |
gen_require(`
|
|
Chris PeBenito |
e2b84e |
type oddjob_t;
|
|
Chris PeBenito |
e2b84e |
')
|
|
Chris PeBenito |
e2b84e |
|
|
Chris PeBenito |
e2b84e |
domain_auto_trans(oddjob_t, $2, $1)
|
|
Chris PeBenito |
e2b84e |
allow $1 oddjob_t:fd use;
|
|
Chris PeBenito |
e2b84e |
allow $1 oddjob_t:fifo_file rw_file_perms;
|
|
Chris PeBenito |
e2b84e |
allow $1 oddjob_t:process sigchld;
|
|
Chris PeBenito |
e2b84e |
')
|
|
Chris PeBenito |
e2b84e |
|
|
Chris PeBenito |
e2b84e |
|
|
Chris PeBenito |
e2b84e |
########################################
|
|
Chris PeBenito |
e2b84e |
## <summary>
|
|
Chris PeBenito |
e2b84e |
## Send and receive messages from
|
|
Chris PeBenito |
e2b84e |
## oddjob over dbus.
|
|
Chris PeBenito |
e2b84e |
## </summary>
|
|
Chris PeBenito |
e2b84e |
## <param name="domain">
|
|
Chris PeBenito |
e2b84e |
## <summary>
|
|
Chris PeBenito |
e2b84e |
## Domain allowed access.
|
|
Chris PeBenito |
e2b84e |
## </summary>
|
|
Chris PeBenito |
e2b84e |
## </param>
|
|
Chris PeBenito |
e2b84e |
#
|
|
Chris PeBenito |
e2b84e |
interface(`oddjob_dbus_chat',`
|
|
Chris PeBenito |
e2b84e |
gen_require(`
|
|
Chris PeBenito |
e2b84e |
type oddjob_t;
|
|
Chris PeBenito |
e2b84e |
class dbus send_msg;
|
|
Chris PeBenito |
e2b84e |
')
|
|
Chris PeBenito |
e2b84e |
|
|
Chris PeBenito |
e2b84e |
allow $1 oddjob_t:dbus send_msg;
|
|
Chris PeBenito |
e2b84e |
allow oddjob_t $1:dbus send_msg;
|
|
Chris PeBenito |
e2b84e |
')
|
|
Chris PeBenito |
e2b84e |
|
|
Chris PeBenito |
e2b84e |
########################################
|
|
Chris PeBenito |
e2b84e |
## <summary>
|
|
Chris PeBenito |
e2b84e |
## Execute a domain transition to run oddjob_mkhomedir.
|
|
Chris PeBenito |
e2b84e |
## </summary>
|
|
Chris PeBenito |
e2b84e |
## <param name="domain">
|
|
Chris PeBenito |
e2b84e |
## <summary>
|
|
Chris PeBenito |
e2b84e |
## Domain allowed to transition.
|
|
Chris PeBenito |
e2b84e |
## </summary>
|
|
Chris PeBenito |
e2b84e |
## </param>
|
|
Chris PeBenito |
e2b84e |
#
|
|
Chris PeBenito |
e2b84e |
interface(`oddjob_domtrans_mkhomedir',`
|
|
Chris PeBenito |
e2b84e |
gen_require(`
|
|
Chris PeBenito |
e2b84e |
type oddjob_mkhomedir_t, oddjob_mkhomedir_exec_t;
|
|
Chris PeBenito |
e2b84e |
')
|
|
Chris PeBenito |
e2b84e |
|
|
Chris PeBenito |
e2b84e |
domain_auto_trans($1,oddjob_mkhomedir_exec_t,oddjob_mkhomedir_t)
|
|
Chris PeBenito |
e2b84e |
allow oddjob_mkhomedir_t $1:fd use;
|
|
Chris PeBenito |
e2b84e |
allow oddjob_mkhomedir_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
e2b84e |
allow oddjob_mkhomedir_t $1:process sigchld;
|
|
Chris PeBenito |
e2b84e |
')
|