1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Hello! |
5 |
|
6 |
Having a real headache with this new API lark. |
7 |
Got into all sorts of mess, so basically started from scratch. |
8 |
|
9 |
Sorted a normal installation and the followed the quickstart guide word for word. |
10 |
Worked like a charm up until just after Code listing 1.12. |
11 |
pam, pwdb, coreutils etc emerge sucessfully. Now, in exactly the same manner as before, I am severely stuck! |
12 |
|
13 |
>>> Install logrotate-3.6.5-r1 into /var/tmp/portage/logrotate-3.6.5-r1/image/ category app-admin |
14 |
man: |
15 |
prepallstrip: |
16 |
strip: |
17 |
strip: |
18 |
usr/sbin/logrotate |
19 |
make: Entering directory `/etc/security/selinux/src/policy' |
20 |
cat file_contexts/types.fc file_contexts/program/bootloader.fc file_contexts/program/checkpolicy.fc file_contexts/program/chkpwd.fc file_contexts/program/chroot.fc file_contexts/program/crack.fc file_contexts/program/crond.fc file_contexts/program/crontab.fc file_contexts/program/devfsd.fc file_contexts/program/dhcpc.fc file_contexts/program/fsadm.fc file_contexts/program/getty.fc file_contexts/program/hwclock.fc file_contexts/program/ifconfig.fc file_contexts/program/inetd.fc file_contexts/program/init.fc file_contexts/program/initrc.fc file_contexts/program/iptables.fc file_contexts/program/ldconfig.fc file_contexts/program/load_policy.fc file_contexts/program/login.fc file_contexts/program/mkinitrd.fc file_contexts/program/modutil.fc file_contexts/program/mount.fc file_contexts/program/mta.fc file_contexts/program/netutils.fc file_contexts/program/newrole.fc file_contexts/program/nscd.fc file_contexts/program/opt.fc file_contexts/program/pamconsole.fc file_contexts/program/passwd.fc file_contexts/program/ping.fc file_contexts/program/portage.fc file_contexts/program/pppd.fc file_contexts/program/rsyncd.fc file_contexts/program/setfiles.fc file_contexts/program/ssh.fc file_contexts/program/su.fc file_contexts/program/syslogd.fc file_contexts/program/tcpd.fc file_contexts/program/useradd.fc file_contexts/users.fc > /var/tmp/portage/logrotate-3.6.5-r1/temp/file_contexts |
21 |
make: Leaving directory `/etc/security/selinux/src/policy' |
22 |
/usr/sbin/setfiles: read 428 specifications |
23 |
/usr/sbin/setfiles: invalid context system_u:object_r:file_t on line number 39 |
24 |
/usr/sbin/setfiles: invalid context system_u:object_r:root_t on line number 44 |
25 |
/usr/sbin/setfiles: invalid context system_u:object_r:var_t on line number 49 |
26 |
/usr/sbin/setfiles: invalid context system_u:object_r:catman_t on line number 50 |
27 |
/usr/sbin/setfiles: invalid context system_u:object_r:catman_t on line number 51 |
28 |
/usr/sbin/setfiles: invalid context system_u:object_r:var_yp_t on line number 52 |
29 |
/usr/sbin/setfiles: invalid context system_u:object_r:var_lib_t on line number 53 |
30 |
/usr/sbin/setfiles: invalid context system_u:object_r:var_lib_misc_t on line number 54 |
31 |
/usr/sbin/setfiles: invalid context system_u:object_r:var_lib_nfs_t on line number 55 |
32 |
/usr/sbin/setfiles: invalid context system_u:object_r:tetex_data_t on line number 56 |
33 |
Exiting after 10 errors. |
34 |
>>> Completed installing into /var/tmp/portage/logrotate-3.6.5-r1/image/ |
35 |
|
36 |
>>> Merging app-admin/logrotate-3.6.5-r1 to / |
37 |
- --- /usr/ |
38 |
- --- /usr/sbin/ |
39 |
getfilecon returned an error: /var/tmp/portage/logrotate-3.6.5-r1/image/usr/sbin/logrotate |
40 |
!!! Failed to move /var/tmp/portage/logrotate-3.6.5-r1/image/usr/sbin/logrotate to /usr/sbin/logrotate |
41 |
!!! expected string or Unicode object, NoneType found |
42 |
|
43 |
I was also getting the same setfiles errors when trying to relabel before this rebuild. |
44 |
|
45 |
Line 39 is |
46 |
/.* system_u:object_r:file_t |
47 |
44 |
48 |
/ system_u:object_r:file_t |
49 |
49 |
50 |
/var(/.*)? system_u:object_r:var_t |
51 |
etc |
52 |
|
53 |
I'm wondering if this is due to a remnant of old labeling, the disk hasn't been formatted. |
54 |
|
55 |
Cheers |
56 |
|
57 |
- -- |
58 |
Mike Williams |
59 |
-----BEGIN PGP SIGNATURE----- |
60 |
Version: GnuPG v1.2.3 (GNU/Linux) |
61 |
|
62 |
iD8DBQE/p5lXInuLMrk7bIwRApgbAJ9fCL6QT6IAHZFgQ/Wfgn0UL8YmFACeND6T |
63 |
cf0NNHXsdBqewgjIicodPSk= |
64 |
=83Dl |
65 |
-----END PGP SIGNATURE----- |
66 |
|
67 |
-- |
68 |
gentoo-hardened@g.o mailing list |