Gentoo Archives: gentoo-hardened

From: Andrew John Hughes <gnu_andrew@××××××××××.org>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] EXT4 and selinux
Date: Sun, 06 Sep 2009 13:48:16
Message-Id: 17c6771e0909060648oec964a1p458e252549c6c239@mail.gmail.com
In Reply to: Re: [gentoo-hardened] EXT4 and selinux by "François Valenduc"
1 2009/9/5 François Valenduc <francois.valenduc@××××××××××.be>:
2 > Magnus Granberg a écrit :
3 >> On Saturday 05 September 2009 12.17.00 François Valenduc wrote:
4 >>
5 >>> Hello everybody,
6 >>>
7 >>> I have recently swicth my SElinux install from ext3 to ext4 and after
8 >>> having changed the rlpkq script to also relabel ext4 filesystems, I get
9 >>> the following errors:
10 >>>     /usr/sbin/setfiles set context
11 >>> /usr/sbin/setfilecon->system_u:object_r:bin_t failed:'Operation not
12 >>> supported'
13 >>> However,  I have enabled Ext4 Security labels in the kernel configuration.
14 >>>
15 >>> Does anybody know a solution to this problem ?
16 >>> Thanks in advance for your help.
17 >>>
18 >>> François Valenduc
19 >>>
20 >> You need to update to policycoreutils-2.0.69 to get ext4 support.
21 >> See bug #275369 http://bugs.gentoo.org/show_bug.cgi?id=275369
22 >> ------
23 >> Hardened-Development Overlay
24 >> Magnus Granberg (Zorry) <zorry@×××.nu>
25 >>
26 >>
27 >>
28 > I have tried to upgrade policycoreutils to this version but it fails to
29 > compile with this error:
30 >
31 > cc -Wl,-O1  semodule.o  -lsepol -lselinux -lsemanage -L/usr/lib -o
32 > semodulesemodule.o: In function `main':
33 > semodule.c:(.text+0x803): undefined reference to
34 > `semanage_module_upgrade_file'
35 > semodule.c:(.text+0x84a): undefined reference to
36 > `semanage_module_install_file'
37 > semodule.c:(.text+0x8ae): undefined reference to
38 > `semanage_module_install_base_file'
39 > collect2: ld a retourné 1 code d'état d'exécution
40 > make[1]: *** [semodule] Erreur 1
41 > make[1]: quittant le répertoire «
42 > /var/tmp/portage/sys-apps/policycoreutils-2.0.69/work/policycoreutils-2.0.69/semodule
43 > »
44 > make: *** [all] Erreur 1
45 > make: quittant le répertoire «
46 > /var/tmp/portage/sys-apps/policycoreutils-2.0.69/work/policycoreutils-2.0.69
47 > »
48 >
49 >
50 > I have looked in gentoo bugzilla and I didn't find anything which seems
51 > similar to this error.
52 >
53 > François Valenduc
54 >
55 >
56
57
58 Have you checked there aren't corresponding updates to libselinux,
59 libsepol and libsemanage? This error suggests one or more of those
60 libraries are out of date.
61 --
62 Andrew :-)
63
64 Free Java Software Engineer
65 Red Hat, Inc. (http://www.redhat.com)
66
67 Support Free Java!
68 Contribute to GNU Classpath and the OpenJDK
69 http://www.gnu.org/software/classpath
70 http://openjdk.java.net
71
72 PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
73 Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8

Replies

Subject Author
Re: [gentoo-hardened] EXT4 and selinux "François Valenduc" <francois.valenduc@××××××××××.be>