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 3760F138CC5 for ; Wed, 25 Mar 2015 16:01:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4CF0DE080A; Wed, 25 Mar 2015 16:01:29 +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 E03FFE080A for ; Wed, 25 Mar 2015 16:01:28 +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 14D0F340998 for ; Wed, 25 Mar 2015 16:01:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4817014848 for ; Wed, 25 Mar 2015 16:01:19 +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: <1427298885.84771e7cc45aa4f5b0b9ac2a3834a48a24f1b3c6.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/chromium.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 84771e7cc45aa4f5b0b9ac2a3834a48a24f1b3c6 X-VCS-Branch: next Date: Wed, 25 Mar 2015 16:01:19 +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: 764ad1b6-6ccf-4dc2-8651-476a97c6ff3e X-Archives-Hash: f0a77fe37932b1397ff3c965e9f2183a commit: 84771e7cc45aa4f5b0b9ac2a3834a48a24f1b3c6 Author: Jason Zaman perfinion com> AuthorDate: Tue Mar 24 15:53:44 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Wed Mar 25 15:54:45 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=84771e7c introduce chromium_rw_usb_dev allows chromium to use USB devices for android debugging or to use a FIDO U2F token. policy/modules/contrib/chromium.te | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/policy/modules/contrib/chromium.te b/policy/modules/contrib/chromium.te index e5aa5aa..b2c9ccc 100644 --- a/policy/modules/contrib/chromium.te +++ b/policy/modules/contrib/chromium.te @@ -41,6 +41,17 @@ gen_tunable(chromium_read_system_info, false) ## gen_tunable(chromium_bind_tcp_unreserved_ports, false) +## +##

+## Allow chromium to read/write USB devices +##

+##

+## Although not needed for regular browsing, used for debugging over usb +## or using FIDO U2F tokens. +##

+##
+gen_tunable(chromium_rw_usb_dev, false) + type chromium_t; domain_dyntrans_type(chromium_t) @@ -181,6 +192,10 @@ tunable_policy(`chromium_bind_tcp_unreserved_ports',` allow chromium_t self:tcp_socket { listen accept }; ') +tunable_policy(`chromium_rw_usb_dev',` + dev_rw_generic_usb_dev(chromium_t) +') + tunable_policy(`chromium_read_system_info',` kernel_read_kernel_sysctls(chromium_t) # Memory optimizations & optimizations based on OS/version