Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Mar 2019 16:18:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 236836] Kernel panic from calling mq_open("/.", ...) as root
Message-ID:  <bug-236836-227-N3bkmRzpC7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-236836-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-236836-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236836

--- Comment #5 from Torbj=C3=B8rn Birch Moltu <t.b.moltu@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?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236836-227-N3bkmRzpC7>