Gentoo Archives: gentoo-commits

From: Sven Vermeulen <swift@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/
Date: Wed, 04 Mar 2015 17:16:35
Message-Id: 1425489252.17d82600898b99b225b7ac938eb59215ce351013.swift@gentoo
1 commit: 17d82600898b99b225b7ac938eb59215ce351013
2 Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
3 AuthorDate: Wed Mar 4 17:14:12 2015 +0000
4 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 4 17:14:12 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=17d82600
7
8 Mark storage as base module
9
10 All modules within the base should not depend on anything that is
11 modular. However recently we had to allow kernel_t certain privileges
12 which are covered not only by an interface of the storage module (which
13 is not an issue) but also by an attribute that is managed by that
14 module.
15
16 As a result, base fails to build:
17
18 $ make base
19 Compiling mcs base module
20 /usr/bin/checkmodule: loading policy configuration from base.conf
21 policy/modules/kernel/kernel.te:433:ERROR 'attribute fixed_disk_raw_read
22 is not declared' at token ';' on line 23210:
23 typeattribute kernel_t fixed_disk_raw_read;
24 \#line 433
25 /usr/bin/checkmodule: error(s) encountered while parsing configuration
26 Rules.modular:98: recipe for target 'tmp/base.mod' failed
27 make: *** [tmp/base.mod] Error 1
28
29 Moving storage as a base module.
30
31 X-Gentoo-Bug: 535992
32 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=535992
33
34 policy/modules.conf | 2 +-
35 1 file changed, 1 insertion(+), 1 deletion(-)
36
37 diff --git a/policy/modules.conf b/policy/modules.conf
38 index b9b41d9..5d9eee7 100644
39 --- a/policy/modules.conf
40 +++ b/policy/modules.conf
41 @@ -2306,7 +2306,7 @@ zosremote = module
42 #
43 # Policy controlling access to storage devices
44 #
45 -storage = module
46 +storage = base
47
48 # Layer: roles
49 # Module: auditadm