ANDROID: fix up android selinux build break.

In commit e67b79850f ("selinux: stop passing selinux_state pointers
and their offspring"), the selinux state pointers were switched to a
global pointer.  This breaks the out-of-tree android networking state
status logic, so switch it over to use the correct global selinux state
structure instead.

Fixes: e67b79850f ("selinux: stop passing selinux_state pointers and their offspring")
Change-Id: Iaf1a7a7824bffd1c074e3d3a43b4608d8138a9f4
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2023-05-12 13:14:41 +00:00
parent c2a1022086
commit 8853c7995c
+2 -2
View File
@@ -2126,8 +2126,8 @@ static void security_load_policycaps(struct selinux_policy *policy)
i);
}
state->android_netlink_route = p->android_netlink_route;
state->android_netlink_getneigh = p->android_netlink_getneigh;
selinux_state.android_netlink_route = p->android_netlink_route;
selinux_state.android_netlink_getneigh = p->android_netlink_getneigh;
selinux_nlmsg_init();
}