All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dominick Grift <dominick.grift@defensec.nl>
To: Russell Coker <russell@coker.com.au>
Cc: selinux-refpolicy@vger.kernel.org
Subject: Re: /dev/full
Date: Mon, 28 Sep 2026 12:20:46 +0200	[thread overview]
Message-ID: <87fqyt4qyp.fsf@defensec.nl> (raw)
In-Reply-To: <VGBj-6LDTkuAcXf5vq6uLg@coker.com.au> (Russell Coker's message of "Mon, 28 Sep 2026 20:09:41 +1000")

Russell Coker <russell@coker.com.au> writes:

> On Monday, 28 September 2026 14:28:27 AEST Dominick Grift wrote:
>> I noticed similar. I suspect this is due to how userspace_initial_sid
>> polcap is implemented in refpolicy (refpolicy does leverage it does it
>> not?). Misssing an appropriate auto type transition because the scenario
>> changed.

The fact that it ends up event_device_t means that the wrong type
transition applies (theres a default for chr_file event_device_t which
is triggered instead of the proper name-based transition

the polcap mentioned can be used to implement a different context for
userspace processes in initrd. Depending on how its implemented it could
introduce issues like these (I encountered similar but my implementation
of that polcap is more intrusive.

For example: any transitions associated with kernel_t would no longer
apply to userspace in initrd if that is now given a private context.

>
> The below is in current refpolicy, is this what you mean?
>
> # Enable separate user space context for processes started before first
> # policy load.
> # Requires libsepol 3.7 and kernel 6.8.
> #
> # Added checks:
> # (none)
> policycap userspace_initial_context;
>
> How do you think it could be affecting the issue I saw?

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

  reply	other threads:[~2026-09-28 10:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-28  1:28 /dev/full Russell Coker
2026-09-28  4:28 ` /dev/full Dominick Grift
2026-09-28 10:09   ` /dev/full Russell Coker
2026-09-28 10:20     ` Dominick Grift [this message]
2026-09-28 10:34       ` /dev/full Dominick Grift
2026-09-28 11:58         ` /dev/full Russell Coker
2026-09-28 12:10           ` /dev/full Russell Coker
2026-09-28 12:21             ` /dev/full Dominick Grift
2026-09-28 13:18               ` /dev/full Russell Coker
2026-09-28 13:34                 ` /dev/full Dominick Grift

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=87fqyt4qyp.fsf@defensec.nl \
    --to=dominick.grift@defensec.nl \
    --cc=russell@coker.com.au \
    --cc=selinux-refpolicy@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.