1 |
Andrew John Hughes a écrit : |
2 |
> 2009/9/5 François Valenduc <francois.valenduc@××××××××××.be>: |
3 |
> |
4 |
>> Magnus Granberg a écrit : |
5 |
>> |
6 |
>>> On Saturday 05 September 2009 12.17.00 François Valenduc wrote: |
7 |
>>> |
8 |
>>> |
9 |
>>>> Hello everybody, |
10 |
>>>> |
11 |
>>>> I have recently swicth my SElinux install from ext3 to ext4 and after |
12 |
>>>> having changed the rlpkq script to also relabel ext4 filesystems, I get |
13 |
>>>> the following errors: |
14 |
>>>> /usr/sbin/setfiles set context |
15 |
>>>> /usr/sbin/setfilecon->system_u:object_r:bin_t failed:'Operation not |
16 |
>>>> supported' |
17 |
>>>> However, I have enabled Ext4 Security labels in the kernel configuration. |
18 |
>>>> |
19 |
>>>> Does anybody know a solution to this problem ? |
20 |
>>>> Thanks in advance for your help. |
21 |
>>>> |
22 |
>>>> François Valenduc |
23 |
>>>> |
24 |
>>>> |
25 |
>>> You need to update to policycoreutils-2.0.69 to get ext4 support. |
26 |
>>> See bug #275369 http://bugs.gentoo.org/show_bug.cgi?id=275369 |
27 |
>>> ------ |
28 |
>>> Hardened-Development Overlay |
29 |
>>> Magnus Granberg (Zorry) <zorry@×××.nu> |
30 |
>>> |
31 |
>>> |
32 |
>>> |
33 |
>>> |
34 |
>> I have tried to upgrade policycoreutils to this version but it fails to |
35 |
>> compile with this error: |
36 |
>> |
37 |
>> cc -Wl,-O1 semodule.o -lsepol -lselinux -lsemanage -L/usr/lib -o |
38 |
>> semodulesemodule.o: In function `main': |
39 |
>> semodule.c:(.text+0x803): undefined reference to |
40 |
>> `semanage_module_upgrade_file' |
41 |
>> semodule.c:(.text+0x84a): undefined reference to |
42 |
>> `semanage_module_install_file' |
43 |
>> semodule.c:(.text+0x8ae): undefined reference to |
44 |
>> `semanage_module_install_base_file' |
45 |
>> collect2: ld a retourné 1 code d'état d'exécution |
46 |
>> make[1]: *** [semodule] Erreur 1 |
47 |
>> make[1]: quittant le répertoire « |
48 |
>> /var/tmp/portage/sys-apps/policycoreutils-2.0.69/work/policycoreutils-2.0.69/semodule |
49 |
>> » |
50 |
>> make: *** [all] Erreur 1 |
51 |
>> make: quittant le répertoire « |
52 |
>> /var/tmp/portage/sys-apps/policycoreutils-2.0.69/work/policycoreutils-2.0.69 |
53 |
>> » |
54 |
>> |
55 |
>> |
56 |
>> I have looked in gentoo bugzilla and I didn't find anything which seems |
57 |
>> similar to this error. |
58 |
>> |
59 |
>> François Valenduc |
60 |
>> |
61 |
>> |
62 |
>> |
63 |
> |
64 |
> |
65 |
> Have you checked there aren't corresponding updates to libselinux, |
66 |
> libsepol and libsemanage? This error suggests one or more of those |
67 |
> libraries are out of date. |
68 |
> |
69 |
Indeed, upgrading libsepol, libsemanage and libselinux allowed |
70 |
policycoreutils 2.0.69 to be compiled without error. However, it's still |
71 |
impossible to relabel the filesystem. Now I don't see plenty of lines |
72 |
indicating "Operation not supported" when I use rlpkg. But the files |
73 |
remains unlabeled. Is it really possible to use ext4 and selinux ? |
74 |
|
75 |
Thanks for your help. |