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 03E4313877A for ; Tue, 19 Aug 2014 12:17:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A98A4E09AB; Tue, 19 Aug 2014 12:17:27 +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 9A081E09AD for ; Tue, 19 Aug 2014 12:17:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 90C6A340313 for ; Tue, 19 Aug 2014 12:17:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E1B8C3C03 for ; Tue, 19 Aug 2014 09:19:40 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1408096679.01775f1aa6754ec1b90f1497fbe08592c710e4a3.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master 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: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 01775f1aa6754ec1b90f1497fbe08592c710e4a3 X-VCS-Branch: master Date: Tue, 19 Aug 2014 09:19:40 +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: b2d66bed-fa10-472f-9d27-24708a22ff45 X-Archives-Hash: a78fcae32ed3df4adf83aaf08bc2a74f commit: 01775f1aa6754ec1b90f1497fbe08592c710e4a3 Author: Sven Vermeulen siphos be> AuthorDate: Fri Aug 8 12:33:18 2014 +0000 Commit: Jason Zaman perfinion com> CommitDate: Fri Aug 15 09:57:59 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=01775f1a Introduce kernel_delete_unlabeled_symlinks The kernel_delete_unlabeled_symlinks interface is called by the files_delete_isid_type_symlinks interface (in kernel/files.if). This interface is deprecated (and calls kernel_delete_unlabeled_symlinks). 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 18cef42..0ef8242 100644 --- a/policy/modules/kernel/kernel.if +++ b/policy/modules/kernel/kernel.if @@ -2556,6 +2556,24 @@ interface(`kernel_dontaudit_read_unlabeled_files',` ######################################## ## +## Delete unlabeled symbolic links. +## +## +## +## Domain allowed access. +## +## +# +interface(`kernel_delete_unlabeled_symlinks',` + gen_require(` + type unlabeled_t; + ') + + delete_lnk_files_pattern($1, unlabeled_t, unlabeled_t) +') + +######################################## +## ## Create, read, write, and delete unlabeled symbolic links. ## ##