test_sctp.te: avoid use of corenet_sctp_bind_generic_node()
PATCH 1/1 test_sctp.te: avoid use of corenet_sctp_bind_generic_node()
RHEL-7 policy doesn't have it and we only check for corenet_sctp_bind_all_nodes() in the Makefile. Change the uses of corenet_sctp_bind_generic_node() to corenet_sctp_bind_all_nodes() to match the pattern used in the rest of the file.
Fixes 841ccaabb366 ("selinux-testsuite: Update SCTP asconf client/server")
Signed-off-by Ondrej Mosnacek <[email protected]>
--- policy/test_sctp.te | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
policy/test_sctp.te +3 -3
@@ -188,8 +188,8 @@ unconfined_runs_test(sctp_asconf_params_client_t) typeattribute sctp_asconf_params_client_t testdomain; typeattribute sctp_asconf_params_client_t sctpsocketdomain; allow sctp_asconf_params_client_t self:sctp_socket { create connect ioctl read getattr write getopt setopt }; +corenet_sctp_bind_all_nodes(sctp_asconf_params_client_t) corenet_inout_generic_node(sctp_asconf_params_client_t) -corenet_sctp_bind_generic_node(sctp_asconf_params_client_t) corenet_inout_generic_if(sctp_asconf_params_client_t) # When running locally need this rule, else Client error 'Dynamic Address Reconfiguration'
@@ -206,8 +206,8 @@ unconfined_runs_test(sctp_asconf_deny_pri_addr_client_t) typeattribute sctp_asconf_deny_pri_addr_client_t testdomain; typeattribute sctp_asconf_deny_pri_addr_client_t sctpsocketdomain; allow sctp_asconf_deny_pri_addr_client_t self:sctp_socket { create connect ioctl read getattr write getopt setopt }; +corenet_sctp_bind_all_nodes(sctp_asconf_deny_pri_addr_client_t) corenet_inout_generic_node(sctp_asconf_deny_pri_addr_client_t) -corenet_sctp_bind_generic_node(sctp_asconf_deny_pri_addr_client_t) corenet_inout_generic_if(sctp_asconf_deny_pri_addr_client_t) # net/sctp/sm_make_chunk.c sctp_process_asconf_param() SCTP_PARAM_ADD_IP and SCTP_PARAM_SET_PRIMARY
@@ -224,8 +224,8 @@ unconfined_runs_test(sctp_asconf_deny_param_add_client_t) typeattribute sctp_asconf_deny_param_add_client_t testdomain; typeattribute sctp_asconf_deny_param_add_client_t sctpsocketdomain; allow sctp_asconf_deny_param_add_client_t self:sctp_socket { create connect ioctl read getattr write getopt setopt }; +corenet_sctp_bind_all_nodes(sctp_asconf_deny_param_add_client_t) corenet_inout_generic_node(sctp_asconf_deny_param_add_client_t) -corenet_sctp_bind_generic_node(sctp_asconf_deny_param_add_client_t) corenet_inout_generic_if(sctp_asconf_deny_param_add_client_t) # net/sctp/sm_make_chunk.c sctp_process_asconf_param() SCTP_PARAM_ADD_IP and SCTP_PARAM_SET_PRIMARY
Signature · 1 line
2.26.2
Quoted 47 lines · Ondrej Mosnacek
RHEL-7 policy doesn't have it and we only check for
corenet_sctp_bind_all_nodes()in theMakefile. Change the uses ofcorenet_sctp_bind_generic_node()tocorenet_sctp_bind_all_nodes()to match the pattern used in the rest of the file.Fixes 841ccaabb366 ("selinux-testsuite: Update SCTP asconf client/server")Signed-off-by Ondrej Mosnacek <[email protected]>--- policy/test_sctp.te | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)policy/test_sctp.te +3
-4@@ -188,8 +188,8 @@ unconfined_runs_test(sctp_asconf_params_client_t) typeattribute sctp_asconf_params_client_t testdomain; typeattribute sctp_asconf_params_client_t sctpsocketdomain; allow sctp_asconf_params_client_t self:sctp_socket { create connect ioctl read getattr write getopt setopt }; +corenet_sctp_bind_all_nodes(sctp_asconf_params_client_t) corenet_inout_generic_node(sctp_asconf_params_client_t) -corenet_sctp_bind_generic_node(sctp_asconf_params_client_t) corenet_inout_generic_if(sctp_asconf_params_client_t) # When running locally need this rule, else Client error 'Dynamic Address Reconfiguration'@@ -206,8 +206,8 @@ unconfined_runs_test(sctp_asconf_deny_pri_addr_client_t) typeattribute sctp_asconf_deny_pri_addr_client_t testdomain; typeattribute sctp_asconf_deny_pri_addr_client_t sctpsocketdomain; allow sctp_asconf_deny_pri_addr_client_t self:sctp_socket { create connect ioctl read getattr write getopt setopt }; +corenet_sctp_bind_all_nodes(sctp_asconf_deny_pri_addr_client_t) corenet_inout_generic_node(sctp_asconf_deny_pri_addr_client_t) -corenet_sctp_bind_generic_node(sctp_asconf_deny_pri_addr_client_t) corenet_inout_generic_if(sctp_asconf_deny_pri_addr_client_t) # net/sctp/sm_make_chunk.c sctp_process_asconf_param() SCTP_PARAM_ADD_IP and SCTP_PARAM_SET_PRIMARY@@ -224,8 +224,8 @@ unconfined_runs_test(sctp_asconf_deny_param_add_client_t) typeattribute sctp_asconf_deny_param_add_client_t testdomain; typeattribute sctp_asconf_deny_param_add_client_t sctpsocketdomain; allow sctp_asconf_deny_param_add_client_t self:sctp_socket { create connect ioctl read getattr write getopt setopt }; +corenet_sctp_bind_all_nodes(sctp_asconf_deny_param_add_client_t) corenet_inout_generic_node(sctp_asconf_deny_param_add_client_t) -corenet_sctp_bind_generic_node(sctp_asconf_deny_param_add_client_t) corenet_inout_generic_if(sctp_asconf_deny_param_add_client_t) # net/sctp/sm_make_chunk.c sctp_process_asconf_param() SCTP_PARAM_ADD_IP and SCTP_PARAM_SET_PRIMARY --
Quoted 2 lines
2.26.2
This is now applied:
https://github.com/SELinuxProject/selinux-testsuite/commit/4dcb6a552d538d0a16c78ad113a206949a8b1707
Signature · 3 lines
Ondrej Mosnacek Software Engineer, Platform Security - SELinux kernel Red Hat, Inc.