| /src/external/bsd/mdocml/dist/ |
| test-pledge.c | 6 return !!pledge("stdio", NULL);
|
| main.c | 170 if (pledge("stdio rpath wpath cpath tmppath tty proc exec", NULL) == -1) { 395 c = pledge("stdio rpath", NULL); 398 c = pledge("stdio rpath wpath cpath", NULL); 400 c = pledge("stdio rpath tmppath tty proc exec", NULL); 906 pledge("stdio rpath cpath", NULL) == -1) { 1356 if (pledge("stdio rpath tmppath tty proc", NULL) == -1) {
|
| configure | 318 runtest pledge PLEDGE || true
|
| mandocdb.c | 331 if (pledge("stdio rpath wpath cpath", NULL) == -1) { 332 warn("pledge"); 419 if (pledge("stdio rpath", NULL) == -1) { 420 warn("pledge");
|
| Makefile | 40 test-pledge.c \
|
| cgi.c | 1068 * The "rpath" pledge could be revoked after mparse_readfd() 1072 * pledge() calls in multiple low-level resp_*() functions. 1075 if (pledge("stdio rpath", NULL) == -1) { 1076 warn("pledge");
|
| /src/external/gpl3/gcc.old/dist/libphobos/libdruntime/core/sys/openbsd/ |
| unistd.d | 16 int pledge(const scope char*, const scope char*);
|
| /src/usr.bin/dc/ |
| main.c | 34 if (pledge("stdio rpath", NULL) == -1) 35 err(1, "pledge");
|
| dc.c | 96 if (pledge("stdio", NULL) == -1) 97 err(1, "pledge"); 116 if (pledge("stdio", NULL) == -1) 117 err(1, "pledge");
|
| /src/external/public-domain/xz/dist/src/xz/ |
| sandbox.c | 74 // pledge(2) // 83 if (pledge("stdio rpath wpath cpath fattr", "")) 95 if (pledge("stdio rpath", "")) 111 if (pledge("stdio", ""))
|
| /src/crypto/external/bsd/openssh/dist/ |
| ssh-keysign.c | 197 if (pledge("stdio rpath getpw dns id", NULL) != 0) 198 fatal("%s: pledge: %s", __progname, strerror(errno)); 230 if (pledge("stdio dns", NULL) != 0) 231 fatal("%s: pledge: %s", __progname, strerror(errno));
|
| clientloop.c | 940 /* Might be able to tighten pledge now that session is established */ 963 debug("pledge: network"); 964 if (pledge("stdio unix inet dns proc tty", NULL) == -1) 965 fatal_f("pledge(): %s", strerror(errno)); 968 debug("pledge: agent"); 969 if (pledge("stdio unix proc tty", NULL) == -1) 970 fatal_f("pledge(): %s", strerror(errno)); 972 debug("pledge: fork"); 973 if (pledge("stdio proc tty", NULL) == -1) 974 fatal_f("pledge(): %s", strerror(errno)) [all...] |
| sshd-auth.c | 216 if (pledge("stdio", NULL) == -1) 217 fatal_f("pledge()");
|
| mux.c | 2090 if (pledge("stdio proc tty", NULL) == -1) 2091 fatal_f("pledge(): %s", strerror(errno)); 2250 if (pledge("stdio proc tty", NULL) == -1) 2251 fatal_f("pledge(): %s", strerror(errno));
|
| scp.c | 610 /* Cannot pledge: -p allows setuid/setgid files... */ 613 if (pledge("stdio rpath wpath cpath fattr tty proc exec", 615 perror("pledge");
|
| ssh-agent.c | 2545 if (pledge("stdio rpath cpath wpath unix id proc exec", NULL) == -1) 2546 fatal("%s: pledge: %s", __progname, strerror(errno));
|
| /src/external/public-domain/xz/dist/src/xzdec/ |
| xzdec.c | 336 // pledge() was introduced in OpenBSD 5.9. 337 if (pledge("stdio", "")) 391 // OpenBSD's pledge(2) sandbox. 397 if (pledge("stdio rpath", "")) {
|
| /src/usr.bin/nc/ |
| netcat.c | 401 if (pledge("stdio rpath wpath cpath tmppath unix", NULL) == -1) 402 err(1, "pledge"); 405 if (pledge("stdio inet dns sendfd tty", NULL) == -1) 406 err(1, "pledge"); 407 } else if (pledge("stdio inet dns sendfd", NULL) == -1) 408 err(1, "pledge"); 410 if (pledge("stdio inet dns tty", NULL) == -1) 411 err(1, "pledge"); 413 if (pledge("stdio rpath inet dns", NULL) == -1) 414 err(1, "pledge"); [all...] |
| /src/external/bsd/tmux/dist/ |
| compat.h | 134 #define pledge(s, p) (0) macro
|
| client.c | 303 /* Save these before pledge(). */ 320 if (pledge( 323 fatal("pledge failed"); 642 if (pledge( 645 fatal("pledge failed");
|
| server.c | 205 if (pledge("stdio rpath wpath cpath fattr unix getpw recvfd proc exec " 207 fatal("pledge failed");
|
| tmux.c | 455 if (pledge("stdio rpath wpath cpath flock fattr unix getpw sendfd " 457 err(1, "pledge");
|
| /src/external/public-domain/sqlite/sqlite2mdoc/ |
| main.c | 1887 * We pledge(2) stdio if we're receiving from stdin and writing to 1895 if (pledge("stdio", NULL) == -1) 1898 if (pledge("stdio wpath cpath", NULL) == -1)
|
| /src/external/bsd/dhcpcd/dist/src/ |
| privsep.c | 166 * Linux:seccomp, FreeBSD:capsicum, OpenBSD:pledge 604 *sandbox = "pledge"; 608 return pledge(_pledge, NULL);
|
| /src/external/public-domain/xz/dist/ |
| configure | 1680 'pledge', or 'landlock'. The default is 'auto' which 5006 *-*-no | *-*-capsicum | *-*-pledge | *-*-landlock) 5013 as_fn_error $? "--enable-sandbox only accepts 'auto', 'no', 'capsicum', 'pledge', or 'landlock'." "$LINENO" 5 23774 # Pledge sandbox. So only Landlock will result in a build that cannot 23796 auto | pledge) : 23799 for ac_func in pledge 23801 ac_fn_c_check_func "$LINENO" "pledge" "ac_cv_func_pledge"
|