Example: ping.c ... getopt parsing ... socket setup ... many setsockopt calls + if (options & F_NUMERIC) { + if (tame("stdio inet", NULL) == -1) + err(1, "tame"); + } else { + if (tame("stdio inet dns", NULL) == -1) + err(1, "tame"); + } /* Unable to open/create in filesystem */