On Wed, Sep 8, 2021 at 1:07 PM Ondrej Mosnacek <omosnace@xxxxxxxxxx> wrote: > The test requires the <linux/vm_sockets.h> header to be available and > contain th definition for VMADDR_CID_LOCAL, so wrap it in a check for > these preconditions. > > Likewise, the vsock_socket test policy requires the vsock_socket class > to be defined in the base policy, so wrap the policy bit and test in a > check for this, too. > > Without this patch the testsuite wouldn't build on older distros such as > RHEL-7. > > Signed-off-by: Ondrej Mosnacek <omosnace@xxxxxxxxxx> > --- > > v2: also check for vsock_socket class in policy > > policy/Makefile | 6 +++++- > tests/Makefile | 8 +++++++- > 2 files changed, 12 insertions(+), 2 deletions(-) This patch is also applied now. -- Ondrej Mosnacek Software Engineer, Linux Security - SELinux kernel Red Hat, Inc.