Re: [PATCH net-next v6 4/4] selftest: Add tests for useful handling of LSM denials on SCM_RIGHTS
Kuniyuki Iwashima <[email protected]> Wed, 5 Aug 2026 09:30:45 -0700
| Newsgroups | gmane.linux.file-systems,gmane.linux.network,gmane.linux.kernel |
|---|---|
| Message-ID | <CAAVpQUCW4B+9SHPE233TRdHHL0Xv7P0+mH91yEGeMret7vSONA@mail.gmail.com> |
On Wed, Aug 5, 2026 at 3:18 AM Jori Koolstra <[email protected]> wrote: > > > > 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? 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@mail.gmail.com/T/#u