From f21915b7cacebed4be2ea57e690f33f96df1dc63 Mon Sep 17 00:00:00 2001 From: Sven Vermeulen Date: Fri, 8 Aug 2014 14:33:21 +0200 Subject: [PATCH] Introduce kernel_delete_unlabeled_blk_files The kernel_delete_unlabeled_blk_files interface is called by the (deprecated) files_delete_isid_type_blk_files in kernel/files.if. Signed-off-by: Sven Vermeulen --- policy/modules/kernel/kernel.if | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/policy/modules/kernel/kernel.if b/policy/modules/kernel/kernel.if index 13635c9ea..a8f71ffc3 100644 --- a/policy/modules/kernel/kernel.if +++ b/policy/modules/kernel/kernel.if @@ -2666,6 +2666,24 @@ interface(`kernel_rw_unlabeled_blk_files',` allow $1 unlabeled_t:blk_file rw_blk_file_perms; ') +######################################## +## +## Delete unlabeled block device nodes. +## +## +## +## Domain allowed access. +## +## +# +interface(`kernel_delete_unlabeled_blk_files',` + gen_require(` + type unlabeled_t; + ') + + delete_blk_files_pattern($1, unlabeled_t, unlabeled_t) +') + ######################################## ## ## Create, read, write, and delete unlabeled block device nodes.