Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict use of POSIX message queues #29

Open
gnoack opened this issue Apr 8, 2024 · 1 comment
Open

Restrict use of POSIX message queues #29

gnoack opened this issue Apr 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@gnoack
Copy link

gnoack commented Apr 8, 2024

Should we restrict the use of POSIX message queues?

https://man7.org/linux/man-pages/man7/mq_overview.7.html

According to mq_open(3), this is implemented based on a system call with the same name, but I could not find existing references to it in the other LSMs. (I wonder whether this is getting restricted in a different way?)

@l0kod
Copy link
Member

l0kod commented Apr 11, 2024

Should we restrict the use of POSIX message queues?

Yes!

According to mq_open(3), this is implemented based on a system call with the same name, but I could not find existing references to it in the other LSMs. (I wonder whether this is getting restricted in a different way?)

There is at least a call to security_ionde_permission() from prepare_open(). There are also security_msg_queue_*() hooks.

Related to #7, #8, and #30.

@l0kod l0kod added the enhancement New feature or request label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants