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/system/
Date: Sun, 21 Nov 2021 19:33:53
Message-Id: 1637522473.7323f1d881f61ee2e8a1889e32054b7c3f6328a5.perfinion@gentoo
1 commit: 7323f1d881f61ee2e8a1889e32054b7c3f6328a5
2 Author: Jonathan Davies <jpds <AT> protonmail <DOT> com>
3 AuthorDate: Sun Nov 21 09:34:41 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=7323f1d8
7
8 libraries.if: Added libs_manage_lib_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/system/libraries.if | 18 ++++++++++++++++++
14 1 file changed, 18 insertions(+)
15
16 diff --git a/policy/modules/system/libraries.if b/policy/modules/system/libraries.if
17 index ad4bafa3..cb1ef12c 100644
18 --- a/policy/modules/system/libraries.if
19 +++ b/policy/modules/system/libraries.if
20 @@ -389,6 +389,24 @@ interface(`libs_delete_lib_symlinks',`
21 delete_lnk_files_pattern($1, lib_t, lib_t)
22 ')
23
24 +########################################
25 +## <summary>
26 +## Manage generic symlinks in library directories.
27 +## </summary>
28 +## <param name="domain">
29 +## <summary>
30 +## Domain allowed access.
31 +## </summary>
32 +## </param>
33 +#
34 +interface(`libs_manage_lib_symlinks',`
35 + gen_require(`
36 + type lib_t;
37 + ')
38 +
39 + manage_lnk_files_pattern($1, lib_t, lib_t)
40 +')
41 +
42 ########################################
43 ## <summary>
44 ## Create, read, write, and delete shared libraries.