/[base]
ViewVC logotype

Revision 344551


Jump to revision: Previous Next
Author: markj
Date: Mon Feb 25 19:47:27 2019 UTC (5 years, 4 months ago)
Changed paths: 4
Log Message:
Fix handling of rights on stdio streams, take two.

Split the rights-limiting code into two cases: if one of the input
files isn't a regular file, use caph_limit_stream(3) instead of
open-coding the same logic; if both input files are regular files,
and the initial attempts to map them succeed, we limit the rights on
those files to CAP_MMAP_R.

Add a regression test for PR 234885.

PR:		234885
Reviewed by:	delphij
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D19216


Changed paths

Path Details
Directoryhead/usr.bin/cmp/cmp.c modified , text changed
Directoryhead/usr.bin/cmp/regular.c modified , text changed
Directoryhead/usr.bin/cmp/special.c modified , text changed
Directoryhead/usr.bin/cmp/tests/cmp_test2.sh modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27