kernel: add filetrans interface for unlabeled dirs
Signed-off-by: Kenton Groombridge <me@concord.sh>
This commit is contained in:
parent
52dc8d8a26
commit
81d26ac72e
@ -2911,6 +2911,40 @@ interface(`kernel_dontaudit_read_unlabeled_files',`
|
||||
dontaudit $1 unlabeled_t:file { getattr read };
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Create an object in unlabeled directories
|
||||
## with a private type.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
## <param name="private type">
|
||||
## <summary>
|
||||
## The type of the object to be created.
|
||||
## </summary>
|
||||
## </param>
|
||||
## <param name="object">
|
||||
## <summary>
|
||||
## The object class of the object being created.
|
||||
## </summary>
|
||||
## </param>
|
||||
## <param name="name" optional="true">
|
||||
## <summary>
|
||||
## The name of the object being created.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`kernel_unlabeled_filetrans',`
|
||||
gen_require(`
|
||||
type unlabeled_t;
|
||||
')
|
||||
|
||||
filetrans_pattern($1, unlabeled_t, $2, $3, $4)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Delete unlabeled symbolic links.
|
||||
|
Loading…
Reference in New Issue
Block a user