mbox series

[RFC,0/2] Possible solution to possible regression

Message ID 20250122155828.151233-1-jwcart2@gmail.com (mailing list archive)
Headers show
Series Possible solution to possible regression | expand

Message

James Carter Jan. 22, 2025, 3:58 p.m. UTC
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.

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(+)