All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Iooss <nicolas.iooss@m4x.org>
To: Petr Lautrbach <plautrba@redhat.com>
Cc: selinux@vger.kernel.org
Subject: Re: [PATCH] libselinux/selinux_restorecon: Skip customized files also without -v
Date: Sun, 10 Feb 2019 17:50:16 +0100	[thread overview]
Message-ID: <CAJfZ7==WKUcc8HT5uVTUN6LmuLcNVKM2MpEwZZ42g1iFbnw8Bw@mail.gmail.com> (raw)
In-Reply-To: <CAJfZ7=ndwhAsaJB7EuYneFU1fyPQwW8YZsnBSo_d1gN7XUTVMA@mail.gmail.com>

On Thu, Feb 7, 2019 at 10:23 PM Nicolas Iooss <nicolas.iooss@m4x.org> wrote:
>
> On Wed, Feb 6, 2019 at 8:41 PM Petr Lautrbach <plautrba@redhat.com> wrote:
> >
> > In the original code, customizable file contexts were not changed only if -v was
> > used. It lead to different behavior when selinux_restorecon was run with -v and
> > without it.
> >
> > Based on an initial patch by Jan Zarsky <jzarsky@redhat.com>
> >
> > Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
>
> Acked-by: Nicolas Iooss <nicolas.iooss@m4x.org>

Merged.

Nicolas

> > ---
> >  libselinux/src/selinux_restorecon.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/libselinux/src/selinux_restorecon.c b/libselinux/src/selinux_restorecon.c
> > index 42a48f5a..0f0fd6ca 100644
> > --- a/libselinux/src/selinux_restorecon.c
> > +++ b/libselinux/src/selinux_restorecon.c
> > @@ -672,8 +672,8 @@ static int restorecon_sb(const char *pathname, const struct stat *sb,
> >                                 selinux_log(SELINUX_INFO,
> >                                  "%s not reset as customized by admin to %s\n",
> >                                                             pathname, curcon);
> > -                               goto out;
> >                         }
> > +                       goto out;
> >                 }
> >
> >                 if (!flags->set_specctx && curcon) {
> > --
> > 2.20.1
> >


      reply	other threads:[~2019-02-10 16:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-06 19:41 [PATCH] libselinux/selinux_restorecon: Skip customized files also without -v Petr Lautrbach
2019-02-07 21:23 ` Nicolas Iooss
2019-02-10 16:50   ` Nicolas Iooss [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJfZ7==WKUcc8HT5uVTUN6LmuLcNVKM2MpEwZZ42g1iFbnw8Bw@mail.gmail.com' \
    --to=nicolas.iooss@m4x.org \
    --cc=plautrba@redhat.com \
    --cc=selinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.