userdomain: add userdom_delete_user_tmpfs_files() for pulseaudio clients

Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
This commit is contained in:
Dominick Grift 2013-11-09 10:44:44 +01:00 committed by Chris PeBenito
parent f06282d1e0
commit b0068ace7d
1 changed files with 19 additions and 0 deletions

View File

@ -2661,6 +2661,25 @@ interface(`userdom_tmp_filetrans_user_tmp',`
files_tmp_filetrans($1, user_tmp_t, $2, $3)
')
########################################
## <summary>
## Delete user tmpfs files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`userdom_delete_user_tmpfs_files',`
gen_require(`
type user_tmpfs_t;
')
delete_files_pattern($1, user_tmpfs_t, user_tmpfs_t)
fs_search_tmpfs($1)
')
########################################
## <summary>
## Read user tmpfs files.