All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dominick Grift <dominick.grift@defensec.nl>
To: selinux@vger.kernel.org
Subject: possible regression with filecon equivalency
Date: Thu, 29 May 2025 16:03:58 +0200	[thread overview]
Message-ID: <87ldqftsxd.fsf@defensec.nl> (raw)


This worked a while ago:

root@nimbus:~# cat >> /etc/selinux/dssp5-debian/contexts/files/file_contexts.subs_dist <<'EOF'
> /foo /usr/bin
> /sysroot/foo /usr/bin
> EOF

root@nimbus:~# matchpathcon -m dir /usr/bin
/usr/bin        sys.id:sys.role:exec.file:s0
root@nimbus:~# matchpathcon -m dir /foo
/foo    sys.id:sys.role:exec.file:s0
root@nimbus:~# matchpathcon -m dir /sysroot/foo
/sysroot/foo    sys.id:sys.role:unknown.file:s0

What happened?

-- 
gpg --locate-keys dominick.grift@defensec.nl (wkd)
Key fingerprint = FCD2 3660 5D6B 9D27 7FC6  E0FF DA7E 521F 10F6 4098
Dominick Grift
Mastodon: @kcinimod@defensec.nl

             reply	other threads:[~2025-05-29 14:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-29 14:03 Dominick Grift [this message]
2025-05-29 14:18 ` possible regression with filecon equivalency Dominick Grift
2025-05-29 14:28   ` Dominick Grift
2025-05-29 16:14 ` Petr Lautrbach

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=87ldqftsxd.fsf@defensec.nl \
    --to=dominick.grift@defensec.nl \
    --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.