aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorMaciej Soltysiak <maciej.soltysiak@ae.poznan.pl>2007-12-05 02:50:38 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:56:03 -0500
commit17dfc93f6d7e5792c9c36dd70c8612721a091ae8 (patch)
tree81f5c0cda8328cfdb3179423865a21ca694eb244 /net/ipv4
parent50c164a81f1c0dfad056f99e5685537fdd0f07dd (diff)
[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/ipv4')
-rw-r--r--net/ipv4/netfilter/ipt_LOG.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ipt_LOG.c b/net/ipv4/netfilter/ipt_LOG.c
index fba2155ffa3d..f8c613a6eb04 100644
--- a/net/ipv4/netfilter/ipt_LOG.c
+++ b/net/ipv4/netfilter/ipt_LOG.c
@@ -337,7 +337,9 @@ static void dump_packet(const struct nf_loginfo *info,
337 if ((logflags & IPT_LOG_UID) && !iphoff && skb->sk) { 337 if ((logflags & IPT_LOG_UID) && !iphoff && skb->sk) {
338 read_lock_bh(&skb->sk->sk_callback_lock); 338 read_lock_bh(&skb->sk->sk_callback_lock);
339 if (skb->sk->sk_socket && skb->sk->sk_socket->file) 339 if (skb->sk->sk_socket && skb->sk->sk_socket->file)
340 printk("UID=%u ", skb->sk->sk_socket->file->f_uid); 340 printk("UID=%u GID=%u",
341 skb->sk->sk_socket->file->f_uid,
342 skb->sk->sk_socket->file->f_gid);
341 read_unlock_bh(&skb->sk->sk_callback_lock); 343 read_unlock_bh(&skb->sk->sk_callback_lock);
342 } 344 }
343 345