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 BA705138CD3 for ; Tue, 9 Jun 2015 13:24:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4D048E08B2; Tue, 9 Jun 2015 13:24: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 8A719E08B1 for ; Tue, 9 Jun 2015 13:24:27 +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 D01C4340AD7 for ; Tue, 9 Jun 2015 13:24:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D9D91A29 for ; Tue, 9 Jun 2015 13:24:18 +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: <1433668656.2b907c6e33c8e7ada4826e2b94d699a8666eadf1.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:swift commit in: policy/modules/kernel/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/devices.if X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 2b907c6e33c8e7ada4826e2b94d699a8666eadf1 X-VCS-Branch: swift Date: Tue, 9 Jun 2015 13:24:18 +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: a237ec6a-152c-414d-b778-c479f9eb462a X-Archives-Hash: 532281a15cb9b2c3a8e9fa36f48b03a1 Message-ID: <20150609132418.IAemUZWkBifSjWLFoZsv_PXhiNiintuUH0B4KtRldtY@z> commit: 2b907c6e33c8e7ada4826e2b94d699a8666eadf1 Author: Sven Vermeulen siphos be> AuthorDate: Sun Jun 7 09:17:36 2015 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Jun 7 09:17:36 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=2b907c6e Add dev_dontaudit_usbmon_dev interface This will allow us to hide avc denials for applications erroneously trying to read the usbmon device files. policy/modules/kernel/devices.if | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/policy/modules/kernel/devices.if b/policy/modules/kernel/devices.if index 5ab0f6e..ed25979 100644 --- a/policy/modules/kernel/devices.if +++ b/policy/modules/kernel/devices.if @@ -5008,3 +5008,22 @@ interface(`dev_relabel_cpu_online',` dev_search_sysfs($1) allow $1 cpu_online_t:file relabel_file_perms; ') + +######################################## +## +## Dont audit attempts to read usbmon devices +## +## +## +## Domain for which the attempts do not need to be audited +## +## +# +interface(`dev_dontaudit_read_usbmon_dev',` + gen_require(` + type usbmon_device_t; + ') + + dontaudit $1 usbmon_device_t:chr_file read_file_perms; +') +