mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
Bah, the whole using linux/socket.h get AF_* tokens versus sys/socket.h
thing again. Fix to use the kernel's definition of AF_MAX in linux/socket.h if it's larger than glibc's AF_MAX definition in sys/socket.h and add a wrapper function so that we don't have include af_names.h everywhere. Also, fix memory leaks around the handling of network entries of policies.
This commit is contained in:
@@ -248,6 +248,7 @@ extern struct aa_network_entry *new_network_ent(unsigned int family,
|
||||
extern struct aa_network_entry *network_entry(const char *family,
|
||||
const char *type,
|
||||
const char *protocol);
|
||||
extern size_t get_af_max(void);
|
||||
|
||||
extern void debug_cod_list(struct codomain *list);
|
||||
/* returns -1 if value != true or false, otherwise 0 == false, 1 == true */
|
||||
|
Reference in New Issue
Block a user