diff options
author | Maciej Soltysiak <maciej.soltysiak@ae.poznan.pl> | 2007-12-04 23:50:38 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 14:56:03 -0800 |
commit | 17dfc93f6d7e5792c9c36dd70c8612721a091ae8 (patch) | |
tree | 81f5c0cda8328cfdb3179423865a21ca694eb244 /net/ipv6 | |
parent | 50c164a81f1c0dfad056f99e5685537fdd0f07dd (diff) | |
download | linux-3.10-17dfc93f6d7e5792c9c36dd70c8612721a091ae8.tar.gz linux-3.10-17dfc93f6d7e5792c9c36dd70c8612721a091ae8.tar.bz2 linux-3.10-17dfc93f6d7e5792c9c36dd70c8612721a091ae8.zip |
[NETFILTER]: {ip,ip6}t_LOG: log GID
Log GID in addition to UID
Signed-off-by: Maciej Soltysiak <maciej.soltysiak@ae.poznan.pl>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/ip6t_LOG.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/ip6t_LOG.c b/net/ipv6/netfilter/ip6t_LOG.c index cd51c42727f..19523242991 100644 --- a/net/ipv6/netfilter/ip6t_LOG.c +++ b/net/ipv6/netfilter/ip6t_LOG.c @@ -362,7 +362,9 @@ static void dump_packet(const struct nf_loginfo *info, if ((logflags & IP6T_LOG_UID) && recurse && skb->sk) { read_lock_bh(&skb->sk->sk_callback_lock); if (skb->sk->sk_socket && skb->sk->sk_socket->file) - printk("UID=%u ", skb->sk->sk_socket->file->f_uid); + printk("UID=%u GID=%u", + skb->sk->sk_socket->file->f_uid, + skb->sk->sk_socket->file->f_gid); read_unlock_bh(&skb->sk->sk_callback_lock); } } |