Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 2020 21:20:25 +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-GgMesgstIT@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 #3 from Konstantin Belousov <kib@FreeBSD.org> ---
But user could only guess-check only his own username, no ?

O_BENEATH usage was designed to confine existing non-capsicumized apps, whi=
ch
only need access to the known subset of the whole filesystem namespace.=20
Typical example is compiler which only needs to access source file, hierarc=
hies
of headers, and write output file.  There, we can pre-allocate dirfds for
/usr/include and /usr/local/include.  On the other hand, build systems often
use relative paths with dotdots to express target directory as relative to
source, so dotdot support was needed for intended application of our O_BENE=
ATH.=20

Anyway, if you can provide somewhat more precise explanation of the desired
behavior, and perhaps give the name for the new O_ flag, I will implement i=
t as
well.

--=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-GgMesgstIT>