]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mqueuefs: Do not allow manipulation of the pseudo-dirents "." and ".."
authorcem <cem@FreeBSD.org>
Tue, 21 May 2019 21:26:14 +0000 (21:26 +0000)
committercem <cem@FreeBSD.org>
Tue, 21 May 2019 21:26:14 +0000 (21:26 +0000)
commitafcbe159e2bef4693678868ba92c6ab8e9051195
tree58c65dbe2f6bea34da1fc339f3bfa1020cb8358c
parent53fa0f12518c70664bac1050dc0aa8658aebd052
mqueuefs: Do not allow manipulation of the pseudo-dirents "." and ".."

"." and ".." names are not maintained in the mqueuefs dirent datastructure and
cannot be opened as mqueues.  Creating or removing them is invalid; return
EINVAL instead of crashing.

PR: 236836
Submitted by: Torbjørn Birch Moltu <t.b.moltu AT lyse.net>
Discussed with: jilles (earlier version)
sys/kern/uipc_mqueue.c