On Wed, Mar 24, 2021 at 3:08 PM Ondrej Mosnacek <omosnace@xxxxxxxxxx> wrote: > On Wed, Mar 24, 2021 at 1:41 PM Lokesh Gidra <lokeshgidra@xxxxxxxxxx> wrote: > > > > > > > > On Wed, Mar 24, 2021 at 5:56 PM Ondrej Mosnacek <omosnace@xxxxxxxxxx> wrote: > >> > >> On some old kernels (think RHEL-7) __NR_userfaultfd may not be defined > >> on certain arches, even though the <linux/userfaultfd.h> header is > >> available. To avoid build errors in such environments, abstract the > >> userfaultfd syscall into a helper function and make it fail with ENOSYS > >> when __NR_userfaultfd is not defined. > >> > >> Signed-off-by: Ondrej Mosnacek <omosnace@xxxxxxxxxx> > > > > > > Reviewed-by: Lokesh Gidra <lokeshgidra@xxxxxxxxxx> > > Thanks! And now it's applied: https://github.com/SELinuxProject/selinux-testsuite/commit/611d5247e464c69c343e4c5268f346809cf09bbd -- Ondrej Mosnacek Software Engineer, Linux Security - SELinux kernel Red Hat, Inc.