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 A3D511384B4 for ; Wed, 2 Dec 2015 15:45:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6839621C0DF; Wed, 2 Dec 2015 15:45:39 +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 918E321C0DF for ; Wed, 2 Dec 2015 15:45:33 +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 A945034097F for ; Wed, 2 Dec 2015 15:45:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2D123F53 for ; Wed, 2 Dec 2015 15:45:24 +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: <1449071115.d63fd441ccb0fd52cf45a82e0c23a11d052fb1da.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: d63fd441ccb0fd52cf45a82e0c23a11d052fb1da X-VCS-Branch: swift Date: Wed, 2 Dec 2015 15:45:24 +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: 3c9f23ef-bc3c-4b21-b2e8-e252ae8cedb0 X-Archives-Hash: 24fc0a5f41c7b0b12514e60033f64b43 commit: d63fd441ccb0fd52cf45a82e0c23a11d052fb1da Author: Sven Vermeulen gentoo org> AuthorDate: Sat Oct 10 12:08:03 2015 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Wed Dec 2 15:45:15 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=d63fd441 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 }; ') ')