Gentoo Archives: gentoo-commits

From: Sven Vermeulen <swift@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:swift commit in: policy/modules/contrib/
Date: Wed, 02 Dec 2015 15:45:28
Message-Id: 1445521259.56782f09e37e1fbd0868f38084563d9f1aa0f8c7.swift@gentoo
1 commit: 56782f09e37e1fbd0868f38084563d9f1aa0f8c7
2 Author: Luis Ressel <aranea <AT> aixah <DOT> de>
3 AuthorDate: Mon Oct 19 12:04:06 2015 +0000
4 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 22 13:40:59 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=56782f09
7
8 contrib/portage: Fix portage_ro_role interface
9
10 According to its documentation, portage_ro_role expects a role for $1
11 and a type for $2, just like other _role interfaces. However, the policy
12 directives inside the interface don't match its documentation and expect
13 $1 to be a type.
14
15 This interface isn't used anywhere in the policy, so no other fixes are
16 neccessary.
17
18 policy/modules/contrib/portage.if | 14 +++++++-------
19 1 file changed, 7 insertions(+), 7 deletions(-)
20
21 diff --git a/policy/modules/contrib/portage.if b/policy/modules/contrib/portage.if
22 index e9de28e..14c4fb6 100644
23 --- a/policy/modules/contrib/portage.if
24 +++ b/policy/modules/contrib/portage.if
25 @@ -406,13 +406,13 @@ interface(`portage_eselect_module',`
26 ## </param>
27 #
28 interface(`portage_ro_role',`
29 - portage_read_cache($1)
30 - portage_read_config($1)
31 - portage_read_db($1)
32 - portage_read_ebuild($1)
33 - portage_read_log($1)
34 - portage_read_srcrepo($1)
35 - portage_dontaudit_write_cache($1)
36 + portage_read_cache($2)
37 + portage_read_config($2)
38 + portage_read_db($2)
39 + portage_read_ebuild($2)
40 + portage_read_log($2)
41 + portage_read_srcrepo($2)
42 + portage_dontaudit_write_cache($2)
43 ')
44
45 ########################################