2018-09-28 14:16:35

by Luis Ressel

[permalink] [raw]
Subject: [refpolicy] [PATCH] corecommands: Fix /usr/share/apr* fc

Both apr and apr-1 are possible
---
policy/modules/kernel/corecommands.fc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc
index 9a3716063..5409430c3 100644
--- a/policy/modules/kernel/corecommands.fc
+++ b/policy/modules/kernel/corecommands.fc
@@ -284,8 +284,8 @@ ifdef(`distro_gentoo',`
/usr/share/(.*/)?bin(/.*)? gen_context(system_u:object_r:bin_t,s0)
/usr/share/ajaxterm/ajaxterm.py.* -- gen_context(system_u:object_r:bin_t,s0)
/usr/share/ajaxterm/qweb.py.* -- gen_context(system_u:object_r:bin_t,s0)
-/usr/share/apr-0/build/[^/]+\.sh -- gen_context(system_u:object_r:bin_t,s0)
-/usr/share/apr-0/build/libtool -- gen_context(system_u:object_r:bin_t,s0)
+/usr/share/apr(-\d)?/build/[^/]+\.sh -- gen_context(system_u:object_r:bin_t,s0)
+/usr/share/apr(-\d)?/build/libtool -- gen_context(system_u:object_r:bin_t,s0)
/usr/share/build-1/[^/]+\.sh -- gen_context(system_u:object_r:bin_t,s0)
/usr/share/build-1/libtool -- gen_context(system_u:object_r:bin_t,s0)
/usr/share/dayplanner/dayplanner -- gen_context(system_u:object_r:bin_t,s0)
--
2.19.0


2018-09-28 19:21:15

by Chris PeBenito

[permalink] [raw]
Subject: [refpolicy] [PATCH] corecommands: Fix /usr/share/apr* fc

On 09/28/2018 10:16 AM, Luis Ressel via refpolicy wrote:
> Both apr and apr-1 are possible
> ---
> policy/modules/kernel/corecommands.fc | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc
> index 9a3716063..5409430c3 100644
> --- a/policy/modules/kernel/corecommands.fc
> +++ b/policy/modules/kernel/corecommands.fc
> @@ -284,8 +284,8 @@ ifdef(`distro_gentoo',`
> /usr/share/(.*/)?bin(/.*)? gen_context(system_u:object_r:bin_t,s0)
> /usr/share/ajaxterm/ajaxterm.py.* -- gen_context(system_u:object_r:bin_t,s0)
> /usr/share/ajaxterm/qweb.py.* -- gen_context(system_u:object_r:bin_t,s0)
> -/usr/share/apr-0/build/[^/]+\.sh -- gen_context(system_u:object_r:bin_t,s0)
> -/usr/share/apr-0/build/libtool -- gen_context(system_u:object_r:bin_t,s0)
> +/usr/share/apr(-\d)?/build/[^/]+\.sh -- gen_context(system_u:object_r:bin_t,s0)
> +/usr/share/apr(-\d)?/build/libtool -- gen_context(system_u:object_r:bin_t,s0)
> /usr/share/build-1/[^/]+\.sh -- gen_context(system_u:object_r:bin_t,s0)
> /usr/share/build-1/libtool -- gen_context(system_u:object_r:bin_t,s0)
> /usr/share/dayplanner/dayplanner -- gen_context(system_u:object_r:bin_t,s0)

Merged.

--
Chris PeBenito