/freebsd-10.1-release/tools/regression/priv/ |
H A D | priv_vfs_chflags.c | 70 priv_vfs_chflags_froot_setup(int asroot, int injail, struct test *test) argument 81 struct test *test) 92 struct test *test) 103 struct test *test) 127 struct test *test) 80 priv_vfs_chflags_fowner_setup(int asroot, int injail, struct test *test) argument 91 priv_vfs_chflags_fother_setup(int asroot, int injail, struct test *test) argument 102 priv_vfs_chflags_froot_uflags(int asroot, int injail, struct test *test) argument 126 priv_vfs_chflags_fowner_uflags(int asroot, int injail, struct test *test) argument 150 priv_vfs_chflags_fother_uflags(int asroot, int injail, struct test *test) argument 174 priv_vfs_chflags_froot_sflags(int asroot, int injail, struct test *test) argument 198 priv_vfs_chflags_fowner_sflags(int asroot, int injail, struct test *test) argument 222 priv_vfs_chflags_fother_sflags(int asroot, int injail, struct test *test) argument 246 priv_vfs_chflags_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vfs_utimes.c | 54 priv_vfs_utimes_froot_setup(int asroot, int injail, struct test *test) argument 64 priv_vfs_utimes_fowner_setup(int asroot, int injail, struct test *test) argument 74 priv_vfs_utimes_fother_setup(int asroot, int injail, struct test *test) argument 78 * In the 'other' case, we make the file writable by the test user so 90 priv_vfs_utimes_froot(int asroot, int injail, struct test *test) argument 113 priv_vfs_utimes_froot_null(int asroot, int injail, struct test *tes argument 133 priv_vfs_utimes_fowner(int asroot, int injail, struct test *test) argument 154 priv_vfs_utimes_fowner_null(int asroot, int injail, struct test *test) argument 174 priv_vfs_utimes_fother(int asroot, int injail, struct test *test) argument 197 priv_vfs_utimes_fother_null(int asroot, int injail, struct test *test) argument 217 priv_vfs_utimes_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_msgbuf.c | 56 priv_msgbuf_privonly_setup(int asroot, int injail, struct test *test) argument 81 priv_msgbuf_privonly(int asroot, int injail, struct test *test) argument 101 priv_msgbuf_unprivok_setup(int asroot, int injail, struct test *test) argument 126 priv_msgbuf_unprivok(int asroot, int injail, struct test *test) argument 143 priv_msgbuf_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_proc_setrlimit.c | 35 * requires privilege. We test three cases: 57 priv_proc_setrlimit_setup(int asroot, int injail, struct test *test) argument 86 priv_proc_setrlimit_raisemax(int asroot, int injail, struct test *test) argument 114 struct test *test) 141 priv_proc_setrlimit_raisecur(int asroot, int injail, struct test *test) argument 164 priv_proc_setrlimit_cleanup(int asroot, int injail, struct test *tes argument 113 priv_proc_setrlimit_raisecur_nopriv(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vfs_clearsugid.c | 92 priv_vfs_clearsugid_setup(int asroot, int injail, struct test *test) argument 102 priv_vfs_clearsugid_chgrp(int asroot, int injail, struct test *test) argument 113 #define EA_DATA "test" 117 priv_vfs_clearsugid_extattr(int asroot, int injail, struct test *test) argument 129 priv_vfs_clearsugid_write(int asroot, int injail, struct test *test) argument 145 priv_vfs_clearsugid_cleanup(int asroot, int injail, struct test *tes argument [all...] |
H A D | main.c | 34 * Privilege test framework. Each test is encapsulated on a .c file 35 * exporting a function that implements the test. Each test is run from its 56 * If true, some test or preparatory step failed along the execution of this 66 * Registration table of privilege tests. Each test registers a name, a test 67 * function, and a cleanup function to run after the test has completed, 70 static struct test tests[] = { 364 static int tests_count = sizeof(tests) / sizeof(struct test); 367 expect(const char *test, int error, int expected_error, int expected_errno) argument 387 setup_dir(const char *test, char *dpathp, uid_t uid, gid_t gid, mode_t mode) argument 403 setup_file(const char *test, char *fpathp, uid_t uid, gid_t gid, mode_t mode) argument 426 set_creds(const char *test, uid_t uid, gid_t gid) argument 439 enter_jail(const char *test) argument 464 run_child(struct test *test, int asroot, int injail) argument 483 run(struct test *test, int asroot, int injail) argument [all...] |
H A D | priv_sched_rtprio.c | 42 * This requires a test process and a target (dummy) process running with 43 * various uids. This test is based on the code in the setpriority() test. 62 priv_sched_rtprio_setup(int asroot, int injail, struct test *test) argument 71 if (test->t_test_func == priv_sched_rtprio_aproc_normal || 72 test->t_test_func == priv_sched_rtprio_aproc_idle || 73 test->t_test_func == priv_sched_rtprio_aproc_realtime) { 77 if (test->t_test_func == priv_sched_rtprio_myproc_normal || 78 test 105 priv_sched_rtprio_curproc_normal(int asroot, int injail, struct test *test) argument 128 priv_sched_rtprio_curproc_idle(int asroot, int injail, struct test *test) argument 151 priv_sched_rtprio_curproc_realtime(int asroot, int injail, struct test *test) argument 174 priv_sched_rtprio_myproc_normal(int asroot, int injail, struct test *test) argument 197 priv_sched_rtprio_myproc_idle(int asroot, int injail, struct test *test) argument 220 priv_sched_rtprio_myproc_realtime(int asroot, int injail, struct test *test) argument 243 priv_sched_rtprio_aproc_normal(int asroot, int injail, struct test *test) argument 266 priv_sched_rtprio_aproc_idle(int asroot, int injail, struct test *test) argument 289 priv_sched_rtprio_aproc_realtime(int asroot, int injail, struct test *test) argument 312 priv_sched_rtprio_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_io.c | 37 * good for run-time security, but is necessary to test the checks properly. 58 priv_io_setup(int asroot, int asjail, struct test *test) argument 81 priv_io(int asroot, int injail, struct test *test) argument 103 priv_io_cleanup(int asroot, int asjail, struct test *test) argument
|
H A D | priv_vfs_extattr_system.c | 49 #define EA_NAME "test" 50 #define EA_DATA "test" 57 priv_vfs_extattr_system_setup(int asroot, int injail, struct test *test) argument 71 priv_vfs_extattr_system(int asroot, int injail, struct test *test) argument 99 priv_vfs_extattr_system_cleanup(int asroot, int injail, struct test *test) argument
|
H A D | priv_vfs_fhopen.c | 53 priv_vfs_fhopen_setup(int asroot, int injail, struct test *test) argument 67 priv_vfs_fhopen(int asroot, int injail, struct test *test) argument 90 priv_vfs_fhopen_cleanup(int asroot, int injail, struct test *test) argument
|
H A D | priv_vfs_generation.c | 56 priv_vfs_generation_setup(int asroot, int injail, struct test *test) argument 85 priv_vfs_generation(int asroot, int injail, struct test *test) argument 113 priv_vfs_generation_cleanup(int asroot, int injail, struct test *test) argument
|
/freebsd-10.1-release/tools/regression/sockets/listen_backlog/ |
H A D | listen_backlog.c | 40 * This regression test is intended to validate that the backlog parameter 45 * Future things to test: 54 * - That we also test SO_LISTENQLEN and SO_LISTENINCQLEN. 70 const char *test, const char *testfunc) 78 "SOL_SOCKET, SO_LISTENQLIMIT)", testclass, test, 86 testclass, test, testfunc, len); 103 const char *test) 110 test, domainstring, typestring); 115 if (socket_get_backlog(sock, &backlog_retrieved, testclass, test, 123 testclass, test, backlog_retrieve 69 socket_get_backlog(int sock, int *backlogp, const char *testclass, const char *test, const char *testfunc) argument 100 socket_listen(int domain, int type, int protocol, int backlog, int create_backlog_assertion, int listen_backlog_assertion, int *sockp, const char *domainstring, const char *typestring, const char *testclass, const char *test) argument 221 socket_listen_update(int domain, int type, int protocol, int backlog, int update_backlog, int listen_backlog_assertion, int update_backlog_assertion, int *sockp, const char *domainstring, const char *typestring, const char *testclass, const char *test) argument [all...] |
/freebsd-10.1-release/contrib/ofed/libsdp/src/ |
H A D | socket.c | 97 char *test; local 112 for (test = *tenviron; NULL != test; test = *++tenviron) { 116 while (*inet == *test && '\0' != *inet) { 119 test++; 122 if ('\0' == *inet && '=' == *test) {
|
/freebsd-10.1-release/contrib/libarchive/libarchive/test/ |
H A D | test_archive_read_set_filter_option.c | 26 #include "test.h" 33 test(int pristine) function 53 test(1); 54 test(0);
|
H A D | test_archive_write_set_filter_option.c | 26 #include "test.h" 33 test(int pristine) function 53 test(1); 54 test(0);
|
/freebsd-10.1-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/sdt/ |
H A D | tst.sdtargs.d | 42 printf("sdt:::test failed.\n"); 46 test:::sdttest 57 test:::sdttest 65 trace("test timed out");
|
/freebsd-10.1-release/tools/regression/lib/libc/net/ |
H A D | test-eui64_aton.c | 36 #include "test-eui64.h" 43 static int test = 0; local 45 test++; 49 printf("not ok %d - : eui64_aton(%s)\n", test, str); 54 printf("ok %d - eui64_aton(%s)\n", test, str);
|
/freebsd-10.1-release/sys/dev/aic7xxx/ |
H A D | aic79xx.seq | 52 test SEQINTCODE, 0xFF jz idle_loop; 65 test ERROR, 0xFF jz no_error_set; 70 test SCSISEQ0, ENSELO|ENARBO jnz idle_loop_checkbus; 71 test SEQ_FLAGS2, SELECTOUT_QFROZEN jz check_waiting_list; 82 test SSTAT0, SELDO|SELINGO jnz idle_loop_checkbus; 109 * ENSELO is cleared by a SELDO, so we must test for SELDO 112 test SSTAT0, SELDO jnz select_out; 115 test SSTAT0, SELDO jnz select_out; 117 test SSTAT0, SELDI jnz select_in; 118 test SCSIPHAS [all...] |
/freebsd-10.1-release/crypto/openssl/crypto/sha/ |
H A D | sha1test.c | 82 static char *test[] = { variable 116 ebcdic2ascii(test[0], test[0], strlen(test[0])); 117 ebcdic2ascii(test[1], test[1], strlen(test[1])); 121 P = test; 132 printf("test %d ok\n", i); 154 printf("test [all...] |
H A D | shatest.c | 82 static char *test[] = { variable 116 ebcdic2ascii(test[0], test[0], strlen(test[0])); 117 ebcdic2ascii(test[1], test[1], strlen(test[1])); 121 P = test; 132 printf("test %d ok\n", i); 154 printf("test [all...] |
/freebsd-10.1-release/tools/regression/sockets/unix_gc/ |
H A D | unix_gc.c | 55 static const char *test; variable 110 err(-1, "%s: sendmsg", test); 113 errx(-1, "%s: sendfd: before %d after %d\n", test, 156 err(-1, "%s: socket", test); 165 err(-1, "%s: bind", test); 173 err(-1, "%s: connect", test); 181 err(-1, "%s: listen", test); 189 err(-1, "%s: socketpair", test); 197 err(-1, "%s: getsockname", test); 205 err(-1, "%s: fcntl(F_SETFL, O_NONBLOCK)", test); [all...] |
/freebsd-10.1-release/contrib/smbfs/ |
H A D | Makefile.inc | 36 @(if test -f ${BINDIR}/${PROG}; then \ 40 @(if test -f ${MANDIR}1/${MAN1}.gz ; then \ 44 @(if test -f ${MANDIR}8/${MAN8}.gz ; then \
|
/freebsd-10.1-release/contrib/ofed/librdmacm/examples/ |
H A D | mckey.c | 76 static struct cmatest test; variable in typeref:struct:cmatest 239 test.connects_left--; 260 ret = rdma_join_multicast(node->cma_id, test.dst_addr, node); 289 test.connects_left--; 316 /* Cleanup will occur after test completes. */ 330 ret = rdma_get_cm_event(test.channel, &event); 381 test.nodes = malloc(sizeof *test.nodes * connections); 382 if (!test.nodes) { 383 printf("mckey: unable to allocate memory for test node [all...] |
/freebsd-10.1-release/contrib/ncurses/misc/ |
H A D | jpf-indent | 75 test="${name}".b$$ 76 rm -f "$save" "$test" 84 "$save" >"$test" 85 cp "$test" "$name" 95 "$name" >"$test" 96 mv "$test" "$name" 98 if test $NOOP = yes ; then
|
H A D | ncu-indent | 86 test="${name}".b$$ 87 rm -f "$save" "$test" 96 "$save" >"$test" 97 cp "$test" "$name" 108 "$name" >"$test" 109 mv "$test" "$name" 111 if test $NOOP = yes ; then
|