public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Max Chernoff <git@maxchernoff.ca>
To: Stefano Brivio <sbrivio@redhat.com>, passt-dev@passt.top
Cc: Max Chernoff <git@maxchernoff.ca>, Paul Holzinger <pholzing@redhat.com>
Subject: Re: [PATCH] fedora: Separately restore context for /run/user in %posttrans selinux
Date: Thu, 22 May 2025 22:19:11 -0600	[thread overview]
Message-ID: <f0ae3b503fadaecc3ba75d0713dc87d5b31f54e2.camel@maxchernoff.ca> (raw)
In-Reply-To: <20250522211331.3904674-1-sbrivio@redhat.com>

Hi Stefano,

On Thu, 2025-05-22 at 23:13 +0200, Stefano Brivio wrote:
> The previous change introduces specific file contexts for
> /run/user/%{USERID}/netns and
> /run/user/%{USERID}/containers/networks/rootless-netns, but
> %selinux_relabel_post can't handle that, see comments for more
> details.
>
> Add a separate restorecon(8) call for /run/user in the
> post-transaction scriptlet for the SELinux subpackage.

I've tested this out and can confirm that it works, thanks.

Aside: what is the correct way to build passt rpms? "make pkgs" doesn't
build the SELinux package, but I was eventually able to get the
following to work:

    $ git archive --prefix=passt-$(git rev-parse @)/ @ > ./passt-$(git rev-parse @).tar
    $ xz passt-*.tar
    $ mv *.tar.xz contrib/fedora/
    $ cd contrib/fedora/
    $ rpkg local --outdir $(realpath .)

Is there a way to do this without needing to manually create the .tar.xz
archive first?

Thanks,
-- Max

  reply	other threads:[~2025-05-23  4:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-22 21:13 [PATCH] fedora: Separately restore context for /run/user in %posttrans selinux Stefano Brivio
2025-05-23  4:19 ` Max Chernoff [this message]
2025-05-23 12:19   ` Stefano Brivio
2025-05-24  7:07     ` Max Chernoff

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=f0ae3b503fadaecc3ba75d0713dc87d5b31f54e2.camel@maxchernoff.ca \
    --to=git@maxchernoff.ca \
    --cc=passt-dev@passt.top \
    --cc=pholzing@redhat.com \
    --cc=sbrivio@redhat.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).