Home
last modified time | relevance | path

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

12345678910>>...24

/openbsd/regress/sys/kern/pledge/generic/
H A Dtests.out2 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 Dtest_tty.c43 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 Dkern_pledge.c601 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 DOpenBSD-Pledge.t35 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 Dtalk.c57 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 DMakefile85 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 Dsyscalls.c323 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 Dmtree.c143 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 Dpax.c279 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 Dfind.c160 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 Dfingerd.c113 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 Dsendrecvfd.c57 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 Dfrom.c77 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 Dmain.c168 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 Drdate.c140 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 Dunfdpass.c86 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 DMakefile9 run-no-child-pledge: ${PROG}
11 REGRESS_TARGETS+= run-no-child-pledge
H A Dexecpromise.c51 if (pledge(argv[0], "") == -1) in main()
75 if (pledge("stdio exec", argv[0]) == -1) in main()
/openbsd/libexec/ld.so/ldd/
H A Dldd.c51 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 Dsetup.c67 if (pledge("stdio rpath", NULL) == -1) in main()
78 if (pledge("stdio", NULL) == -1) in main()
/openbsd/usr.bin/nice/
H A Dnice.c53 if (pledge("stdio exec proc", NULL) == -1) in main()
90 if (pledge("stdio exec", NULL) == -1) in main()
/openbsd/usr.bin/unvis/
H A Dunvis.c46 if (pledge("stdio rpath", NULL) == -1) in main()
68 if (pledge("stdio", NULL) == -1) in main()
/openbsd/usr.sbin/kvm_mkdb/
H A Dkvm_mkdb.c73 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 Dmain.c99 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 Dchpass.c144 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()

12345678910>>...24