Gentoo Archives: gentoo-hardened

From: "Jan Dušek" <j.d@×××××××××.cz>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] Can't change role to portage_r
Date: Fri, 27 Feb 2004 12:13:42
Message-Id: 403F3469.10003@most.ujep.cz
1 Hi, when I'm in enforcing mode as a root and I try to change my role to
2 portage_r, I get this:
3
4 root # newrole -r portage_r
5 Authenticating root.
6 Password:
7 newrole: incorrect password for root
8
9 there is no avc message in dmesg regarding this, changing to other roles
10 works smoothly. Also if I turn back to permissive mode, change the role
11 to portage_r and then turn on the enforcing mode again, it works.
12
13 I guess I just totally misunderstood the whole idea about portage_r or
14 is something else wrong? It seems that by default I can't change role
15 once in portage_r role ( bash: /usr/bin/newrole: Permission denied ).
16
17 Also I'd like to ask how do I add the root:portage_t:portage_r context
18 to the contexts available straight during login?
19
20 --jd
21
22 PS: I'm sorry for raising these beginners questions, but I've looked up
23 some docs regarding selinux and didn't find an answer - is there some
24 "how to start with selinux" apart the docs at gentoo-hardened pages and
25 the outdated faq at nsa's web?
26
27 --
28 gentoo-hardened@g.o mailing list

Replies

Subject Author
Re: [gentoo-hardened] Can't change role to portage_r Chris PeBenito <pebenito@g.o>