samba: Move service interface definitions.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
This commit is contained in:
parent
ac5b8737fd
commit
5d29c35b89
|
@ -328,6 +328,82 @@ interface(`samba_read_share_files',`
|
|||
read_files_pattern($1, samba_share_t, samba_share_t)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## start samba daemon
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`samba_start',`
|
||||
gen_require(`
|
||||
type samba_unit_t;
|
||||
')
|
||||
|
||||
allow $1 samba_unit_t:file getattr;
|
||||
allow $1 samba_unit_t:service start;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## stop samba daemon
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`samba_stop',`
|
||||
gen_require(`
|
||||
type samba_unit_t;
|
||||
')
|
||||
|
||||
allow $1 samba_unit_t:file getattr;
|
||||
allow $1 samba_unit_t:service stop;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## get status of samba daemon
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`samba_status',`
|
||||
gen_require(`
|
||||
type samba_unit_t;
|
||||
')
|
||||
|
||||
allow $1 samba_unit_t:file getattr;
|
||||
allow $1 samba_unit_t:service status;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## reload samba daemon
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`samba_reload',`
|
||||
gen_require(`
|
||||
type samba_unit_t;
|
||||
')
|
||||
|
||||
allow $1 samba_unit_t:file getattr;
|
||||
allow $1 samba_unit_t:service reload;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Search samba var directories.
|
||||
|
@ -729,79 +805,3 @@ interface(`samba_admin',`
|
|||
files_list_tmp($1)
|
||||
admin_pattern($1, { swat_tmp_t smbd_tmp_t winbind_tmp_t })
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## start samba daemon
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`samba_start',`
|
||||
gen_require(`
|
||||
type samba_unit_t;
|
||||
')
|
||||
|
||||
allow $1 samba_unit_t:file getattr;
|
||||
allow $1 samba_unit_t:service start;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## stop samba daemon
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`samba_stop',`
|
||||
gen_require(`
|
||||
type samba_unit_t;
|
||||
')
|
||||
|
||||
allow $1 samba_unit_t:file getattr;
|
||||
allow $1 samba_unit_t:service stop;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## get status of samba daemon
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`samba_status',`
|
||||
gen_require(`
|
||||
type samba_unit_t;
|
||||
')
|
||||
|
||||
allow $1 samba_unit_t:file getattr;
|
||||
allow $1 samba_unit_t:service status;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## reload samba daemon
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`samba_reload',`
|
||||
gen_require(`
|
||||
type samba_unit_t;
|
||||
')
|
||||
|
||||
allow $1 samba_unit_t:file getattr;
|
||||
allow $1 samba_unit_t:service reload;
|
||||
')
|
||||
|
|
Loading…
Reference in New Issue