Re: [PATCH net-next v6 4/4] selftest: Add tests for useful handling of LSM denials on SCM_RIGHTS
From: Kuniyuki Iwashima
Date: Wed Aug 05 2026 - 12:31:14 EST
On Wed, Aug 5, 2026 at 3:18 AM Jori Koolstra <jkoolstra@xxxxxxxxx> wrote:
>
>
> > Op 04-08-2026 19:26 CEST schreef Kuniyuki Iwashima <kuniyu@xxxxxxxxxx>:
> >
> > > +TEST_GEN_FILES := scm_rights_denial_lsm.bpf.o
> > > +
> > > include ../../lib.mk
> > > +include ../bpf.mk
> > > +
> > > +$(OUTPUT)/scm_rights_denial_lsm: $(BPFOBJ)
> > > +$(OUTPUT)/scm_rights_denial_lsm: CFLAGS += -I$(SCRATCH_DIR)/include
> > > +$(OUTPUT)/scm_rights_denial_lsm: LDLIBS += -lelf -lz
> > > diff --git a/tools/testing/selftests/net/af_unix/config b/tools/testing/selftests/net/af_unix/config
> > > index 41dbb03c747e..468f7a0bb64e 100644
> > > --- a/tools/testing/selftests/net/af_unix/config
> > > +++ b/tools/testing/selftests/net/af_unix/config
> > > @@ -2,3 +2,10 @@ CONFIG_AF_UNIX_OOB=y
> > > CONFIG_UNIX=y
> > > CONFIG_UNIX_DIAG=m
> > > CONFIG_USER_NS=y
> > > +CONFIG_BPF=y
> > > +CONFIG_BPF_SYSCALL=y
> > > +CONFIG_BPF_EVENTS=y
> > > +CONFIG_BPF_JIT=y
> > > +CONFIG_SECURITY=y
> > > +CONFIG_BPF_LSM=y
> > > +CONFIG_DEBUG_INFO_BTF=y
> >
> > Please sort configs as CI complains.
> > https://patchwork.kernel.org/project/netdevbpf/patch/20260802151212.3294591-5-jkoolstra@xxxxxxxxx/
> >
> >
>
> Oh that is pretty neat!
>
> I wasn't aware there was a canonical sorting for the config. This should fix it,
>
> LC_ALL=C sort -c tools/testing/selftests/net/af_unix/config
>
> correct?
Yes, assuming you meant without -c.
>
> If I fix these issues today, any chance we can still get this in before the merge window
> starts again?
I think so.
>From the Linus's email, it seems we still have next week for rc8.
https://lore.kernel.org/lkml/CAHk-=whoz5Uy-kmrdzjrpCJCVWW3fni31c-zsHcH7TkOhRhfOA@xxxxxxxxxxxxxx/T/#u