Home page logo

wireshark logo Wireshark mailing list archives

Re: Enabling linux kernel jit compiler from dumpcap?
From: Jakub Zawadzki <darkjames-ws () darkjames pl>
Date: Fri, 23 Aug 2013 23:58:24 +0200

On Fri, Aug 23, 2013 at 10:23:32AM +0000, Anders Broman wrote:
before we change it, should we remember the previous setting and restore it when dumpcap exits?

Preferably yes but I'm not sure it's possible as I think root privileges are required to write to the file and I 
think dumpcap
Drops those after starting to capture.

I've not looked at kernel sources, but isn't JITing done when attaching filter to socket?
And later this sysctl variable takes no effect?

so we could do:

  - enable JIT if not enabled
  - pcap_setfilter(pcap, program)
  - disable JIT if enabled
  - drop privilages

It's a little racy, but well...
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]