HomeFreeBSD

iconv(1): Capsicumify

Description

iconv(1): Capsicumify

This takes the usual shortcut of only sandboxing the last input file.
It's a first cut and this program will be easy to adapt to sandbox all
files in the future.

iconv(1) has been changed to only open the conversion descriptor once,
since the input and output encodings are fixed over all inputs.
Instead, the descriptor is simply reset after each use (documented in
iconv(3) API).

Reviewed by: no one, unfortunately
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D7917

Details

Provenance
cemAuthored on
Differential Revision
D7917: iconv(1): Capsicumify
Parents
rS310143: hexdump(1): First cut capsicumification
Branches
Unknown
Tags
Unknown