All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Lautrbach <lautrbach@redhat.com>
To: James Carter <jwcart2@gmail.com>, selinux@vger.kernel.org
Subject: Re: [RFC PATCH 0/2] Possible solution to possible regression
Date: Tue, 28 Jan 2025 14:39:44 +0100	[thread overview]
Message-ID: <877c6f83bz.fsf@redhat.com> (raw)

James Carter <jwcart2@gmail.com> writes:

> As reported by Petr Lautrbach (lautrbach@redhat.com), commit d96f27bf7cb9
> ("libsemanage: Preserve file context and ownership in policy store") can cause
> restorecon to use old data.
>
> Here is a possible fix. It seems to work.


Works for me. Thanks!

Acked-by: Petr Lautrbach <lautrbach@redhat.com>

>
> James Carter (2):
>   libselinux: Close old selabel handle when setting a new one
>   libsemanage: Set new restorecon handle before doing restorecon
>
>  libselinux/src/selinux_restorecon.c | 4 ++++
>  libsemanage/src/semanage_store.c    | 5 +++++
>  2 files changed, 9 insertions(+)
>
> -- 
> 2.48.1


             reply	other threads:[~2025-01-28 13:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-28 13:39 Petr Lautrbach [this message]
2025-01-28 16:54 ` [RFC PATCH 0/2] Possible solution to possible regression James Carter
  -- strict thread matches above, loose matches on Subject: below --
2025-01-22 15:58 James Carter

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=877c6f83bz.fsf@redhat.com \
    --to=lautrbach@redhat.com \
    --cc=jwcart2@gmail.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.