commit: 0d8e0e0ca09e015b84f3bcfd371d0f3ba3818eec
Author: Jonathan Davies <jpds <AT> protonmail <DOT> com>
AuthorDate: Sun Nov 21 09:39:33 2021 +0000
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sun Nov 21 19:21:13 2021 +0000
URL:
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=0d8e0e0c
corecommands.if: Added corecmd_manage_bin_symlinks().
Signed-off-by: Jonathan Davies <jpds <AT> protonmail.com>
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
policy/modules/kernel/corecommands.if | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/policy/modules/kernel/corecommands.if
b/policy/modules/kernel/corecommands.if
index b20809ef..e5633704 100644
--- a/policy/modules/kernel/corecommands.if
+++ b/policy/modules/kernel/corecommands.if
@@ -333,6 +333,25 @@ interface(`corecmd_manage_bin_files',`
manage_files_pattern($1, bin_t, bin_t)
')
+########################################
+## <summary>
+## Manage symlinks for bin files.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(`corecmd_manage_bin_symlinks',`
+ gen_require(`
+ type bin_t;
+ ')
+
+ corecmd_search_bin($1)
+ manage_lnk_files_pattern($1, bin_t, bin_t)
+')
+
########################################
## <summary>
## Relabel to and from the bin type.