Re: [PATCH net-next v6 4/4] selftest: Add tests for useful handling of LSM denials on SCM_RIGHTS

Jori Koolstra <[email protected]>
Newsgroups org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.netdev
Message-ID <[email protected]>
> Op 04-08-2026 19:26 CEST schreef Kuniyuki Iwashima <[email protected]>:
> 
> > +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/[email protected]/
> 
> 

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?

If I fix these issues today, any chance we can still get this in before the merge window
starts again?

Best,
Jori.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.