From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3CC2E1382DE for ; Sun, 3 Jul 2016 11:34:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F689141AD; Sun, 3 Jul 2016 11:34:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 13AFE141B2 for ; Sun, 3 Jul 2016 11:34:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5F704340E20 for ; Sun, 3 Jul 2016 11:34:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8F3292455 for ; Sun, 3 Jul 2016 11:34:15 +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: <1467545637.04768f431e51e63fe01b5c93fd639d54feb29380.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: 04768f431e51e63fe01b5c93fd639d54feb29380 X-VCS-Branch: swift Date: Sun, 3 Jul 2016 11:34:15 +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: 409729c6-0733-4de2-8111-1435dffde283 X-Archives-Hash: e3a63f4da993caa632919c93281959ef commit: 04768f431e51e63fe01b5c93fd639d54feb29380 Author: Sven Vermeulen gentoo org> AuthorDate: Sat Oct 10 12:08:03 2015 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Jul 3 11:33:57 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=04768f43 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 b04d149..e085cff 100644 --- a/policy/modules/system/userdomain.if +++ b/policy/modules/system/userdomain.if @@ -1259,6 +1259,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 }; ') ')