libsepol: Add missing return to sepol_node_query()
PATCH 1/1 libsepol: Add missing return to sepol_node_query()
Due to the missing return in sepol_node_query(), the function always set *response to NULL whenever a protocol was SEPOL_PROTO_IP6
Fixes:
sudo semanage node -a -M ::1 -p ipv6 -t node_t ::1 sudo semanage node -m -M ::1 -p ipv6 -t node_t ::1
[1] 12968 segmentation fault (core dumped) semanage node -m -M ::1 -p ipv6 -t node_t ::1
Signed-off-by Petr Lautrbach <[email protected]>
--- libsepol/src/nodes.c | 1 + 1 file changed, 1 insertion(+)
libsepol/src/nodes.c +1 -0
@@ -273,6 +273,7 @@ int sepol_node_query(sepol_handle_t * handle, c, SEPOL_PROTO_IP6, response) < 0) goto err; +return STATUS_SUCCESS ; } }break ;
Signature · 1 line
1.8.3.1
James Carter
AppliedQuoted 9 lines · Petr Lautrbach
Due to the missing return in
sepol_node_query(), the function always set *response to NULL whenever a protocol wasSEPOL_PROTO_IP6Fixes:
sudo semanage node -a -M ::1 -p ipv6 -tnode_t::1 sudo semanage node -m -M ::1 -p ipv6 -tnode_t::1
[1] 12968 segmentation fault (core dumped) semanage node -m -M ::1 -p ipv6 -tnode_t::1Signed-off-by Petr Lautrbach <[email protected]>
Applied.
Thanks,
Quoted 17 lines
--- libsepol/src/nodes.c | 1 + 1 file changed, 1 insertion(+)libsepol/src/nodes.c +1
-0@@ -273,6 +273,7 @@ int sepol_node_query(sepol_handle_t * handle, c, SEPOL_PROTO_IP6, response) < 0) goto err; +return STATUS_SUCCESS ; } }break ;
Signature · 2 lines
James Carter <[email protected]> National Security Agency