Gentoo Archives: gentoo-hardened

From: David Longo <longodj@×××××.com>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] SELinux context problems
Date: Sat, 14 Aug 2004 04:10:17
Message-Id: 1e89bfea040813211029092909@mail.gmail.com
1 Hey guys, having some trouble with contexts I guess.
2 Every time I try to run_init or newrole I get this as root.
3 cannot find your entry in the passwd file.
4
5 When I log in as any other user it says
6 login: unable to obtain context for sandman.
7
8 I tried the following.
9 cd /etc/security/selinux/src/policy
10 make reload
11 make relabel
12 rlpkg pam-login openssh
13 /etc/init.d/sshd restart
14
15 And still I got the same problem...any ideas?
16
17 <----Begin sestatus -v ---->
18 SELinux status: enabled
19 SELinuxfs mount: /selinux
20 Current mode: permissive
21 Policy version: 17
22
23 Policy booleans:
24 user_ping inactive
25
26 Process contexts:
27 Current context: system_u:system_r:kernel_t
28 Init context: system_u:system_r:kernel_t
29 /sbin/agetty system_u:system_r:kernel_t
30 /usr/sbin/sshd system_u:system_r:kernel_t
31
32 File contexts:
33 Controlling term: system_u:object_r:tty_device_t
34 /etc/passwd system_u:object_r:etc_t
35 /etc/shadow system_u:object_r:shadow_t
36 /bin/bash system_u:object_r:shell_exec_t
37 /bin/login system_u:object_r:login_exec_t
38 /bin/sh system_u:object_r:bin_t ->
39 system_u:object_r:shell_exec_t
40 /sbin/agetty system_u:object_r:getty_exec_t
41 /sbin/init system_u:object_r:init_exec_t
42 /usr/sbin/sshd system_u:object_r:sshd_exec_t
43 /lib/libc.so.6 system_u:object_r:lib_t -> system_u:object_r:shlib_t
44 <-----End sestatus -v ------>
45
46 --
47 gentoo-hardened@g.o mailing list