Skip to content

Partial replace kernel module with userspace LD_PRELOAD hook#41

Open
VBrochard wants to merge 8 commits into
DTN-MTP:mainfrom
BastienDague:develop
Open

Partial replace kernel module with userspace LD_PRELOAD hook#41
VBrochard wants to merge 8 commits into
DTN-MTP:mainfrom
BastienDague:develop

Conversation

@VBrochard

Copy link
Copy Markdown

Changes :

  • IPC protocol between hook and daemon
  • LD_PRELOAD hook intercepting socket(), bind(), sendto(), close()
  • Userspace BP file descriptor table
  • Unix socket listener replacing Netlink
  • Removed Netlink, added unix_ipc_init()
  • Replaced bp_genl_enqueue_bundle() with unix_ipc_send_bundle()
  • Removed root check and Netlink initialization
  • Removed Netlink definitions
  • Replaced .ko target with .so target, removed insmod

Not yet implemented :

  • recvfrom() : interception for bundle reception
  • destroy_bundle : after reception to free ION memory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants