userdomain: introduce userdom_user_home_dir_filetrans_user_cert

Signed-off-by: Jason Zaman <jason@perfinion.com>
This commit is contained in:
Jason Zaman 2019-01-12 16:03:43 +08:00 committed by Chris PeBenito
parent 4ed30f7492
commit fa23645ca1
1 changed files with 29 additions and 0 deletions

View File

@ -2491,6 +2491,35 @@ interface(`userdom_user_home_content_filetrans',`
files_search_home($1)
')
########################################
## <summary>
## Automatically use the user_cert_t label for selected resources
## created in a users home directory
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access
## </summary>
## </param>
## <param name="class">
## <summary>
## Resource type(s) for which the label should be used
## </summary>
## </param>
## <param name="filename" optional="true">
## <summary>
## Name of the resource that is being created
## </summary>
## </param>
#
interface(`userdom_user_home_dir_filetrans_user_cert',`
gen_require(`
type user_cert_t;
')
userdom_user_home_dir_filetrans($1, user_cert_t, $2, $3)
')
########################################
## <summary>
## Create objects in a user home directory