Home
last modified time | relevance | path

Searched refs:pledge (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/contrib/xz/src/xz/
H A Dsandbox.c83 if (pledge("stdio rpath wpath cpath fattr", "")) in sandbox_init()
95 if (pledge("stdio rpath", "")) in sandbox_enable_read_only()
111 if (pledge("stdio", "")) in sandbox_enable_strict_if_allowed()
/freebsd/contrib/mandoc/
H A Dtest-pledge.c6 return !!pledge("stdio", NULL); in main()
H A Dmain.c172 if (pledge("stdio rpath wpath cpath tmppath tty proc exec", NULL) == -1) { in main()
403 c = pledge("stdio rpath", NULL); in main()
406 c = pledge("stdio rpath wpath cpath", NULL); in main()
408 c = pledge("stdio rpath tmppath tty proc exec", NULL); in main()
921 pledge("stdio rpath cpath", NULL) == -1) { in process_onefile()
1363 if (pledge("stdio rpath tmppath tty proc", NULL) == -1) { in spawn_pager()
H A Dconfigure320 runtest pledge PLEDGE || true
H A DMakefile40 test-pledge.c \
H A Dmandocdb.c332 if (pledge("stdio rpath wpath cpath", NULL) == -1) { in mandocdb()
420 if (pledge("stdio rpath", NULL) == -1) { in mandocdb()
H A Dcgi.c1106 if (pledge("stdio rpath", NULL) == -1) { in main()
/freebsd/contrib/xz/src/xzdec/
H A Dxzdec.c337 if (pledge("stdio", "")) in sandbox_enter()
397 if (pledge("stdio rpath", "")) { in main()
/freebsd/crypto/openssh/
H A Dssh-keysign.c195 if (pledge("stdio rpath getpw dns id", NULL) != 0) in main()
229 if (pledge("stdio dns", NULL) != 0) in main()
H A Dclientloop.c961 if (pledge("stdio unix inet dns proc tty", NULL) == -1) in client_repledge()
966 if (pledge(PLEDGE_EXTRA_INET "stdio unix proc tty", NULL) == -1) in client_repledge()
970 if (pledge(PLEDGE_EXTRA_INET "stdio proc tty", NULL) == -1) in client_repledge()
1472 if (pledge("stdio rpath wpath cpath unix inet dns recvfd sendfd proc exec id tty", in client_loop()
1478 if (pledge("stdio rpath wpath cpath unix inet dns proc exec tty", in client_loop()
1484 if (pledge("stdio rpath wpath cpath unix inet dns proc tty", in client_loop()
1491 if (pledge("stdio cpath unix inet dns proc tty", NULL) == -1) in client_loop()
1496 if (pledge("stdio unix inet dns proc tty", NULL) == -1) in client_loop()
H A Dsshd-auth.c211 if (pledge("stdio", NULL) == -1) in privsep_child_demote()
H A Dmux.c2093 if (pledge("stdio proc tty", NULL) == -1) in mux_client_request_session()
2252 if (pledge("stdio proc tty", NULL) == -1) in mux_client_request_stdio_fwd()
H A Dssh_namespace.h535 #define pledge Fssh_pledge macro
H A Dconfigure.ac1192 AC_MSG_CHECKING([whether pledge(2) allows IP_TOS])
1204 if (pledge("stdio", NULL) == -1)
1205 err(1, "pledge");
1484 dnl Finish up special pledge(2) handling from above.
1489 [need inet in pledge for setsockopt IP_TOS])
2227 pledge \
H A DChangeLog2247 upstream: repair ssh-keysign after pledge changes; spotted/tested
2323 opens /dev/null O_RDWR after a pledge without "wpath". This is allowed in
2324 current pledge because "/dev/null" is implicitly allowed to be opened even
2326 pledge made at the very beginning, to satisfy libc requirements. We've
2333 ssh-agent is ready for the future pledge change. ok djm dtucker
4521 upstream: don't try to pledge() the client if a PKCS11Provider is
5221 Update pledge() interface to match current OpenBSD.
6146 Fix pledge(2) special casing
6176 check for setsockopt IP_TOS in OpenBSD pledge
6178 OpenBSD has recently relaxed the pledge(2) sandbox to allow some
[all …]
H A Dscp.c640 if (pledge("stdio rpath wpath cpath fattr tty proc exec", in main()
/freebsd/contrib/pkgconf/libpkgconf/
H A Dbsdstubs.c44 # define pkgconf_pledge_impl pledge
H A Dconfig.h.meson21 /* Define to 1 if you have the `pledge' function. */
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-misc.h159 int pledge(const char *promises, const char *execpromises);
H A Dbsd-misc.c407 pledge(const char *promises, const char *execpromises) in pledge() function
/freebsd/secure/lib/libssh/
H A DMakefile40 sftp-realpath.c platform-pledge.c platform-tracing.c platform-misc.c \
/freebsd/contrib/pkgconf/
H A Dconfigure.ac31 AC_CHECK_DECLS([pledge, unveil], [], [], [[#include <unistd.h>]])
H A Dmeson.build73 ['pledge', 'unistd.h'],
/freebsd/usr.bin/diff/
H A Ddiff.c417 if (pledge("stdio rpath tmppath", NULL) == -1) in main()
/freebsd/contrib/bc/src/
H A Dvm.c919 int r = pledge(promises, execpromises);

12