version 1.101, 2015/10/08 16:45:50 |
version 1.102, 2015/10/09 01:37:08 |
|
|
VERIFY |
VERIFY |
} verb = NONE; |
} verb = NONE; |
|
|
if (tame("stdio rpath wpath cpath tty", NULL) == -1) |
if (pledge("stdio rpath wpath cpath tty", NULL) == -1) |
err(1, "tame"); |
err(1, "pledge"); |
|
|
rounds = 42; |
rounds = 42; |
|
|
|
|
/* keep it all */ |
/* keep it all */ |
break; |
break; |
case CHECK: |
case CHECK: |
if (tame("stdio rpath", NULL) == -1) |
if (pledge("stdio rpath", NULL) == -1) |
err(1, "tame"); |
err(1, "pledge"); |
break; |
break; |
case VERIFY: |
case VERIFY: |
if (embedded && (!msgfile || strcmp(msgfile, "-") != 0)) { |
if (embedded && (!msgfile || strcmp(msgfile, "-") != 0)) { |
if (tame("stdio rpath wpath cpath", NULL) == -1) |
if (pledge("stdio rpath wpath cpath", NULL) == -1) |
err(1, "tame"); |
err(1, "pledge"); |
} else { |
} else { |
if (tame("stdio rpath", NULL) == -1) |
if (pledge("stdio rpath", NULL) == -1) |
err(1, "tame"); |
err(1, "pledge"); |
} |
} |
break; |
break; |
default: |
default: |
if (tame("stdio", NULL) == -1) |
if (pledge("stdio", NULL) == -1) |
err(1, "tame"); |
err(1, "pledge"); |
break; |
break; |
} |
} |
|
|