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 AB4FC138ACF for ; Sun, 25 Jan 2015 13:46:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37C62E086F; Sun, 25 Jan 2015 13:46:42 +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 44C61E0885 for ; Sun, 25 Jan 2015 13:46:41 +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 8E5263406BB for ; Sun, 25 Jan 2015 13:46:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4B6041057E for ; Sun, 25 Jan 2015 13:46:39 +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: <1422193520.9b58424a4d94e678b364bcc24869aa142abdaa62.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/udev.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 9b58424a4d94e678b364bcc24869aa142abdaa62 X-VCS-Branch: next Date: Sun, 25 Jan 2015 13:46:39 +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: edabfab1-b06f-4b0d-9e4d-7abb25844379 X-Archives-Hash: 90eb761ec3b234901d2380046521e934 commit: 9b58424a4d94e678b364bcc24869aa142abdaa62 Author: Jason Zaman perfinion com> AuthorDate: Tue Jan 20 14:21:00 2015 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Jan 25 13:45:20 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=9b58424a udev: allow netlink_socket perms udev needs these perms for CRDA communication (Central Regulatory Domain Agent for wifi) type=AVC msg=audit(1421753429.771:3718): avc: denied { create } for pid=28698 comm="crda" scontext=system_u:system_r:udev_t tcontext=system_u:system_r:udev_t tclass=netlink_socket permissive=1 type=AVC msg=audit(1421753429.771:3719): avc: denied { setopt } for pid=28698 comm="crda" scontext=system_u:system_r:udev_t tcontext=system_u:system_r:udev_t tclass=netlink_socket permissive=1 type=AVC msg=audit(1421753429.771:3720): avc: denied { bind } for pid=28698 comm="crda" scontext=system_u:system_r:udev_t tcontext=system_u:system_r:udev_t tclass=netlink_socket permissive=1 type=AVC msg=audit(1421753429.771:3721): avc: denied { getattr } for pid=28698 comm="crda" scontext=system_u:system_r:udev_t tcontext=system_u:system_r:udev_t tclass=netlink_socket permissive=1 type=AVC msg=audit(1421753429.771:3722): avc: denied { write } for pid=28698 comm="crda" scontext=system_u:system_r:udev_t tcontext=system_u:system_r:udev_t tclass=netlink_socket permissive=1 type=AVC msg=audit(1421753429.771:3723): avc: denied { read } for pid=28698 comm="crda" scontext=system_u:system_r:udev_t tcontext=system_u:system_r:udev_t tclass=netlink_socket permissive=1 --- policy/modules/system/udev.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/system/udev.te b/policy/modules/system/udev.te index 78e4328..810d135 100644 --- a/policy/modules/system/udev.te +++ b/policy/modules/system/udev.te @@ -334,6 +334,8 @@ ifdef(`distro_gentoo',` # needed for predictable network interfaces naming allow udev_t self:netlink_route_socket rw_netlink_socket_perms; + # needed for crda + allow udev_t self:netlink_socket create_socket_perms; manage_dirs_pattern(udev_t, udev_tbl_t, udev_tbl_t) manage_files_pattern(udev_t, udev_tbl_t, udev_tbl_t)