Skip to contentSkip to conversation

Secondary process access control mechanism

DISCUSSION Morten Brørup 3 participants 3 messages Jul 9, 2025 – Jul 14, 2025

lore
Share & tools
lore
#0 lore raw

Are there any access control mechanisms to govern what a secondary process can do to a primary process?

Let's say I'm running a primary process, and want to allow only authorized secondary processes to attach to it. No unauthorized secondary processes should be able to attach to it.

I assume there is no fine grained control over which features various secondary processes can access.

Med venlig hilsen / Kind regards,
-Morten Brørup

#1 lore raw
Quoted 10 lines · On Wed, 9 Jul 2025 20:02:30 +0200 Morten Brørup <[email protected]>…

Are there any access control mechanisms to govern what a secondary process can do to a primary process?

Let's say I'm running a primary process, and want to allow only authorized secondary processes to attach to it. No unauthorized secondary processes should be able to attach to it.

I assume there is no fine grained control over which features various secondary processes can access.

Med venlig hilsen / Kind regards,
-Morten Brørup

No DPDK does not have any access control mechanism itself. But it the wrong place to do it. What you want to protect is access to hugepages and device memory as well as the unix domain socket channel to the primary process. For the typical case where both run as root, there really isn't anything that can be done. But if you want security, the DPDK primary process should be running in a container with only certain privledges granted. And the container isolation would protect it.

#2 lore raw
In reply to Morten Brørup
Quoted 6 lines · Morten Brørup

Are there any access control mechanisms to govern what a secondary process can do to a primary process?

Let's say I'm running a primary process, and want to allow only authorized secondary processes to attach to it. No unauthorized secondary processes should be able to attach to it.

I assume there is no fine grained control over which features various secondary processes can access.

Nope, no fine grained control. The only control that we have is that governed by the unix access permissions on the process and the runtime directory. Any secondary process run by the user of the primary process will have full access to the primary process. AFAIK: other users on the system should not have any access, unless permissions are set appropriately by the primary user. [However, I suspect this is not something we ever test!]

/Bruce