/openbsd/regress/sys/kern/pledge/generic/ |
H A D | tests.out | 2 test(test_nop): pledge=("",NULL) status=0 exit=0 4 test(test_inet): pledge=("abort",NULL) status=5632 exit=22 (errno: "Invalid argument") 7 test(test_inet): pledge=("stdio inet",NULL) status=0 exit=0 9 test(test_kill): pledge=("stdio",NULL) status=2 signal=2 10 test(test_rpath): pledge=("stdio rpath",NULL) status=0 exit=0 11 test(test_wpath): pledge=("stdio wpath",NULL) status=0 exit=0 12 test(test_cpath): pledge=("cpath",NULL) status=0 exit=0 13 test(test_pledge): pledge=("stdio rpath",NULL) status=0 exit=0 14 test(test_pledge): pledge=("stdio rpath wpath",NULL) status=0 exit=0 17 test(test_request_stdio): pledge=skip status=0 exit=0 [all …]
|
H A D | test_tty.c | 43 if (pledge("stdio tty proc", NULL) == -1) in test_request_tty() 52 if (pledge("stdio tty", NULL) == -1) in test_request_tty()
|
/openbsd/sys/kern/ |
H A D | kern_pledge.c | 601 uint64_t pledge; in pledge_namei() local 619 (pledge & PLEDGE_EXEC)) in pledge_namei() 745 if (ni->ni_pledge & ~pledge) in pledge_namei() 813 uint64_t pledge; in pledge_sysctl() local 874 if ((pledge & PLEDGE_PS)) { in pledge_sysctl() 1062 uint64_t pledge; in pledge_ioctl() local 1097 if ((pledge & PLEDGE_BPF)) { in pledge_ioctl() 1127 if ((pledge & PLEDGE_DRM)) { in pledge_ioctl() 1227 if ((pledge & PLEDGE_PF)) { in pledge_ioctl() 1358 uint64_t pledge; in pledge_sockopt() local [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/OpenBSD-Pledge/t/ |
H A D | OpenBSD-Pledge.t | 35 foreach my $pledge ( q{}, $name ) { 42 OpenBSD::Pledge::_pledge( "stdio $pledge" ) 50 if ($pledge) { 51 $ok += is $?, 0, "[$name] OK with pledge"; 55 "[$name] ABRT without pledge"; 73 OpenBSD::Pledge::pledge(qw( foo bar foo baz )); 74 OpenBSD::Pledge::pledge( qw( foo qux baz quux ));
|
/openbsd/usr.bin/talk/ |
H A D | talk.c | 57 if (pledge("stdio rpath inet dns getpw tty", NULL) == -1) in main() 71 if (pledge("stdio tty", NULL) == -1) in main() 74 if (pledge("stdio inet tty", NULL) == -1) in main()
|
/openbsd/regress/usr.bin/lastcomm/ |
H A D | Makefile | 85 REGRESS_TARGETS += run-pledge 86 run-pledge: 88 cp -f /usr/bin/perl regress-pledge 89 ulimit -c 0; ! ./regress-pledge -MOpenBSD::Pledge -e\ 91 lastcomm regress-pledge | grep -q ' -XP '
|
/openbsd/regress/sys/kern/unveil/ |
H A D | syscalls.c | 323 UV_SHOULD_SUCCEED((pledge("stdio rpath cpath wpath", NULL) == -1), "pledge"); in test_drounveil() 405 UV_SHOULD_SUCCEED((pledge("stdio fattr rpath", NULL) == -1), "pledge"); in test_chdir() 483 UV_SHOULD_SUCCEED((pledge("stdio fattr rpath wpath cpath", NULL) == -1), in test_rename() 518 UV_SHOULD_SUCCEED((pledge("stdio fattr rpath", NULL) == -1), "pledge"); in test_access() 537 UV_SHOULD_SUCCEED((pledge("stdio fattr rpath", NULL) == -1), "pledge"); in test_chflags() 553 UV_SHOULD_SUCCEED((pledge("stdio fattr rpath", NULL) == -1), "pledge"); in test_stat() 573 UV_SHOULD_SUCCEED((pledge("stdio fattr rpath", NULL) == -1), "pledge"); in test_stat2() 598 UV_SHOULD_SUCCEED((pledge("stdio fattr rpath", NULL) == -1), "pledge"); in test_statfs() 705 UV_SHOULD_SUCCEED((pledge("unveil stdio fattr exec", NULL) == -1), "pledge"); in test_exec() 772 UV_SHOULD_SUCCEED((pledge("stdio tmppath", NULL) == -1), "pledge"); in test_bypassunveil() [all …]
|
/openbsd/usr.sbin/mtree/ |
H A D | mtree.c | 143 if (pledge("stdio rpath cpath getpw fattr", NULL) == -1) in main() 146 if (pledge("stdio rpath cpath getpw", NULL) == -1) in main() 149 if (pledge("stdio rpath getpw fattr", NULL) == -1) in main() 152 if (pledge("stdio rpath getpw", NULL) == -1) in main()
|
/openbsd/bin/pax/ |
H A D | pax.c | 279 if (pledge("stdio rpath getpw tape", in main() 284 if (pledge("stdio rpath wpath getpw tape", in main() 288 if (pledge("stdio rpath wpath cpath fattr dpath getpw tape", in main() 294 if (pledge("stdio rpath getpw proc exec tape", in main() 299 if (pledge("stdio rpath wpath cpath fattr dpath getpw proc exec tape", in main()
|
/openbsd/usr.bin/find/ |
H A D | find.c | 160 if (pledge("stdio rpath cpath getpw", NULL) == -1) in find_execute() 163 if (pledge("stdio rpath getpw", NULL) == -1) in find_execute() 168 if (pledge("stdio rpath cpath getpw proc exec", NULL) in find_execute() 172 if (pledge("stdio rpath getpw proc exec", NULL) == -1) in find_execute()
|
/openbsd/libexec/fingerd/ |
H A D | fingerd.c | 113 if (pledge("stdio inet dns proc exec", NULL) == -1) in main() 126 if (pledge("stdio dns proc exec", NULL) == -1) in main() 136 if (pledge("stdio proc exec", NULL) == -1) in main() 216 if (pledge("stdio", NULL) == -1) in main()
|
/openbsd/regress/sys/kern/pledge/sendrecvfd/ |
H A D | sendrecvfd.c | 57 if (pledge("stdio recvfd", NULL) == -1) in do_receiver() 62 if (pledge("stdio", NULL) == -1) in do_receiver() 110 if (pledge("stdio sendfd", NULL) == -1) in do_sender() 115 if (pledge("stdio", NULL) == -1) in do_sender()
|
/openbsd/usr.bin/from/ |
H A D | from.c | 77 if (pledge("stdio unveil rpath getpw", NULL) == -1) in main() 84 if (pledge("stdio rpath", NULL) == -1) in main() 93 if (pledge("stdio", NULL) == -1) in main()
|
/openbsd/usr.bin/sed/ |
H A D | main.c | 168 if (pledge("stdio rpath wpath cpath fattr chown", NULL) == -1) in main() 169 error(FATAL, "pledge: %s", strerror(errno)); in main() 171 if (pledge("stdio rpath wpath cpath", NULL) == -1) in main() 172 error(FATAL, "pledge: %s", strerror(errno)); in main() 186 if (pledge("stdio rpath", NULL) == -1) in main() 187 error(FATAL, "pledge: %s", strerror(errno)); in main() 193 if (pledge("stdio", NULL) == -1) in main() 194 error(FATAL, "pledge: %s", strerror(errno)); in main() 196 if (pledge("stdio rpath", NULL) == -1) in main() 197 error(FATAL, "pledge in main() [all...] |
/openbsd/usr.sbin/rdate/ |
H A D | rdate.c | 140 if (pledge("stdio inet dns", NULL) == -1) in main() 164 if (pledge("stdio rpath wpath settime", NULL) == -1) in main() 194 if (pledge("stdio rpath", NULL) == -1) in main()
|
/openbsd/regress/sys/kern/pledge/ioctl/ |
H A D | unfdpass.c | 86 if (pledge("stdio rpath wpath sendfd recvfd proc pf", NULL) in main() 132 if (pledge("stdio recvfd pf", NULL) == -1) in main() 231 if (pledge("stdio sendfd", NULL) == -1) in child()
|
/openbsd/regress/sys/kern/pledge/execpromise/ |
H A D | Makefile | 9 run-no-child-pledge: ${PROG} 11 REGRESS_TARGETS+= run-no-child-pledge
|
H A D | execpromise.c | 51 if (pledge(argv[0], "") == -1) in main() 75 if (pledge("stdio exec", argv[0]) == -1) in main()
|
/openbsd/libexec/ld.so/ldd/ |
H A D | ldd.c | 51 if (pledge("stdio rpath proc exec prot_exec", NULL) == -1) in main() 169 if (pledge("stdio rpath prot_exec", NULL) == -1) in doit() 186 if (pledge("stdio rpath exec", "stdio rpath") == -1) in doit()
|
/openbsd/games/adventure/ |
H A D | setup.c | 67 if (pledge("stdio rpath", NULL) == -1) in main() 78 if (pledge("stdio", NULL) == -1) in main()
|
/openbsd/usr.bin/nice/ |
H A D | nice.c | 53 if (pledge("stdio exec proc", NULL) == -1) in main() 90 if (pledge("stdio exec", NULL) == -1) in main()
|
/openbsd/usr.bin/unvis/ |
H A D | unvis.c | 46 if (pledge("stdio rpath", NULL) == -1) in main() 68 if (pledge("stdio", NULL) == -1) in main()
|
/openbsd/usr.sbin/kvm_mkdb/ |
H A D | kvm_mkdb.c | 73 if (pledge("stdio rpath wpath cpath fattr getpw flock id unveil", NULL) == -1) in main() 92 if (pledge("stdio rpath wpath cpath fattr flock unveil", NULL) == -1) in main() 129 if (pledge("stdio rpath wpath cpath fattr flock", NULL) == -1) in main()
|
/openbsd/games/backgammon/backgammon/ |
H A D | main.c | 99 if (pledge("stdio rpath wpath cpath tty", NULL) == -1) in main() 107 if (pledge("stdio rpath wpath cpath tty exec", NULL) == -1) in main() 128 if (pledge("stdio rpath wpath cpath tty", NULL) == -1) in main()
|
/openbsd/usr.bin/chpass/ |
H A D | chpass.c | 144 if (pledge("stdio rpath wpath cpath id proc exec unveil", in main() 168 if (pledge("stdio rpath wpath cpath id proc exec unveil", in main() 191 if (pledge("stdio rpath wpath cpath proc exec", NULL) == -1) in main()
|