Man avc_netlink_open(3). You can set up the POLICYLOAD callback with
selinux_set_callback(), then open-code a loop using the avc_netlink
functions, or use avc_netlink_loop() to enter a blocking loop (in a
thread, for example). The POLICYLOAD callback will be called, and calling avc_open() to set up the AVC is not required.
Man avc_netlink_ open(3) . You can set up the POLICYLOAD callback with set_callback( ), then open-code a loop using the avc_netlink
selinux_
functions, or use avc_netlink_loop() to enter a blocking loop (in a
thread, for example). The POLICYLOAD callback will be called, and calling avc_open() to set up the AVC is not required.