Skip to content

inet_socket and mmap patches

Jan Stancek selinux 1 version Applied

Status from this message: Merged, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4tests/inet_socket: check 'ip xfrm policy ctx' supporttests/inet_socket/test+19 -123 replies
2/4inet_socket: secon: use current pidtests/inet_socket/ipsec-load+2 -21 reply
3/4mmap/mprotect_heap: make sure memory is allocated from heaptests/mmap/mprotect_heap.c+8 -14 replies
4/4mmap/mprotect_file_private_execmod: clear READ_IMPLIES_EXECtests/mmap/mprotect_file_private_execmod.c+13 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [selinux-testsuite PATCH 0/4] inet_socket and mmap patches

Here are 4 patches that fix failures I have came across in recently added tests: "inet_socket" and "mmap" on RHEL distros.

I have tested this series on:

                   i386   x86_64   ia64   ppc64   ppc64le   s390x
RHEL5.6/11           *      *        *      *       N/A       *
RHEL6.2/4/5/6/7      *      *       N/A     *       N/A       *
RHEL7.0/1/2         N/A     *       N/A     *        *        *

I have hit one known kernel issue on RHEL7.0/1:
Bug 1102641 - BUG: It is not possible to communicate between local
program and local ipv6 address when at least one 'netlabelctl unlbl' rule is added
https://bugzilla.redhat.com/show_bug.cgi?id=1102641

This didn't prevent tests from completing, but since harness we use is using IPv6 by default, it was getting stuck on connect after test completed.

Other than this one known kernel issue, all tests have passed.

Jan Stancek (4):
tests/inet_socket: check 'ip xfrm policy ctx' support
inet_socket: secon: use current pid mmap/mprotect_heap: make sure memory is allocated from heap mmap/mprotect_file_private_execmod: clear READ_IMPLIES_EXEC

 tests/inet_socket/ipsec-load               |  4 ++--
 tests/inet_socket/test                     | 31 ++++++++++++++++++------------
 tests/mmap/mprotect_file_private_execmod.c | 13 +++++++++++++
 tests/mmap/mprotect_heap.c                 |  9 ++++++++-
 4 files changed, 42 insertions(+), 15 deletions(-)
Signature · 1 line
1.8.3.1