Re: [PATCH net-next v6 4/4] selftest: Add tests for useful handling of LSM denials on SCM_RIGHTS
Jori Koolstra <[email protected]> Wed, 5 Aug 2026 12:18:50 +0200 (CEST)
| Newsgroups | gmane.linux.file-systems,gmane.linux.network,gmane.linux.kernel |
|---|---|
| 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.