Gentoo Archives: gentoo-hardened

From: KONNO Shunichi <konno@×××××××.jp>
To: Hardened Gentoo <gentoo-hardened@g.o>
Subject: [gentoo-hardened] "ACCESS DENIED open_wr: /selinux/context" occurs when I do "emerge libselinux"
Date: Tue, 02 Dec 2003 08:54:35
Message-Id: 20031202165138.EE70.KONNO@la-luna.jp
1 Hi,
2
3 I installed Gentoo Linux SELinux yesterday with the "Quick Start Guide".
4
5 After I've done "Initial Preparations", I did "emerge libselinux",
6 but I got errors like this:
7
8 ----
9
10 (snip)
11 prepallstrip:
12 strip:
13 strip:
14 usr/bin/compute_av
15 usr/bin/compute_create
16 usr/bin/compute_relabel
17 usr/bin/compute_user
18 usr/bin/deftype
19 usr/bin/execcon
20 usr/bin/getcon
21 usr/bin/getconlist
22 usr/bin/getfilecon
23 usr/bin/getpidcon
24 usr/bin/mkdircon
25 usr/bin/setfilecon
26 lib/libselinux.so.1
27 making executable: /lib/libselinux.so.1
28 setfiles: read 426 specifications
29 ACCESS DENIED open_wr: /selinux/context
30 setfiles: invalid context system_u:object_r:file_t on line number 39
31 ACCESS DENIED open_wr: /selinux/context
32 setfiles: invalid context system_u:object_r:root_t on line number 44
33 ACCESS DENIED open_wr: /selinux/context
34 setfiles: invalid context system_u:object_r:var_t on line number 49
35 ACCESS DENIED open_wr: /selinux/context
36 setfiles: invalid context system_u:object_r:catman_t on line number 50
37 ACCESS DENIED open_wr: /selinux/context
38 setfiles: invalid context system_u:object_r:catman_t on line number 51
39 ACCESS DENIED open_wr: /selinux/context
40 setfiles: invalid context system_u:object_r:var_yp_t on line number 52
41 ACCESS DENIED open_wr: /selinux/context
42 setfiles: invalid context system_u:object_r:var_lib_t on line number 53
43 ACCESS DENIED open_wr: /selinux/context
44 setfiles: invalid context system_u:object_r:var_lib_misc_t on line number 54
45 ACCESS DENIED open_wr: /selinux/context
46 setfiles: invalid context system_u:object_r:var_lib_nfs_t on line number 55
47 ACCESS DENIED open_wr: /selinux/context
48 setfiles: invalid context system_u:object_r:tetex_data_t on line number 56
49 Exiting after 10 error.
50 >>> Completed installing into /var/tmp/portage/libselinux-1.2-r2/image/
51
52 ----
53
54 While I can do "make relabel" with no errors after I finished an installation,
55 when I do emerge something, the errors like I showed above still occurs.
56 I didn't get the errors when I installed Gentoo Linux SELinux a few months ago.
57
58 Does anyone know how to solve this problem?
59
60
61 --
62 KONNO Shunichi <konno@×××××××.jp>
63
64
65 --
66 gentoo-hardened@g.o mailing list

Replies