]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
capsicum_helpers: Add LOOKUP flag
authorConrad Meyer <cem@FreeBSD.org>
Fri, 16 Dec 2016 01:37:44 +0000 (01:37 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Fri, 16 Dec 2016 01:37:44 +0000 (01:37 +0000)
commit6a1c4d1efcf53060fcb982478a6a2f330573c725
tree61c25f615feeabe21f263aa4bf1e29a3c98869b7
parent6e183b4b25eabca8c696162fb4411b03d8b34f99
capsicum_helpers: Add LOOKUP flag

Add a helper routine for opening a directory that is restricted to being
used for opening relative files as stdio streams.

I think this will really help basic adaptation of multi-file programs to
Capsicum. Rather than having each program initialize a rights object and
ioctl/fcntl arrays for their root fd for relative opens, consolidate in the
logical place.

Reviewed by: oshogbo@
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D8743
lib/libcapsicum/capsicum_helpers.h