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 9455113877A for ; Wed, 20 Aug 2014 17:29:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E4FD3E0384; Wed, 20 Aug 2014 17:29:31 +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 4A646E0384 for ; Wed, 20 Aug 2014 17:29:31 +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 D1A3A3401CB for ; Wed, 20 Aug 2014 17:29:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7EE523A4B for ; Wed, 20 Aug 2014 17:29:13 +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: <1408554623.9660ec3c7e65d654770832d9011cce2eb7bc1134.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master 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: 9660ec3c7e65d654770832d9011cce2eb7bc1134 X-VCS-Branch: master Date: Wed, 20 Aug 2014 17:29:13 +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: ae4dc429-fd10-4b11-909f-39cfe05b8131 X-Archives-Hash: 4f4f210194cb697baeb5e66deeb083ed commit: 9660ec3c7e65d654770832d9011cce2eb7bc1134 Author: Jason Zaman perfinion com> AuthorDate: Wed Aug 20 16:26:29 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Wed Aug 20 17:10:23 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=9660ec3c Allow udev udev to set predictable ifnames Udev sets the interface names predictably, it uses a netlink_route_socket to do so. more info at: http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ --- policy/modules/system/udev.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/policy/modules/system/udev.te b/policy/modules/system/udev.te index 83a8b11..737e854 100644 --- a/policy/modules/system/udev.te +++ b/policy/modules/system/udev.te @@ -332,6 +332,9 @@ ifdef(`distro_gentoo',` allow udev_t self:capability2 block_suspend; allow udev_t udev_tbl_t:dir relabelto; + # needed for predictable network interfaces naming + allow udev_t self:netlink_route_socket rw_netlink_socket_perms; + manage_dirs_pattern(udev_t, udev_tbl_t, udev_tbl_t) manage_files_pattern(udev_t, udev_tbl_t, udev_tbl_t) manage_lnk_files_pattern(udev_t, udev_tbl_t, udev_tbl_t)