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/flask/
Date: Wed, 02 Dec 2015 15:45:29
Message-Id: 1445830539.968134591ae36b6064488b8ed9d7082aad03101b.swift@gentoo
1 commit: 968134591ae36b6064488b8ed9d7082aad03101b
2 Author: Chris PeBenito <cpebenito <AT> tresys <DOT> com>
3 AuthorDate: Tue Oct 20 15:29:11 2015 +0000
4 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 26 03:35:39 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=96813459
7
8 Add systemd access vectors.
9
10 policy/flask/access_vectors | 21 +++++++++++++++++++++
11 policy/flask/security_classes | 2 ++
12 2 files changed, 23 insertions(+)
13
14 diff --git a/policy/flask/access_vectors b/policy/flask/access_vectors
15 index 056cdd7..3fe2bb9 100644
16 --- a/policy/flask/access_vectors
17 +++ b/policy/flask/access_vectors
18 @@ -393,6 +393,17 @@ class system
19 syslog_mod
20 syslog_console
21 module_request
22 +
23 + # these are overloaded userspace
24 + # permissions from systemd
25 + halt
26 + reboot
27 + status
28 + start
29 + stop
30 + enable
31 + disable
32 + reload
33 }
34
35 #
36 @@ -910,3 +921,13 @@ inherits database
37 implement
38 execute
39 }
40 +
41 +class service
42 +{
43 + start
44 + stop
45 + status
46 + reload
47 + enable
48 + disable
49 +}
50
51 diff --git a/policy/flask/security_classes b/policy/flask/security_classes
52 index 8bc5d4e..8b6f1ed 100644
53 --- a/policy/flask/security_classes
54 +++ b/policy/flask/security_classes
55 @@ -145,4 +145,6 @@ class db_view # userspace
56 class db_sequence # userspace
57 class db_language # userspace
58
59 +class service # userspace
60 +
61 # FLASK