Re: [PATCH testsuite v2] tests: exclude vsock_socket test where it wouldn't build

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

 



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.




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux