Gentoo Archives: gentoo-hardened

From: John Huttley <John@×××××××××××××××.nz>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] selinux not enabled, no /etc/selinux/config
Date: Sun, 01 Apr 2007 21:54:25
Message-Id: 4610299C.9040902@mib-infotech.co.nz
1 Hi,
2 I'm a first timer and I've followed the documentation for conversion,
3 however I have series of issues.
4
5 1) After boot, sestatus says "disabled". I have to run "make reload".
6 Then its enabled.
7 sestatus then complains that "Mode from config file: error (no
8 such file or directory)"
9
10 2) "man selinux" says that /etc/selinux/config should exist. However
11 it doesn't and the gentoo documentation page (selinux handbook,
12 installation) doesn't mention it, though there is a brief mention in the
13 HOWTO
14
15 3) The handbook says that after recompiling sysvinit, ldd should show
16 use of l/lib/libselinux.so.1. However, I've reemerged it and it still
17 doesn't. pam doesn't have the pam_selinux module either.
18
19 It is as if selinux was not in the use flags or something. My make
20 profile is definitely set to selinux/2005.1/x86
21
22 Any advice greatfully received.
23
24 --John
25
26 emerge --info
27
28 Portage 2.1.2.2 (selinux/2005.1/x86, gcc-4.1.1, glibc-2.5-r0,
29 2.6.18-hardened-r6 i686)
30 =================================================================
31 System uname: 2.6.18-hardened-r6 i686 Intel(R) Pentium(R) D CPU 2.66GHz
32 Gentoo Base System release 1.12.9
33 Timestamp of tree: Sun, 01 Apr 2007 15:00:07 +0000
34 ccache version 2.4 [enabled]
35 dev-lang/python: 2.4.3-r4
36 dev-python/pycrypto: 2.0.1-r5
37 dev-util/ccache: 2.4-r6
38 sys-apps/sandbox: 1.2.17
39 sys-devel/autoconf: 2.13, 2.61
40 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
41 sys-devel/binutils: 2.16.1-r3
42 sys-devel/gcc-config: 1.3.14
43 sys-devel/libtool: 1.5.22
44 virtual/os-headers: 2.6.17-r2
45 ACCEPT_KEYWORDS="x86"
46 AUTOCLEAN="yes"
47 CBUILD="i686-pc-linux-gnu"
48 CFLAGS="-march=pentium2 -O2 -pipe -mno-tls-direct-seg-refs -g"
49 CHOST="i686-pc-linux-gnu"
50 CONFIG_PROTECT="/etc /etc/postfix /etc/samba /etc/sasl2 /etc/squid
51 /usr/share/X11/xkb"
52 CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild
53 /etc/terminfo"
54 CXXFLAGS="-march=pentium2 -O2 -pipe -mno-tls-direct-seg-refs -g"
55 DISTDIR="/usr/portage/distfiles"
56 FEATURES="autoconfig ccache distlocks loadpolicy metadata-transfer
57 parallel-fetch sandbox selinux sesandbox sfperms strict"
58 GENTOO_MIRRORS="http://distfiles.gentoo.org
59 http://distro.ibiblio.org/pub/linux/distributions/gentoo"
60 MAKEOPTS="-j3"
61 PKGDIR="/usr/portage/packages"
62 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
63 --compress --force --whole-file --delete --delete-after --stats
64 --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages
65 --filter=H_**/files/digest-*"
66 PORTAGE_TMPDIR="/var/tmp"
67 PORTDIR="/usr/portage"
68 PORTDIR_OVERLAY="/usr/local/portage"
69 SYNC="rsync://192.168.95.254/gentoo-portage"
70 USE="X acpi apache crypt dbus dri gif gmp gpm gtk hal jpeg nptl pam pcre
71 pdf png readline sasl sse ssl tiff usb x86 xml xml2 xorg zlib"
72 ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug
73 file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null
74 plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard
75 mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780
76 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="ati vesa nv"
77 Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
78 LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
79 PORTAGE_RSYNC_EXTRA_OPTS
80
81
82
83
84 --
85 gentoo-hardened@g.o mailing list

Replies

Subject Author
Re: [gentoo-hardened] selinux not enabled, no /etc/selinux/config Chris PeBenito <pebenito@g.o>