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/kernel/
Date: Mon, 07 Feb 2022 02:15:05
Message-Id: 1644199790.5ee13c254c0451f054558a0f22da48377311c551.perfinion@gentoo
1 commit: 5ee13c254c0451f054558a0f22da48377311c551
2 Author: Chris PeBenito <chpebeni <AT> linux <DOT> microsoft <DOT> com>
3 AuthorDate: Tue Feb 1 14:27:06 2022 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 7 02:09:50 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=5ee13c25
7
8 domain: Allow lockdown for all domains.
9
10 The checks for this class were removed in 5.16. This object
11 class will be removed in the future.
12
13 For more info:
14 https://lore.kernel.org/selinux/163243191040.178880.4295195865966623164.stgit@olly
15
16 Signed-off-by: Chris PeBenito <chpebeni <AT> linux.microsoft.com>
17 Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
18
19 policy/modules/kernel/domain.te | 5 +++++
20 1 file changed, 5 insertions(+)
21
22 diff --git a/policy/modules/kernel/domain.te b/policy/modules/kernel/domain.te
23 index 00cea380..2eff1d34 100644
24 --- a/policy/modules/kernel/domain.te
25 +++ b/policy/modules/kernel/domain.te
26 @@ -103,6 +103,11 @@ kernel_dontaudit_link_key(domain)
27 # create child processes in the domain
28 allow domain self:process { fork sigchld };
29
30 +# lockdown checks were removed in 5.16. The class will be removed
31 +# from the policy in the future. For reference:
32 +# https://lore.kernel.org/selinux/163243191040.178880.4295195865966623164.stgit@olly
33 +allow domain self:lockdown { integrity confidentiality };
34 +
35 # glibc get_nprocs requires read access to /sys/devices/system/cpu/online
36 dev_read_cpu_online(domain)