From: cpebenito@tresys.com (Christopher J. PeBenito) Date: Sat, 8 Feb 2014 10:17:41 -0500 Subject: [refpolicy] [PATCH 1/3] Add two postgresql file contexts from gentoo policy In-Reply-To: <52F64821.1010601@tresys.com> References: <1390670684-21197-1-git-send-email-aranea@aixah.de> <1390670684-21197-2-git-send-email-aranea@aixah.de> <52F64821.1010601@tresys.com> Message-ID: <52F64A95.8050808@tresys.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On 2/8/2014 10:07 AM, Christopher J. PeBenito wrote: > On 1/25/2014 12:24 PM, Luis Ressel wrote: >> +/etc/init\.d/postgresql(-.*)? -- gen_context(system_u:object_r:postgresql_initrc_exec_t,s0) >> /etc/rc\.d/init\.d/(se)?postgresql -- gen_context(system_u:object_r:postgresql_initrc_exec_t,s0) > > We should remove the rc\.d from the existing line instead. The file context substitutions will take care of instances where someone has init scripts in /etc/rc.d/init.d. I read the path substitution backwards. The existing line should be appended to handle the extra file naming. The rc\.d should not be removed. -- Chris PeBenito Tresys Technology, LLC www.tresys.com | oss.tresys.com