mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christian Brauner <brauner@kernel.org>
To: Jori Koolstra <jkoolstra@xs4all.nl>
Cc: Jakub Kicinski <kuba@kernel.org>,
	 Christian Brauner <brauner@kernel.org>,
	Aleksa Sarai <cyphar@cyphar.com>,
	 Kuniyuki Iwashima <kuniyu@google.com>,
	 "David S . Miller" <davem@davemloft.net>,
	 Eric Dumazet <edumazet@google.com>,
	Paolo Abeni <pabeni@redhat.com>,  Simon Horman <horms@kernel.org>,
	netdev@vger.kernel.org,  linux-fsdevel@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v3 5/5] selftest: Add tests for useful handling of LSM denials on SCM_RIGHTS
Date: Wed, 01 Jul 2026 09:38:58 +0200	[thread overview]
Message-ID: <20260701-malen-gutmachen-stengel-2c70ad5d2971@brauner> (raw)
In-Reply-To: <1957659940.3537950.1782830112890@kpc.webmail.kpnmail.nl>

On 2026-06-30 16:35 +0200, Jori Koolstra wrote:
> 
> > Op 30-06-2026 16:17 CEST schreef Jakub Kicinski <kuba@kernel.org>:
> > 
> >  
> > On Mon, 29 Jun 2026 21:43:27 +0200 Jori Koolstra wrote:
> > > The test uses the following Smack labels:
> > > 
> > >    "Sender"   - label for the sending process
> > >    "Receiver" - label for the receiving process
> > >    "SecretX"   - labels for the files being passed
> > 
> > Not sure this test belongs in net/
> > 99.9% of people running this test do not use Smack.
> > At the very least you need to use XFAIL instead of SKIP
> > we use skip for problems with the env which are fixable,
> > like a command missing.
> 
> Ah, right, because you can only use one of these LSMs at a time?
> I mean one of AppArmour, SELinux, Smack, TOMOYO.
> 
> I just need some LSM to trigger the reject of security_file_receive()
> and Smack was the easiest to get going. The series is totally agnostic
> to the used LSM. I am fine with moving the tests elsewhere or porting
> them to SELinux if that is really necessary. We could also drop them
> altogether.
> 
> What do you propose?

I'm pretty sure the easiest will be to use a tiny bpf program to reject
security_file_receive().


  parent reply	other threads:[~2026-07-01  7:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-29 19:43 [PATCH net-next v3 0/5] af_unix: " Jori Koolstra
2026-06-29 19:43 ` [PATCH net-next v3 1/5] net: scm: move scm_detach_fds() from common path to scm_recv_unix() Jori Koolstra
2026-06-29 19:43 ` [PATCH net-next v3 2/5] vfs: add function receive_fd_filtered() that makes LSM filtering explicit Jori Koolstra
2026-06-29 19:43 ` [PATCH net-next v3 3/5] net: af_unix: useful handling of LSM denials on SCM_RIGHTS Jori Koolstra
2026-06-30  9:58   ` Christian Brauner
2026-06-30 12:17     ` Jori Koolstra
2026-07-01  7:44       ` Christian Brauner
2026-06-30 16:43   ` Kuniyuki Iwashima
2026-06-29 19:43 ` [PATCH net-next v3 4/5] net: af_unix: replace copy_from_sockptr() with copy_safe_from_sockptr() Jori Koolstra
2026-06-30 16:18   ` Kuniyuki Iwashima
2026-06-29 19:43 ` [PATCH net-next v3 5/5] selftest: Add tests for useful handling of LSM denials on SCM_RIGHTS Jori Koolstra
2026-06-30 14:17   ` Jakub Kicinski
2026-06-30 14:35     ` Jori Koolstra
2026-06-30 16:23       ` Kuniyuki Iwashima
2026-07-01  7:38       ` Christian Brauner [this message]
2026-07-01  9:31         ` Jori Koolstra

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=20260701-malen-gutmachen-stengel-2c70ad5d2971@brauner \
    --to=brauner@kernel.org \
    --cc=cyphar@cyphar.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=jkoolstra@xs4all.nl \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox