Gentoo Archives: gentoo-hardened

From: Victor Banatean <Pie_Oh_Pah@×××.net>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] Can't start eterm and xterm as normal user using X under SELinux and hardened gcc
Date: Fri, 24 Sep 2004 14:41:49
Message-Id: 4154345F.9070809@gmx.net
1 Hi everyone,
2
3 I have a problem using eterm and xterm when starting X as a normal
4 user, as soon as I switch to root no problem at all.
5
6 This is the error message for eterm and xterm:
7 Eterm: Error: Can't open pseudo-tty -- No such file or directory
8 Eterm: Error: Unable to run sub-command
9
10 xterm: Error 32, errno 2: No such file or directory
11 Reason: get_pty: not enough ptys
12
13 I looked things up at the Gentoo-forums.
14
15 My system:
16
17 SELinux with hardened gcc-3.3.4-r1
18 kernel-2.6.7-hardened-r8
19 pentium4
20 xorg--x11-6.7.0-r2
21 eterm-0.9.2-r6
22 xterm-191
23
24 That is what I tried/looked up so far:
25
26 1. Change /etc/fstab
27 => none /dev/pts devpts defaults 0 0
28
29 2. change to normal user and type export DISPLAY=:0
30 and than type startx
31
32 3. compile /dev fs into kernel, following the options I used:
33 => /dev file system support (obsulete)
34 => Automatically mount at boot
35 => debug devfs
36
37 4. Change /etc/security/selinux/src/policy/users
38 => user victor roles {sysadm_r staff_r}
39
40 5. This is my /etc/devfsd.conf
41 .......................................................................................................
42
43 .......................................................................................................
44
45 # Uncomment the following if you want to set the group to "tty" for the
46 # pseudo-tty devices. This is necessary so that mesg(1) can later be
47 used to
48 # enable/disable talk requests and wall(1) messages.
49 REGISTER ^pty/s.* PERMISSIONS -1.tty 0600
50 REGISTER ^pts/.* PERMISSIONS -1.tty 0600
51
52 6. Also compiled into the kernel:
53 => [*] Legacy (BSD) PTY support
54 => (111) Maximum number of legacy PTY in use
55
56 => [*] /proc file system support
57 => [ ] /dev file system support (OBSOLETE)
58 => [*] /dev/pts Extended Attributes
59 => [*] /dev/pts Security Labels
60 => [*] Virtual memory file system support (former shm fs)
61 => [ ] HugeTLB file system support
62
63 Number 1,2,4 nothing changed, if I tried number 3 the system
64 crashed next after reboot.
65
66 At the moment I got badly stuck.
67 It would be great if someone could help me or give me a hint
68 where to look next.
69
70 Thanks in advance.
71 Victor
72
73 --
74 gentoo-hardened@g.o mailing list

Replies