Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/services/
Date: Mon, 01 Feb 2021 02:10:25
Message-Id: 1612142502.f5c9fba7feac9bd937bf9de3783b2717fd145f50.perfinion@gentoo
1 commit: f5c9fba7feac9bd937bf9de3783b2717fd145f50
2 Author: Chris PeBenito <pebenito <AT> ieee <DOT> org>
3 AuthorDate: Thu Jan 28 16:39:34 2021 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 01:21:42 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=f5c9fba7
7
8 samba: Add missing userspace class requirements in unit interfaces.
9
10 Signed-off-by: Chris PeBenito <pebenito <AT> ieee.org>
11 Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
12
13 policy/modules/services/samba.if | 4 ++++
14 1 file changed, 4 insertions(+)
15
16 diff --git a/policy/modules/services/samba.if b/policy/modules/services/samba.if
17 index 6af30d0c..92eab06d 100644
18 --- a/policy/modules/services/samba.if
19 +++ b/policy/modules/services/samba.if
20 @@ -341,6 +341,7 @@ interface(`samba_read_share_files',`
21 interface(`samba_start',`
22 gen_require(`
23 type samba_unit_t;
24 + class service start;
25 ')
26
27 allow $1 samba_unit_t:file getattr;
28 @@ -360,6 +361,7 @@ interface(`samba_start',`
29 interface(`samba_stop',`
30 gen_require(`
31 type samba_unit_t;
32 + class service stop;
33 ')
34
35 allow $1 samba_unit_t:file getattr;
36 @@ -379,6 +381,7 @@ interface(`samba_stop',`
37 interface(`samba_status',`
38 gen_require(`
39 type samba_unit_t;
40 + class service status;
41 ')
42
43 allow $1 samba_unit_t:file getattr;
44 @@ -398,6 +401,7 @@ interface(`samba_status',`
45 interface(`samba_reload',`
46 gen_require(`
47 type samba_unit_t;
48 + class service reload;
49 ')
50
51 allow $1 samba_unit_t:file getattr;