|
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 |
0bfccd |
domtrans_pattern($1, oddjob_exec_t, oddjob_t)
|
|
Chris PeBenito |
e2b84e |
')
|
|
Chris PeBenito |
e2b84e |
|
|
Dan Walsh |
3eaa99 |
#####################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Do not audit attempts to read and write
|
|
Dan Walsh |
3eaa99 |
## oddjob fifo file.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dominick Grift |
d18313 |
## Domain to not audit.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`oddjob_dontaudit_rw_fifo_file',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type shutdown_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
dontaudit $1 oddjob_t:fifo_file rw_inherited_fifo_file_perms;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
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 |
c0868a |
domtrans_pattern(oddjob_t, $2, $1)
|
|
Dan Walsh |
3eaa99 |
domain_user_exemption_target($1)
|
|
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 |
|
|
Dan Walsh |
3eaa99 |
######################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Send a SIGCHLD signal to oddjob.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`oddjob_sigchld',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type oddjob_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow $1 oddjob_t:process sigchld;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
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 |
0bfccd |
domtrans_pattern($1, oddjob_mkhomedir_exec_t, oddjob_mkhomedir_t)
|
|
Chris PeBenito |
e2b84e |
')
|
|
Chris PeBenito |
708a74 |
|
|
Chris PeBenito |
708a74 |
########################################
|
|
Chris PeBenito |
708a74 |
## <summary>
|
|
Chris PeBenito |
708a74 |
## Execute the oddjob_mkhomedir program in the oddjob_mkhomedir domain.
|
|
Chris PeBenito |
708a74 |
## </summary>
|
|
Chris PeBenito |
708a74 |
## <param name="domain">
|
|
Chris PeBenito |
708a74 |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed to transition.
|
|
Chris PeBenito |
708a74 |
## </summary>
|
|
Chris PeBenito |
708a74 |
## </param>
|
|
Chris PeBenito |
708a74 |
## <param name="role">
|
|
Chris PeBenito |
708a74 |
## <summary>
|
|
Chris PeBenito |
708a74 |
## Role allowed access.
|
|
Chris PeBenito |
708a74 |
## </summary>
|
|
Chris PeBenito |
708a74 |
## </param>
|
|
Chris PeBenito |
708a74 |
## <rolecap/>
|
|
Chris PeBenito |
708a74 |
#
|
|
Chris PeBenito |
708a74 |
interface(`oddjob_run_mkhomedir',`
|
|
Chris PeBenito |
708a74 |
gen_require(`
|
|
Chris PeBenito |
708a74 |
type oddjob_mkhomedir_t;
|
|
Chris PeBenito |
708a74 |
')
|
|
Chris PeBenito |
708a74 |
|
|
Chris PeBenito |
708a74 |
oddjob_domtrans_mkhomedir($1)
|
|
Chris PeBenito |
708a74 |
role $2 types oddjob_mkhomedir_t;
|
|
Chris PeBenito |
708a74 |
')
|