Gentoo Archives: gentoo-commits

From: Sven Vermeulen <swift@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/
Date: Tue, 29 Jul 2014 14:07:36
Message-Id: 1406642601.4563b7dd71222c81a270198e2915712fef53e048.swift@gentoo
1 commit: 4563b7dd71222c81a270198e2915712fef53e048
2 Author: Nicolas Iooss <nicolas.iooss <AT> m4x <DOT> org>
3 AuthorDate: Sat Jul 5 16:35:26 2014 +0000
4 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 29 14:03:21 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=4563b7dd
7
8 Label /lib symlink as lib_t for every distro
9
10 As in Debian, Gentoo and Arch Linux /lib may be a symlink, move its file
11 context definition outside of ifdef blocks.
12
13 ---
14 policy/modules/system/libraries.fc | 11 ++---------
15 1 file changed, 2 insertions(+), 9 deletions(-)
16
17 diff --git a/policy/modules/system/libraries.fc b/policy/modules/system/libraries.fc
18 index 18398f5..85e918f 100644
19 --- a/policy/modules/system/libraries.fc
20 +++ b/policy/modules/system/libraries.fc
21 @@ -33,22 +33,15 @@ ifdef(`distro_redhat',`
22 /etc/ppp/plugins/rp-pppoe\.so -- gen_context(system_u:object_r:lib_t,s0)
23
24 #
25 -# /lib
26 +# /lib(64)?
27 #
28 /lib -d gen_context(system_u:object_r:lib_t,s0)
29 +/lib -l gen_context(system_u:object_r:lib_t,s0)
30 /lib/.* gen_context(system_u:object_r:lib_t,s0)
31 /lib/ld-[^/]*\.so(\.[^/]*)* -- gen_context(system_u:object_r:ld_so_t,s0)
32
33 /lib/security/pam_poldi\.so -- gen_context(system_u:object_r:textrel_shlib_t,s0)
34
35 -ifdef(`distro_debian',`
36 -/lib -l gen_context(system_u:object_r:lib_t,s0)
37 -')
38 -
39 -ifdef(`distro_gentoo',`
40 -/lib -l gen_context(system_u:object_r:lib_t,s0)
41 -')
42 -
43 #
44 # /opt
45 #