From: aranea@aixah.de (Luis Ressel) Date: Sat, 8 Feb 2014 18:31:52 +0100 Subject: [refpolicy] [PATCH v2] Add two postgresql file contexts from gentoo policy In-Reply-To: <52F64A95.8050808@tresys.com> References: <52F64A95.8050808@tresys.com> Message-ID: <1391880712-21681-1-git-send-email-aranea@aixah.de> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com Gentoo appends version numbers to the names of the init script and the config directory. --- policy/modules/services/postgresql.fc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/policy/modules/services/postgresql.fc b/policy/modules/services/postgresql.fc index a26f84f..3794099 100644 --- a/policy/modules/services/postgresql.fc +++ b/policy/modules/services/postgresql.fc @@ -1,8 +1,10 @@ # # /etc # -/etc/postgresql(/.*)? gen_context(system_u:object_r:postgresql_etc_t,s0) -/etc/rc\.d/init\.d/(se)?postgresql -- gen_context(system_u:object_r:postgresql_initrc_exec_t,s0) +/etc/postgresql(-.*)?(/.*)? gen_context(system_u:object_r:postgresql_etc_t,s0) + +/etc/rc\.d/init\.d/(se)?postgresql(-.*)? -- gen_context(system_u:object_r:postgresql_initrc_exec_t,s0) + /etc/sysconfig/pgsql(/.*)? gen_context(system_u:object_r:postgresql_etc_t,s0) # -- 1.8.5.4