Skip to content

Commit

Permalink
kernel/files: add interface files_create_generic_tmp_sockets
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Schiffbauer <[email protected]>
  • Loading branch information
mschiff committed Dec 6, 2024
1 parent ec2e775 commit 9338589
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions policy/modules/kernel/files.if
Original file line number Diff line number Diff line change
Expand Up @@ -7462,6 +7462,24 @@ interface(`files_create_all_runtime_sockets',`
allow $1 pidfile:sock_file create_sock_file_perms;
')

########################################
## <summary>
## Create tmp_t sockets.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`files_create_generic_tmp_sockets',`
gen_require(`
type tmp_t;
')

allow $1 tmp_t:sock_file create_sock_file_perms;
')

########################################
## <summary>
## Delete all runtime sockets.
Expand Down

0 comments on commit 9338589

Please sign in to comment.