Date: Wed, 29 Jul 2020 21:45:22 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 248335] O_BENEATH leaks information about parent directories Message-ID: <bug-248335-227-O4NMNtotOg@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-248335-227@https.bugs.freebsd.org/bugzilla/> References: <bug-248335-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=3D248335 --- Comment #4 from Dan Gohman <sunfish@mozilla.com> --- Combined with O_BENEATH allowing `..` to temporarily leave the topping directory as long as it ends back within the topping directory, one could p= robe for any username under /home. The behaviour which would be best for the present WASI use case would be the behaviour of Linux's RESOLVE_BENEATH: Do not permit the path resolution to succeed if any component of the resolution is not a descendant of [the topping directory]. This causes absolute symbolic links (and absolute values of pathname) to be rejected. --=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-248335-227-O4NMNtotOg>