2019-07-02 15:30:55

by Sugar, David

[permalink] [raw]
Subject: [PATCH 3/5] grant rpm permissions to map locale_t

type=AVC msg=audit(1560913896.408:217): avc: denied { map } for pid=1265 comm="rpm" path="/usr/lib/locale/locale-archive" dev="dm-0" ino=24721 scontext=system_u:system_r:rpm_t:s0 tcontext=system_u:object_r:locale_t:s0 tclass=file permissive=1

Signed-off-by: Dave Sugar <[email protected]>
---
policy/modules/admin/rpm.te | 2 ++
1 file changed, 2 insertions(+)

diff --git a/policy/modules/admin/rpm.te b/policy/modules/admin/rpm.te
index a28a24d3..7020276c 100644
--- a/policy/modules/admin/rpm.te
+++ b/policy/modules/admin/rpm.te
@@ -207,6 +207,8 @@ libs_run_ldconfig(rpm_t, rpm_roles)

logging_send_syslog_msg(rpm_t)

+miscfiles_read_localization(rpm_t)
+
seutil_manage_src_policy(rpm_t)
seutil_manage_bin_policy(rpm_t)

--
2.21.0


2019-07-09 00:56:10

by Chris PeBenito

[permalink] [raw]
Subject: Re: [PATCH 3/5] grant rpm permissions to map locale_t

On 7/2/19 11:30 AM, Sugar, David wrote:
> type=AVC msg=audit(1560913896.408:217): avc: denied { map } for pid=1265 comm="rpm" path="/usr/lib/locale/locale-archive" dev="dm-0" ino=24721 scontext=system_u:system_r:rpm_t:s0 tcontext=system_u:object_r:locale_t:s0 tclass=file permissive=1
>
> Signed-off-by: Dave Sugar <[email protected]>
> ---
> policy/modules/admin/rpm.te | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/policy/modules/admin/rpm.te b/policy/modules/admin/rpm.te
> index a28a24d3..7020276c 100644
> --- a/policy/modules/admin/rpm.te
> +++ b/policy/modules/admin/rpm.te
> @@ -207,6 +207,8 @@ libs_run_ldconfig(rpm_t, rpm_roles)
>
> logging_send_syslog_msg(rpm_t)
>
> +miscfiles_read_localization(rpm_t)
> +
> seutil_manage_src_policy(rpm_t)
> seutil_manage_bin_policy(rpm_t)

Merged.

--
Chris PeBenito