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 9A673138C8E for ; Mon, 24 Oct 2016 15:46:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F06D2E0A5F; Mon, 24 Oct 2016 15:45:58 +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 DB5DAE0A5F for ; Mon, 24 Oct 2016 15:45:58 +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 98DA134165F for ; Mon, 24 Oct 2016 15:45:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6693724BA for ; Mon, 24 Oct 2016 15:45:53 +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: <1477323930.385048b24a6639c4a51573409f2b4c42692827b3.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: 385048b24a6639c4a51573409f2b4c42692827b3 X-VCS-Branch: swift Date: Mon, 24 Oct 2016 15:45:53 +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: b16cae1b-b75d-4d6b-ba6b-36eab548e5ea X-Archives-Hash: e7771efe5b7a24bd56dbc793452bdb5f commit: 385048b24a6639c4a51573409f2b4c42692827b3 Author: Sven Vermeulen gentoo org> AuthorDate: Sat Oct 10 12:08:03 2015 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Oct 24 15:45:30 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=385048b2 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 bf78a2b..1572b51 100644 --- a/policy/modules/system/userdomain.if +++ b/policy/modules/system/userdomain.if @@ -1300,6 +1300,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 }; ') ') 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 B3802138C92 for ; Mon, 24 Oct 2016 16:02:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D52B6E0B32; Mon, 24 Oct 2016 16:02:24 +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 A3577E0B32 for ; Mon, 24 Oct 2016 16:02:24 +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 DA6C034166C for ; Mon, 24 Oct 2016 16:02:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4C332304 for ; Mon, 24 Oct 2016 16:02:21 +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: <1477323930.385048b24a6639c4a51573409f2b4c42692827b3.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/userdomain.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 385048b24a6639c4a51573409f2b4c42692827b3 X-VCS-Branch: master Date: Mon, 24 Oct 2016 16:02:21 +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: 0627832a-a258-4968-8141-fa86b4027179 X-Archives-Hash: a5bc41180466b1f8d9ceb3225192c85e Message-ID: <20161024160221.IXRPlfGKnDehgu8JoZMwnAsJL2-nyG8g6MsmaH2phoA@z> commit: 385048b24a6639c4a51573409f2b4c42692827b3 Author: Sven Vermeulen gentoo org> AuthorDate: Sat Oct 10 12:08:03 2015 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Oct 24 15:45:30 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=385048b2 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 bf78a2b..1572b51 100644 --- a/policy/modules/system/userdomain.if +++ b/policy/modules/system/userdomain.if @@ -1300,6 +1300,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 }; ') ') 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 2B6D6138C92 for ; Mon, 24 Oct 2016 16:03:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0259821C012; Mon, 24 Oct 2016 16:03:06 +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 E0C6A21C012 for ; Mon, 24 Oct 2016 16:03:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 0291F341657 for ; Mon, 24 Oct 2016 16:03:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C5775304 for ; Mon, 24 Oct 2016 16:03:03 +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: <1477323930.385048b24a6639c4a51573409f2b4c42692827b3.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/userdomain.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 385048b24a6639c4a51573409f2b4c42692827b3 X-VCS-Branch: next Date: Mon, 24 Oct 2016 16:03:03 +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: 1b3073cb-2714-4510-bbbb-3dc2464c118b X-Archives-Hash: 29a163d6175ef81ff64401cd8835b078 Message-ID: <20161024160303.v69nGyG9JbNW8latK-ciaYFBNVj5II4vU3F4aIz4Q6E@z> commit: 385048b24a6639c4a51573409f2b4c42692827b3 Author: Sven Vermeulen gentoo org> AuthorDate: Sat Oct 10 12:08:03 2015 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Oct 24 15:45:30 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=385048b2 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 bf78a2b..1572b51 100644 --- a/policy/modules/system/userdomain.if +++ b/policy/modules/system/userdomain.if @@ -1300,6 +1300,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 }; ') ')