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 B660D13888F for ; Sat, 10 Oct 2015 12:11:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DDB6F21C034; Sat, 10 Oct 2015 12:11:19 +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 862F921C035 for ; Sat, 10 Oct 2015 12:11:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C09573406F0 for ; Sat, 10 Oct 2015 12:11:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6CBBEE28 for ; Sat, 10 Oct 2015 12:11:09 +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: <1444478883.bb92924b4730deb3dbd1c0a9f2a763ff99cd06c5.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:swift commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/userdomain.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: bb92924b4730deb3dbd1c0a9f2a763ff99cd06c5 X-VCS-Branch: swift Date: Sat, 10 Oct 2015 12:11:09 +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: b0f3b060-e51f-4a81-a478-b0d4cc09f756 X-Archives-Hash: 7c10418ade6432fde857145113a84607 commit: bb92924b4730deb3dbd1c0a9f2a763ff99cd06c5 Author: Sven Vermeulen gentoo org> AuthorDate: Sat Oct 10 12:08:03 2015 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sat Oct 10 12:08:03 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=bb92924b Manage tun/tap interfaces We need the relabelfrom/relabelto rights, otherwise tun/tap interface activities fail: ~# tunctl -d tap0 TUNSETIFF: Permission denied policy/modules/system/userdomain.if | 3 +++ 1 file changed, 3 insertions(+) diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if index ea03e86..c53daff 100644 --- a/policy/modules/system/userdomain.if +++ b/policy/modules/system/userdomain.if @@ -1254,6 +1254,9 @@ template(`userdom_admin_user_template',` seutil_relabelto_bin_policy($1_t) # allow to manage chr_files in user_tmp (for initrd's) userdom_manage_user_tmp_chr_files($1_t) + # allow managing tun/tap interfaces (labeling) + # without this operations such as tunctl -d tap0 result in a TUNSETIFF: Device or resource busy + allow $1_t self:tun_socket { relabelfrom relabelto }; ') ')