LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-02-2013, 05:02 AM   #1
tux_mind
LQ Newbie
 
Registered: Apr 2012
Distribution: gentoo
Posts: 9

Rep: Reputation: Disabled
sniffing on netlink sockets


hi all,
i'm hacking the android boot process.

as you known udev listen on netlink socket, where the kernel write the founded devices.

my target it's to sniff on that socket, waiting for a device.
i have to sniff and not to read, i need to known when that device it's the next that will be processed.

my final goal it's to replace the android /system block device with an hardlink.

how can i sniff on that socket ??

the socket it's created here: https://github.com/android/platform_.../uevent.c#L107

i think that i have to find the pid of android ueventd process and then retrieve it's opened sockets.
after that i have to sniff on it....but how?

thanks in advance.

PS:
i posted in linux and not in android because i think that this question it's more about linux than android...
i need to sniff on a kernel<->process socket....don't matter if i'm on android or whatever.
 
  


Reply

Tags
kernel, sniffing, socket


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Netlink Sockets yaplej Programming 2 05-09-2010 12:20 PM
Facing problem while using netlink sockets avyadavnitw Programming 0 07-08-2009 11:48 AM
Generic Netlink sockets krishna123 Linux - Networking 0 03-04-2009 01:30 AM
A question about netlink sockets alfrag Linux - Newbie 1 12-26-2008 08:48 AM
Netlink Sockets Problem gio123 Programming 3 01-23-2005 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration