Re: [PATCH] misc services patches with changes Dominick and Chris wanted

Nicolas Iooss <[email protected]>
Newsgroups org.kernel.vger.selinux-refpolicy
Message-ID <CAJfZ7===nm6YpDnjH4WQko=O=NS5z3pFb82crq4++JimUsxHYA@mail.gmail.com>
On Thu, Jan 28, 2021 at 6:07 PM Dominick Grift
<[email protected]> wrote:
>
> Chris PeBenito <[email protected]> writes:
>
> > On 1/26/21 10:15 PM, Russell Coker wrote:
> >> I think this one is ready to merge.
> >> Signed-off-by: Russell Coker <[email protected]>
> >
> >
> >> @@ -170,6 +172,7 @@ ifdef(`distro_suse',`
> >>   /var/log/roundcubemail(/.*)?
> >> gen_context(system_u:object_r:httpd_log_t,s0)
> >>   /var/log/suphp\.log.* --
> >> gen_context(system_u:object_r:httpd_log_t,s0)
> >>   /var/log/z-push(/.*)?
> >> gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
> >> +/var/log/php7..-fpm.log --
> >> gen_context(system_u:object_r:httpd_log_t,s0)
> >
> > selint flagged this.  Is ".." intended to be 2 "." metacharacters?
>
> I would probably just do: /var/log/php.*-fpm\.log.* and get it over with

Or /var/log/php[0-9.]+-fpm\.log to match "something that looks like a
version". The problem with "." is that it can match a "/", for
subdirectories.

Nicolas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.