diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2013-12-17 11:10:42 +0800 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-01-13 22:32:49 -0500 |
commit | de92fc97e12d4b9170d1ab3dbccbdcb8c56add31 (patch) | |
tree | 1398d88a4f074862def8c855b2ed5a62d673beb8 /Documentation/block/request.txt | |
parent | 11ee39ebf756821966fe1e2f65df4f728098d467 (diff) |
audit: fix incorrect set of audit_sock
NETLINK_CB(skb).sk is the socket of user space process,
netlink_unicast in kauditd_send_skb wants the kernel
side socket. Since the sk_state of audit netlink socket
is not NETLINK_CONNECTED, so the netlink_getsockbyportid
doesn't return -ECONNREFUSED.
And the socket of userspace process can be released anytime,
so the audit_sock may point to invalid socket.
this patch sets the audit_sock to the kernel side audit
netlink socket.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'Documentation/block/request.txt')
0 files changed, 0 insertions, 0 deletions