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: Sun, 21 Nov 2021 19:33:52
Message-Id: 1637522473.0d8e0e0ca09e015b84f3bcfd371d0f3ba3818eec.perfinion@gentoo
1 commit: 0d8e0e0ca09e015b84f3bcfd371d0f3ba3818eec
2 Author: Jonathan Davies <jpds <AT> protonmail <DOT> com>
3 AuthorDate: Sun Nov 21 09:39:33 2021 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 21 19:21:13 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=0d8e0e0c
7
8 corecommands.if: Added corecmd_manage_bin_symlinks().
9
10 Signed-off-by: Jonathan Davies <jpds <AT> protonmail.com>
11 Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
12
13 policy/modules/kernel/corecommands.if | 19 +++++++++++++++++++
14 1 file changed, 19 insertions(+)
15
16 diff --git a/policy/modules/kernel/corecommands.if b/policy/modules/kernel/corecommands.if
17 index b20809ef..e5633704 100644
18 --- a/policy/modules/kernel/corecommands.if
19 +++ b/policy/modules/kernel/corecommands.if
20 @@ -333,6 +333,25 @@ interface(`corecmd_manage_bin_files',`
21 manage_files_pattern($1, bin_t, bin_t)
22 ')
23
24 +########################################
25 +## <summary>
26 +## Manage symlinks for bin files.
27 +## </summary>
28 +## <param name="domain">
29 +## <summary>
30 +## Domain allowed access.
31 +## </summary>
32 +## </param>
33 +#
34 +interface(`corecmd_manage_bin_symlinks',`
35 + gen_require(`
36 + type bin_t;
37 + ')
38 +
39 + corecmd_search_bin($1)
40 + manage_lnk_files_pattern($1, bin_t, bin_t)
41 +')
42 +
43 ########################################
44 ## <summary>
45 ## Relabel to and from the bin type.