diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2013-07-16 13:18:45 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-01-13 22:27:24 -0500 |
commit | 33faba7fa7f2288d2f8aaea95958b2c97bf9ebfb (patch) | |
tree | fd6dd66d190aed6c01e974b9c07be163c10a5e65 /kernel/audit.h | |
parent | 2f2ad1013322c8f6c40fc6dafdbd32442fa730ad (diff) |
audit: listen in all network namespaces
Convert audit from only listening in init_net to use register_pernet_subsys()
to dynamically manage the netlink socket list.
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/audit.h')
-rw-r--r-- | kernel/audit.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/audit.h b/kernel/audit.h index c7282444caea..0719b4547221 100644 --- a/kernel/audit.h +++ b/kernel/audit.h | |||
@@ -247,11 +247,16 @@ extern void audit_panic(const char *message); | |||
247 | 247 | ||
248 | struct audit_netlink_list { | 248 | struct audit_netlink_list { |
249 | __u32 portid; | 249 | __u32 portid; |
250 | pid_t pid; | ||
250 | struct sk_buff_head q; | 251 | struct sk_buff_head q; |
251 | }; | 252 | }; |
252 | 253 | ||
253 | int audit_send_list(void *); | 254 | int audit_send_list(void *); |
254 | 255 | ||
256 | struct audit_net { | ||
257 | struct sock *nlsk; | ||
258 | }; | ||
259 | |||
255 | extern int selinux_audit_rule_update(void); | 260 | extern int selinux_audit_rule_update(void); |
256 | 261 | ||
257 | extern struct mutex audit_filter_mutex; | 262 | extern struct mutex audit_filter_mutex; |