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 356A013877A for ; Fri, 15 Aug 2014 10:04:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 76BFDE0A03; Fri, 15 Aug 2014 10:04:33 +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 863F1E0A03 for ; Fri, 15 Aug 2014 10:04:32 +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 7BE60340697 for ; Fri, 15 Aug 2014 10:04:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id EB97B18816 for ; Fri, 15 Aug 2014 10:04:29 +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: <1408096681.376cc6ab8bf4ebc9d108d35bbc7c93a98f439efc.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: 376cc6ab8bf4ebc9d108d35bbc7c93a98f439efc X-VCS-Branch: salt Date: Fri, 15 Aug 2014 10:04:29 +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: 3eb404c7-fae9-49cf-a348-d2b93274b3d6 X-Archives-Hash: 03fd5d711011a5a115e9b2d9ec837c91 Message-ID: <20140815100429.KB4p8Z2TpAbfO1ENJ7Jlp6Qg-3ZtxJyKT-8u2exLDcY@z> commit: 376cc6ab8bf4ebc9d108d35bbc7c93a98f439efc Author: Sven Vermeulen siphos be> AuthorDate: Fri Aug 8 12:33:19 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Aug 15 09:58:01 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=376cc6ab Introduce kernel_delete_unlabeled_pipes The kernel_delete_unlabeled_pipes interface is called by the (deprecated) files_delete_isid_type_fifo_files interface in kernel/files.if. Signed-off-by: Sven Vermeulen siphos.be> --- 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 0ef8242..035f101 100644 --- a/policy/modules/kernel/kernel.if +++ b/policy/modules/kernel/kernel.if @@ -2835,6 +2835,24 @@ interface(`kernel_relabelfrom_unlabeled_pipes',` ######################################## ## +## Delete unlabeled named pipes +## +## +## +## Domain allowed access. +## +## +# +interface(`kernel_delete_unlabeled_pipes',` + gen_require(` + type unlabeled_t; + ') + + delete_fifo_files_pattern($1, unlabeled_t, unlabeled_t) +') + +######################################## +## ## Allow caller to relabel unlabeled named sockets. ## ##