Skip to content

Get PPID from Executor.Exec call #133

@mikelsr

Description

@mikelsr

An efficient executor implementation requires some sort of process tree. I have implemented the tree in this branch, but populating it is another issue.

@lthibault @aratz-lasa or anyone else, atm I can't figure out a way of implicitly discerning who is making the call and deducing the callers PID (if it has one) from there.

As an alternate path I though about adding a ppid parameter to the exec call, where ppid is the pid of the process making the call. Each process would know its own pid. This means the ppid is easily forge-able, and processes can pass themselves as other processes, even pid=0 which is the PID reserved for the executor.

The solution might be for both executor and processes to have a prv/pub key pair, so the process calling exec signs the ppid with its private key and encrypts it with the executor's public key.

Would you mind giving it a thought to see if we can come up with a better approach? If not, do you know of any lightweight encrypting and signing protocols? Thank you in advance, look forward to hearing your opinions! Ping me in Matrix for quick conversations :)

Metadata

Metadata

Assignees

Labels

PerformanceSomething isn't fast enoughhelp wantedExtra attention is neededsecurityHas security implications

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions