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: Sun, 03 Jul 2016 11:34:34
Message-Id: 1467545637.96442be2ecad875034508d025067058ac7df61eb.swift@gentoo
1 commit: 96442be2ecad875034508d025067058ac7df61eb
2 Author: Sven Vermeulen <swift <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 2 15:45:35 2015 +0000
4 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 3 11:33:57 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=96442be2
7
8 REWRITEME Add portage admin interface
9
10 policy/modules/contrib/portage.if | 30 ++++++++++++++++++++++++++++++
11 1 file changed, 30 insertions(+)
12
13 diff --git a/policy/modules/contrib/portage.if b/policy/modules/contrib/portage.if
14 index 14c4fb6..38a31cd 100644
15 --- a/policy/modules/contrib/portage.if
16 +++ b/policy/modules/contrib/portage.if
17 @@ -556,3 +556,33 @@ interface(`portage_dontaudit_write_cache',`
18 dontaudit $1 portage_cache_t:dir { setattr write };
19 ')
20
21 +
22 +########################################
23 +## <summary>
24 +## Portage (and thus the system software) administration role
25 +## </summary>
26 +## <param name="role">
27 +## <summary>
28 +## Role allowed access
29 +## </summary>
30 +## </param>
31 +## <param name="domain">
32 +## <summary>
33 +## Domain allowed access
34 +## </summary>
35 +## </param>
36 +#
37 +interface(`portage_admin',`
38 + gen_require(`
39 + type portage_cache_t, portage_conf_t, portage_db_t, portage_ebuild_t, portage_srcrepo_t, portage_log_t;
40 + ')
41 +
42 + admin_pattern($1, portage_cache_t)
43 + admin_pattern($1, portage_conf_t)
44 + admin_pattern($1, portage_db_t)
45 + admin_pattern($1, portage_ebuild_t)
46 + admin_pattern($1, portage_srcrepo_t)
47 + admin_pattern($1, portage_log_t)
48 +')
49 +
50 +