[Bug 236836] Kernel panic from calling mq_open("/.", ...) as root

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Mar 31 16:18:59 UTC 2019


--- Comment #5 from Torbjørn Birch Moltu <t.b.moltu at lyse.net> ---
My reasoning for choosing EACCES is that it's what unprivileged processes
already get, and Linux also returns this error. I agree that EINVAL is more
accurate though, and compatibility shouldn't matter in this case.

I'm a bit surprised that the approach in my patch is the proper solution.
Wouldn't it be better to check the type of node before opening or unlinking it?

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list