Gentoo Archives: gentoo-hardened

From: Chris PeBenito <pebenito@g.o>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] selinux 2006.1: semanage login has no effect
Date: Fri, 08 Dec 2006 03:38:21
Message-Id: 1165548940.24926.4.camel@gorn.pebenito.net
In Reply to: Re: [gentoo-hardened] selinux 2006.1: semanage login has no effect by Panard
1 On Tue, 2006-12-05 at 19:16 +0100, Panard wrote:
2 > Le mardi 05 décembre 2006 04:58, Chris PeBenito a écrit :
3 > > > > > semanage login -a -s staff_u panard
4 > > > > >
5 > > > > > and tried to login.
6 > > > > > But, my user is still in user_u context :
7 > > > > > panard@aragorn ~ $ id
8 > > > > > uid=1000(panard) gid=100(users)
9 > > > > > groupes=10(wheel),16(cron),35(games),81
10 > > > > > (apache),100(users),441(scanner) context=user_u:user_r:user_t
11 > > > >
12 > > > > Are you logging in locally, or over ssh?
13 > > >
14 > > > I tried both, giving the same result...
15 > > > I noticed that if I logged directly to root over ssh, the context is
16 > > > correct (root:staff_r:staff_t), but it doesn't work for any other users..
17 > >
18 > > What versions of openssh, shadow, and pam do you have?
19 >
20 > aragorn ~ # emerge -pv openssh pam shadow
21 [cut package list]
22
23 So the packages look ok. Its not immediately clear at the moment why
24 you're not getting the right behavior. Can you verify that you also get
25 the root identity (root:...:...) when you log in locally as root? If
26 that works, then we can at least see that its partially working.
27
28 --
29 Chris PeBenito
30 <pebenito@g.o>
31 Developer,
32 Hardened Gentoo Linux
33
34 Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243
35 Key fingerprint = B0E6 877A 883F A57A 8E6A CB00 BC8E E42D E6AF 9243

Attachments

File name MIME type
signature.asc application/pgp-signature