Finding the PID of a process from sk_buff

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am capturing locally generated sk_buffs from local_out netfilter hook.

Inside this local_out hook, is there a way to find the PID of a
userspace process that has generated sk_buff?

skb->sk->socket->file->f_owner->pid seems to be NULL.

current->pid does not reliably tell the correct userspace process either.

Is there any other way?  Any help is much appreciated.

-hs
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux