Skip to contentSkip to conversation

suggestion: msgctl(IPC_RMID) req CAP_IPC_OWNER instead of CAP_SYS_ADMIN

DISCUSSION [email protected] 1 participant 1 message Jan 2, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

We have a service daemon that must on occasion clean up orphaned SVR4/POSIX message queues left over by dead client processes.

The service daemon runs with least privileges, and it receives a small set of capabilities that its job demands.

However I was surprised to see that CAP_SYS_ADMIN is needed when using IPC_RMID to remove message queues owned by other user IDs. This is a powerful and dangerous privilege and I dislike assigning it to the daemon. Seems to me that CAP_IPC_OWNER is a better fit for this function.

This is just a suggestion. Please respond with my e-mail CCed as I am not a list subscriber.

Regards