From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6102313877A for ; Fri, 15 Aug 2014 10:04:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F312BE0A62; Fri, 15 Aug 2014 10:04:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ABE6EE0A59 for ; Fri, 15 Aug 2014 10:04:33 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A9925340699 for ; Fri, 15 Aug 2014 10:04:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 5CF371881D for ; Fri, 15 Aug 2014 10:04:30 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1408096687.044584b198f2b155849e5f00f9fdeb7531882d28.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:salt commit in: policy/modules/kernel/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/kernel.if X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 044584b198f2b155849e5f00f9fdeb7531882d28 X-VCS-Branch: salt Date: Fri, 15 Aug 2014 10:04:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9638c790-19fa-494f-aa9c-e2ffa44f6b62 X-Archives-Hash: cdf41f0a5ffbb429948a732d8a7c6c94 Message-ID: <20140815100430.Lgn2k2xwNURd8ZQdQkLkncNZ3e0z1LFDc4p_32Kz8k0@z> commit: 044584b198f2b155849e5f00f9fdeb7531882d28 Author: Sven Vermeulen siphos be> AuthorDate: Fri Aug 8 12:33:22 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Aug 15 09:58:07 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=044584b1 Introduce kernel_delete_unlabeled_chr_files The kernel_delete_unlabeled_chr_files interface is called by the (deprecated) files_delete_isid_type_chr_files interface in kernel/files.if. Signed-off-by: Sven Vermeulen siphos.be> --- policy/modules/kernel/kernel.if | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/policy/modules/kernel/kernel.if b/policy/modules/kernel/kernel.if index 5d978cc..c100068 100644 --- a/policy/modules/kernel/kernel.if +++ b/policy/modules/kernel/kernel.if @@ -2760,6 +2760,25 @@ interface(`kernel_dontaudit_write_unlabeled_chr_files',` ######################################## ## +## Delete unlabeled character device nodes. +## +## +## +## Domain allowed access. +## +## +# +interface(`kernel_delete_unlabeled_chr_files',` + gen_require(` + type unlabeled_t; + ') + + delete_chr_files_pattern($1, unlabeled_t, unlabeled_t) +') + + +######################################## +## ## Create, read, write, and delete unlabeled character device nodes. ## ##