From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QGG54-000728-8o for garchives@archives.gentoo.org; Sat, 30 Apr 2011 19:43:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 01AD51C00D; Sat, 30 Apr 2011 19:43:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id BEF881C012 for ; Sat, 30 Apr 2011 19:43:46 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0553E1B402E for ; Sat, 30 Apr 2011 19:43:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 0CB7980505 for ; Sat, 30 Apr 2011 19:43:45 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: Subject: [gentoo-commits] proj/hardened-docs:master commit in: xml/ X-VCS-Repository: proj/hardened-docs X-VCS-Files: xml/selinux-faq.xml X-VCS-Directories: xml/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: d4dd801cfdfc6fabff6498fe7eeaaab11a2fad29 Date: Sat, 30 Apr 2011 19:43:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 2cc054efacba20c1e85b23b409bea486 commit: d4dd801cfdfc6fabff6498fe7eeaaab11a2fad29 Author: Sven Vermeulen siphos be> AuthorDate: Sat Apr 30 19:42:41 2011 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Sat Apr 30 19:42:41 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/hardened-docs= .git;a=3Dcommit;h=3Dd4dd801c Add FAQ on emerge not working (no sysadm_r role) --- xml/selinux-faq.xml | 32 +++++++++++++++++++++++++++++++- 1 files changed, 31 insertions(+), 1 deletions(-) diff --git a/xml/selinux-faq.xml b/xml/selinux-faq.xml index b300301..d042d2c 100644 --- a/xml/selinux-faq.xml +++ b/xml/selinux-faq.xml @@ -17,7 +17,7 @@ The FAQ is a collection of solutions found on IRC, mail= inglist, forums or elsewhere =20 -4 +5 2011-04-30 =20 @@ -385,5 +385,35 @@ hidden). =20 +
+Emerge does not work, giving 'Permission denied: /etc/make.conf'<= /title> +<body> + +<p> +This is to be expected if you are not using the <c>sysadm_r</c> role. An= y +Portage related activity requires that you are in the <c>sysadm_r</c> ro= le. To +transition to the role, first validate if you are currently known as +<c>staff_u</c> (or, if you added your own SELinux identities, a user tha= t has +the permission to transition to the <c>sysadm_r</c> role). Then run <c>n= ewrole +-r sysadm_r</c> to transition. +</p> + +<pre caption=3D"Transitioning to sysadm_r"> +~$ <i>emerge --info</i> +Permission denied: '/etc/make.conf' +~$ <i>id -Z</i> +staff_u:staff_r:staff_t +~$ <i>newrole -r sysadm_r</i> +Password: <comment># Enter your users' password</comment> +</pre> + +<p> +This is also necessary if you logged on to your system as root but throu= gh SSH. +The default behavior is that SSH sets the lowest role for the particular= user +when logged on. And you shouldn't allow remote root logins anyhow. +</p> + +</body> +</section> </chapter> </guide>