Capsicumize uuidgen.
This commit is contained in:
parent
9e7a370bd2
commit
0a786922bd
@ -28,6 +28,9 @@
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/capsicum.h>
|
||||
|
||||
#include <capsicum_helpers.h>
|
||||
#include <err.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -80,6 +83,12 @@ main(int argc, char *argv[])
|
||||
if (argc)
|
||||
usage();
|
||||
|
||||
caph_cache_catpages();
|
||||
if (caph_limit_stdio() < 0)
|
||||
err(1, "Unable to limit stdio");
|
||||
if (cap_enter() < 0 && errno != ENOSYS)
|
||||
err(1, "Unable to enter capability mode");
|
||||
|
||||
if (count == -1)
|
||||
count = 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user