The best time to attach a BPF filter to a socket is before a socket starts receiving data. Netlink sockets start receiving data after bind() has been called. uevent_open_socket() calls socket() and bind(). Hence split uevent_open_socket() into two functions: one function that calls socket() and another function that calls bind(). Bug: 203462310 Change-Id: Ia41dee4683358cf9fbb6288fad863cd4f4ac9924 Signed-off-by: Bart Van Assche <bvanassche@google.com> |
||
|---|---|---|
| .. | ||
| android_filesystem_config.h | ||
| android_get_control_file.h | ||
| android_reboot.h | ||
| ashmem.h | ||
| atomic.h | ||
| bitops.h | ||
| compiler.h | ||
| config_utils.h | ||
| fs.h | ||
| hashmap.h | ||
| iosched_policy.h | ||
| klog.h | ||
| list.h | ||
| log.h | ||
| memory.h | ||
| misc.h | ||
| multiuser.h | ||
| native_handle.h | ||
| partition_utils.h | ||
| properties.h | ||
| qtaguid.h | ||
| record_stream.h | ||
| sched_policy.h | ||
| sockets.h | ||
| str_parms.h | ||
| trace.h | ||
| uevent.h | ||