On Wed, Apr 22, 2015 at 05:37:42PM +0200, Daniel Borkmann wrote:
> On 04/22/2015 05:09 PM, Vadim Kochan wrote:
> ...
> >Sure, I will try to fix it, really I dont have a fix yet. The issue goes
> >from pcap ops in init one function, where IO prio is set, the first
> >think which came up in my mind is to have separate pcap ops for read
> >only where set IO prio will be not called ... but I am not sure if it is
> >correct.
>
> I think we have two options:
>
> 1) Don't panic on error, but perhaps just throw a warning to the user
> instead in case of insufficient permissions.
>
> 2) Change init_once_pcap() into void (*init_once_pcap)(bool enforce_prio);
> and push down the enforcement into the various functions, and inside
> read_pcap(), you'd set __pcap_io->init_once_pcap(false). And in case
> the enforcement is not set, we just move on silently.
>
> Perhaps 2nd option is cleaner?
OK, I 've send a fix but it needs also to be applied the patch with a title:
[PATCH] netsniff-ng: Seems typo in getting current group id
https://groups.google.com/forum/?hl=en#!topic/netsniff-ng/7vKdK3FesSU
Because of initializing wrong ctx->gid the user could not change the
group because of the permissions when reading pcap file.
Regards,
--
You received this message because you are subscribed to the Google Groups
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.