Re: seccomp/seccomp_bpf: test terminated by the not expected behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 29, 2018 at 6:52 PM Liu, Wenlong <liuwl.fnst@xxxxxxxxxxxxxx> wrote:
> m3ulcb:/opt/kselftest/seccomp# ./seccomp_bpf 64
> [ RUN      ] global.get_metadata
> seccomp_bpf.c:2914:global.get_metadata:Expected sizeof(md) (16) == ptrace(0x420d, pid, sizeof(md), &md) (-1)
> global.get_metadata: Test terminated by assertion
> [     FAIL ] global.get_metadata
>
> ---
> Although I am not so familiar with SECCOMP and BPF, I checked some related documents and codes.
> About the failures above, what the most confused me is that why it always give ENOSYS.
>
> Am I missing something?
> Thanks in advance.
>
> PS:
> I didn't run "make kselftest-merge" before compiling the kernel that I'm using.
>
> ---
> The Test Environment:
> - Kernel version: v4.14.0

Hi!

It appears you're attempting to use a newer seccomp selftest on an
older kernel. That isn't a supported way to test seccomp. You'll need
to build 4.14's seccomp_bpf test binary and run it instead.

-- 
Kees Cook



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux