From: aranea@aixah.de (Luis Ressel) Date: Mon, 5 Jun 2017 22:47:34 +0200 Subject: [refpolicy] [PATCH] system/miscfiles: Also accept the path /usr/share/postgresql-$version Message-ID: <20170605204734.24670-1-aranea@aixah.de> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com Currently, miscfiles.fc expects postgresql's files to sit in /usr/share/postgresql/, but gentoo uses /usr/share/postgresql-$version/. services/postgresql.fc already recognizes similarily versioned dirs in /usr/lib/. --- policy/modules/system/miscfiles.fc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy/modules/system/miscfiles.fc b/policy/modules/system/miscfiles.fc index fb7e7b20..b17f8a6f 100644 --- a/policy/modules/system/miscfiles.fc +++ b/policy/modules/system/miscfiles.fc @@ -56,7 +56,7 @@ ifdef(`distro_redhat',` /usr/share/ghostscript/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0) /usr/share/locale(/.*)? gen_context(system_u:object_r:locale_t,s0) /usr/share/man(/.*)? gen_context(system_u:object_r:man_t,s0) -/usr/share/postgresql/[^/]*/man(/.*)? gen_context(system_u:object_r:man_t,s0) +/usr/share/postgresql/?[^/]*/man(/.*)? gen_context(system_u:object_r:man_t,s0) /usr/share/X11/locale(/.*)? gen_context(system_u:object_r:locale_t,s0) /usr/share/zoneinfo(/.*)? gen_context(system_u:object_r:locale_t,s0) -- 2.13.0