selinux-testsuite: split testcase list for rhel-6.
PATCH v2 1/1 selinux-testsuite: split testcase list for rhel-6.
The NNP test will not work on rhel-6, so split off a separate testcase list for rhel-6 as we have previously done for rhel-5 and 4. Simplify maintenance by introducing a SUBDIRS_COMMON variable with the list of testcases shared by all.
--- tests/Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)
tests/Makefile +9 -4
@@ -1,14 +1,19 @@ REDHAT_RELEASE=$(shell rpm -q redhat-release) -SUBDIRS=domain_trans entrypoint execshare exectrace execute_no_trans fdreceive inherit link mkdir msg nnp open ptrace readlink relabel rename rxdir sem setattr setnice shm sigkill stat sysctl task_create task_setnice task_setscheduler task_getscheduler task_getsid task_getpgid task_setpgid wait file ioctl capable_file capable_net capable_sys dyntrans dyntrace bounds -#SUBDIRS=socket unix_socket unix_secure +SUBDIRS_COMMON:=domain_trans entrypoint execshare exectrace execute_no_trans fdreceive inherit link mkdir msg open ptrace readlink relabel rename rxdir sem setattr setnice shm sigkill stat sysctl task_create task_setnice task_setscheduler task_getscheduler task_getsid task_getpgid task_setpgid wait file ioctl capable_file capable_net capable_sys + +SUBDIRS:= $(SUBDIRS_COMMON) dyntrans dyntrace bounds nnp ifeq (redhat-release-4, $(findstring redhat-release-4, $(REDHAT_RELEASE))) - SUBDIRS=domain_trans entrypoint execshare exectrace execute_no_trans fdreceive inherit link mkdir msg open ptrace readlink relabel rename rxdir sem setattr setnice shm sigkill stat sysctl task_create task_setnice task_setscheduler task_getscheduler task_getsid task_getpgid task_setpgid wait file ioctl capable_file capable_net capable_sys + SUBDIRS:=$(SUBDIRS_COMMON) endif ifeq (redhat-release-5, $(findstring redhat-release-5, $(REDHAT_RELEASE))) - SUBDIRS=domain_trans entrypoint execshare exectrace execute_no_trans fdreceive inherit link mkdir msg open ptrace readlink relabel rename rxdir sem setattr setnice shm sigkill stat sysctl task_create task_setnice task_setscheduler task_getscheduler task_getsid task_getpgid task_setpgid wait file ioctl capable_file capable_net capable_sys dyntrace dyntrans + SUBDIRS:=$(SUBDIRS_COMMON) dyntrace dyntrans +endif + +ifeq (redhat-release-6, $(findstring redhat-release-6, $(REDHAT_RELEASE))) + SUBDIRS:=$(SUBDIRS_COMMON) dyntrace dyntrans bounds endif .PHONY: all test clean
Signature · 1 line
1.9.3
Quoted 9 lines · Stephen Smalley
The NNP test will not work on rhel-6, so split off a separate testcase list for rhel-6 as we have previously done for rhel-5 and 4. Simplify maintenance by introducing a
SUBDIRS_COMMONvariable with the list of testcases shared by all.Signed-off-by Stephen Smalley <[email protected]>--- tests/Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)
Merged, but needs another patch which I'll be posting shortly. It turns out that the "redhat-release" package is not consistent across RHEL releases.
Quoted 44 lines
tests/Makefile +0
-1@@ -1,14 +1,19 @@ REDHAT_RELEASE=$(shell rpm -q redhat-release) -SUBDIRS=domain_trans entrypoint execshare exectrace execute_no_transfdreceive inherit link mkdir msg nnp open ptrace readlink relabel rename rxdir sem setattr setnice shm sigkill stat sysctl
task_createtask_setnicetask_setschedulertask_getschedulertask_getsidtask_getpgidtask_setpgidwait file ioctlcapable_filecapable_netcapable_sysdyntrans dyntrace bounds -#SUBDIRS=socketunix_socketunix_secure+SUBDIRS_COMMON:=domain_trans entrypoint execshare exectraceexecute_no_transfdreceive inherit link mkdir msg open ptrace readlink relabel rename rxdir sem setattr setnice shm sigkill stat sysctltask_createtask_setnicetask_setschedulertask_getschedulertask_getsidtask_getpgidtask_setpgidwait file ioctlcapable_filecapable_netcapable_sys+tests/Makefile +1
-1+SUBDIRS:= $(SUBDIRS_COMMON) dyntrans dyntrace bounds nnp ifeq (redhat-release-4, $(findstring redhat-release-4, $(REDHAT_RELEASE))) - SUBDIRS=domain_trans entrypoint execshare exectrace execute_no_transfdreceive inherit link mkdir msg open ptrace readlink relabel rename rxdir sem setattr setnice shm sigkill stat sysctl
task_createtask_setnicetask_setschedulertask_getschedulertask_getsidtask_getpgidtask_setpgidwait file ioctlcapable_filecapable_netcapable_sys+ SUBDIRS:=$(SUBDIRS_COMMON)
endififeq (redhat-release-5, $(findstring redhat-release-5, $(REDHAT_RELEASE)))
- SUBDIRS=domain_trans entrypoint execshare exectraceexecute_no_trans
fdreceive inherit link mkdir msg open ptrace readlink relabel rename rxdir sem setattr setnice shm sigkill stat sysctltask_createtask_setnicetask_setschedulertask_getschedulertask_getsidtask_getpgidtask_setpgidwait file ioctlcapable_filecapable_netcapable_sysdyntrace dyntrans + SUBDIRS:=$(SUBDIRS_COMMON) dyntrace dyntranstests/Makefile +4
-0+endif + +ifeq (redhat-release-6, $(findstring redhat-release-6, $(REDHAT_RELEASE))) + SUBDIRS:=$(SUBDIRS_COMMON) dyntrace dyntrans bounds endif .PHONY: all test clean
Signature · 2 lines
paul moore security @ redhat