Is there a way to share memory between unrelated processes in Linux?

Follow

@gudenau
it depends, I think, on how much these unrelated processes are willing to work together.

If you control one process and not the other, you can brute-force something with root privs and ptrace or reading and writing memory directly.

If you control both processes, you may be able to set something up with shmget or shm_open, which both return fds that can be passed to mmap, etc.

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!