/freebsd-10.0-release/tools/regression/priv/ |
H A D | priv_cred.c | 51 priv_cred_setup(int asroot, int injail, struct test *test) argument 58 priv_cred_setuid(int asroot, int injail, struct test *test) argument 63 if (asroot && injail) 64 expect("priv_setuid(asroot, injail)", error, 0, 0); 65 if (asroot && !injail) 66 expect("priv_setuid(asroot, !injail)", error, 0, 0); 67 if (!asroot && injail) 68 expect("priv_setuid(!asroot, injail)", error, -1, EPERM); 69 if (!asroot && !injail) 70 expect("priv_setuid(!asroot, !injail)", erro 74 priv_cred_seteuid(int asroot, int injail, struct test *test) argument 90 priv_cred_setgid(int asroot, int injail, struct test *test) argument 106 priv_cred_setegid(int asroot, int injail, struct test *test) argument 125 priv_cred_setgroups(int asroot, int injail, struct test *test) argument 141 priv_cred_setreuid(int asroot, int injail, struct test *test) argument 157 priv_cred_setregid(int asroot, int injail, struct test *test) argument 173 priv_cred_setresuid(int asroot, int injail, struct test *test) argument 189 priv_cred_setresgid(int asroot, int injail, struct test *test) argument 205 priv_cred_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_audit_control.c | 51 priv_audit_control_setup(int asroot, int injail, struct test *test) argument 62 priv_audit_control(int asroot, int injail, struct test *test) argument 68 if (asroot && injail) 69 expect("priv_audit_control(asroot, injail)", error, -1, 71 if (asroot && !injail) 72 expect("priv_audit_control(asroot, !injail)", error, 0, 0); 73 if (!asroot && injail) 74 expect("priv_audit_control(!asroot, injail)", error, -1, 76 if (!asroot && !injail) 77 expect("priv_audit_control(!asroot, !injail)", erro 82 priv_audit_control_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_clock_settime.c | 50 priv_clock_settime_setup(int asroot, int injail, struct test *test) argument 62 priv_clock_settime(int asroot, int injail, struct test *test) argument 67 if (asroot && injail) 68 expect("priv_clock_settime(asroot, injail)", error, -1, 70 if (asroot && !injail) 71 expect("priv_clock_settime(asroot, !injail)", error, 0, 0); 72 if (!asroot && injail) 73 expect("priv_clock_settime(!asroot, injail)", error, -1, 75 if (!asroot && !injail) 76 expect("priv_clock_settime(!asroot, !injail", erro 81 priv_clock_settime_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_settimeofday.c | 50 priv_settimeofday_setup(int asroot, int injail, struct test *test) argument 61 priv_settimeofday(int asroot, int injail, struct test *test) argument 66 if (asroot && injail) 67 expect("priv_settimeofday(asroot, injail)", error, -1, 69 if (asroot && !injail) 70 expect("priv_settimeofday(asroot, !injail)", error, 0, 0); 71 if (!asroot && injail) 72 expect("priv_settimeofday(!asroot, injail)", error, -1, 74 if (!asroot && !injail) 75 expect("priv_settimeofday(!asroot, !injail)", erro 80 priv_settimeofday_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vfs_chroot.c | 47 priv_vfs_chroot_setup(int asroot, int injail, struct test *test) argument 54 priv_vfs_chroot(int asroot, int injail, struct test *test) argument 59 if (asroot && injail) 60 expect("priv_vfs_chroot(asroot, injail)", error, 0, 0); 61 if (asroot && !injail) 62 expect("priv_vfs_chroot(asroot, !injail)", error, 0, 0); 63 if (!asroot && injail) 64 expect("priv_vfs_chroot(!asroot, injail)", error, -1, EPERM); 65 if (!asroot && !injail) 66 expect("priv_vfs_chroot(!asroot, !injail)", erro 70 priv_vfs_chroot_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vm_madv_protect.c | 47 priv_vm_madv_protect_setup(int asroot, int injail, struct test *test) argument 54 priv_vm_madv_protect(int asroot, int injail, struct test *test) argument 59 if (asroot && injail) 60 expect("priv_vm_madv_protect(asroot, injail)", error, -1, 62 if (asroot && !injail) 63 expect("priv_vm_madv_protect(asroot, !injail", error, 0, 0); 64 if (!asroot && injail) 65 expect("priv_vm_madv_protect(!asroot, injail", error, -1, 67 if (!asroot && !injail) 68 expect("priv_vm_madv_protect(!asroot, !injail", erro 73 priv_vm_madv_protect_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vm_mlock.c | 47 priv_vm_mlock_setup(int asroot, int injail, struct test *test) argument 54 priv_vm_mlock(int asroot, int injail, struct test *test) argument 59 if (asroot && injail) 60 expect("priv_vm_mlock(asroot, injail)", error, -1, EPERM); 61 if (asroot && !injail) 62 expect("priv_vm_mlock(asroot, !injail", error, 0, 0); 63 if (!asroot && injail) 64 expect("priv_vm_mlock(!asroot, injail", error, -1, EPERM); 65 if (!asroot && !injail) 66 expect("priv_vm_mlock(!asroot, !injail", erro 70 priv_vm_mlock_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vm_munlock.c | 47 priv_vm_munlock_setup(int asroot, int injail, struct test *test) argument 54 priv_vm_munlock(int asroot, int injail, struct test *test) argument 59 if (asroot && injail) 60 expect("priv_vm_munlock(asroot, injail)", error, -1, EPERM); 61 if (asroot && !injail) 62 expect("priv_vm_munlock(asroot, !injail", error, 0, 0); 63 if (!asroot && injail) 64 expect("priv_vm_munlock(!asroot, injail", error, -1, EPERM); 65 if (!asroot && !injail) 66 expect("priv_vm_munlock(!asroot, !injail", erro 71 priv_vm_munlock_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vfs_stickyfile.c | 53 priv_vfs_stickyfile_dir_fowner_setup(int asroot, int injail, argument 64 priv_vfs_stickyfile_dir_fother_setup(int asroot, int injail, argument 75 priv_vfs_stickyfile_file_fowner_setup(int asroot, int injail, argument 86 priv_vfs_stickyfile_file_fother_setup(int asroot, int injail, argument 97 priv_vfs_stickyfile_dir_fowner(int asroot, int injail, struct test *test) argument 102 if (asroot && injail) 105 if (asroot && !injail) 108 if (!asroot && injail) 111 if (!asroot && !injail) 117 priv_vfs_stickyfile_dir_fother(int asroot, int injail, struc argument 137 priv_vfs_stickyfile_file_fowner(int asroot, int injail, struct test *test) argument 157 priv_vfs_stickyfile_file_fother(int asroot, int injail, struct test *test) argument 177 priv_vfs_stickyfile_dir_cleanup(int asroot, int injail, struct test *test) argument 187 priv_vfs_stickyfile_file_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vfs_chmod.c | 53 priv_vfs_chmod_froot_setup(int asroot, int injail, struct test *test) argument 63 priv_vfs_chmod_fowner_setup(int asroot, int injail, struct test *test) argument 73 priv_vfs_chmod_fother_setup(int asroot, int injail, struct test *test) argument 83 priv_vfs_chmod_froot(int asroot, int injail, struct test *test) argument 88 if (asroot && injail) 89 expect("priv_vfs_chmod_froot(asroot, injail)", error, 0, 0); 90 if (asroot && !injail) 91 expect("priv_vfs_chmod_froot(asroot, !injail)", error, 0, 0); 92 if (!asroot && injail) 93 expect("priv_vfs_chmod_froot(!asroot, injail)", erro 101 priv_vfs_chmod_fowner(int asroot, int injail, struct test *test) argument 120 priv_vfs_chmod_fother(int asroot, int injail, struct test *test) argument 139 priv_vfs_chmod_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vfs_chown.c | 61 priv_vfs_chown_uid_setup(int asroot, int injail, struct test *test) argument 71 priv_vfs_chown_uid(int asroot, int injail, struct test *test) argument 76 if (asroot && injail) 78 if (asroot && !injail) 80 if (!asroot && injail) 82 if (!asroot && !injail) 91 priv_vfs_chown_mygid_setup(int asroot, int injail, struct test *test) argument 105 priv_vfs_chown_mygid(int asroot, int injail, struct test *test) argument 110 if (asroot && injail) 112 if (asroot && !injail) 125 priv_vfs_chown_othergid_setup(int asroot, int injail, struct test *test) argument 139 priv_vfs_chown_othergid(int asroot, int injail, struct test *test) argument 157 priv_vfs_chown_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vfs_chflags.c | 70 priv_vfs_chflags_froot_setup(int asroot, int injail, struct test *test) argument 80 priv_vfs_chflags_fowner_setup(int asroot, int injail, argument 91 priv_vfs_chflags_fother_setup(int asroot, int injail, argument 102 priv_vfs_chflags_froot_uflags(int asroot, int injail, argument 111 if (asroot && injail) 112 expect("priv_vfs_chflags_froot_uflags(asroot, injail)", 114 if (asroot && !injail) 115 expect("priv_vfs_chflags_froot_uflags(asroot, !injail)", 117 if (!asroot && injail) 118 expect("priv_vfs_chflags_froot_uflags(!asroot, injail)", 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 90 priv_vfs_utimes_froot(int asroot, int injail, struct test *test) argument 100 if (asroot && injail) 102 if (asroot && !injail) 104 if (!asroot && injail) 107 if (!asroot && !injail) 113 priv_vfs_utimes_froot_null(int asroot, int injail, struct test *test) argument 118 if (asroot && injail) 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_proc_setrlimit.c | 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 94 if (asroot && injail) 95 expect("priv_proc_setrlimit_raisemax(asroot, injail)", error, 97 if (asroot && !injail) 98 expect("priv_proc_setrlimit_raisemax(asroot, !injail)", 100 if (!asroot && injail) 101 expect("priv_proc_setrlimit_raisemax(!asroot, injail)", 103 if (!asroot && !injail) 104 expect("priv_proc_setrlimit_raisemax(!asroot, !injail)", 113 priv_proc_setrlimit_raisecur_nopriv(int asroot, int injail, struct test *test) argument 141 priv_proc_setrlimit_raisecur(int asroot, int injail, struct test *test) argument 164 priv_proc_setrlimit_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_sched_setpriority.c | 58 priv_sched_setpriority_setup(int asroot, int injail, struct test *test) argument 96 priv_sched_setpriority_curproc(int asroot, int injail, struct test *test) argument 101 if (asroot && injail) 102 expect("priv_sched_setpriority_curproc(asroot, injail)", 104 if (asroot && !injail) 105 expect("priv_sched_setpriority_curproc(asroot, !injail)", 107 if (!asroot && injail) 108 expect("priv_sched_setpriority_curproc(!asroot, injail)", 110 if (!asroot && !injail) 111 expect("priv_sched_setpriority_curproc(!asroot, !injail)", 116 priv_sched_setpriority_myproc(int asroot, int injail, struct test *test) argument 136 priv_sched_setpriority_aproc(int asroot, int injail, struct test *test) argument 156 priv_sched_setpriority_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vfs_setgid.c | 53 priv_vfs_setgid_fowner_setup(int asroot, int injail, struct test *test) argument 63 priv_vfs_setgid_fother_setup(int asroot, int injail, struct test *test) argument 74 priv_vfs_setgid_fowner(int asroot, int injail, struct test *test) argument 79 if (asroot && injail) 80 expect("priv_vfs_setgid_fowner(asroot, injail)", error, 0, 82 if (asroot && !injail) 83 expect("priv_vfs_setgid_fowner(asroot, !injail)", error, 0, 85 if (!asroot && injail) 86 expect("priv_vfs_setgid_fowner(!asroot, injail)", error, 0, 88 if (!asroot && !injail) 94 priv_vfs_setgid_fother(int asroot, int injail, struct test *test) argument 114 priv_vfs_setgid_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_acct.c | 65 priv_acct_setup(int asroot, int injail, struct test *test) argument 102 priv_acct_cleanup(int asroot, int injail, struct test *test) argument 117 priv_acct_enable(int asroot, int injail, struct test *test) argument 122 if (asroot && injail) 124 if (asroot && !injail) 126 if (!asroot && injail) 128 if (!asroot && !injail) 133 priv_acct_disable(int asroot, int injail, struct test *test) argument 138 if (asroot && injail) 140 if (asroot && !injail) 149 priv_acct_rotate(int asroot, int injail, struct test *test) argument 165 priv_acct_noopdisable(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_audit_getaudit.c | 47 priv_audit_getaudit_setup(int asroot, int injail, struct test *test) argument 58 priv_audit_getaudit(int asroot, int injail, struct test *test) argument 64 if (asroot && injail) 65 expect("priv_audit_getaudit(asroot, injail)", error, -1, 67 if (asroot && !injail) 68 expect("priv_audit_getaudit(asroot, !injail)", error, 0, 0); 69 if (!asroot && injail) 70 expect("priv_audit_getaudit(!asroot, injail)", error, -1, 72 if (!asroot && !injail) 73 expect("priv_audit_getaudit(!asroot, !injail)", erro 78 priv_audit_getaudit_addr(int asroot, int injail, struct test *test) argument 99 priv_audit_getaudit_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_audit_setaudit.c | 51 priv_audit_setaudit_setup(int asroot, int injail, struct test *test) argument 67 priv_audit_setaudit(int asroot, int injail, struct test *test) argument 72 if (asroot && injail) 73 expect("priv_audit_setaudit(asroot, injail)", error, -1, 75 if (asroot && !injail) 76 expect("priv_audit_setaudit(asroot, !injail)", error, 0, 0); 77 if (!asroot && injail) 78 expect("priv_audit_setaudit(!asroot, injail)", error, -1, 80 if (!asroot && !injail) 81 expect("priv_audit_setaudit(!asroot, !injail)", erro 86 priv_audit_setaudit_addr(int asroot, int injail, struct test *test) argument 106 priv_audit_setaudit_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_sysctl_write.c | 59 priv_sysctl_write_setup(int asroot, int injail, struct test *test) argument 86 priv_sysctl_write(int asroot, int injail, struct test *test) argument 92 if (asroot && injail) 93 expect("priv_sysctl_write(asroot, injail)", error, -1, 95 if (asroot && !injail) 96 expect("priv_sysctl_write(asroot, !injail)", error, 0, 0); 97 if (!asroot && injail) 98 expect("priv_sysctl_write(!asroot, injail)", error, -1, 100 if (!asroot && !injail) 101 expect("priv_sysctl_write(!asroot, !injail)", erro 106 priv_sysctl_writejail(int asroot, int injail, struct test *test) argument 125 priv_sysctl_write_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_sched_rtprio.c | 62 priv_sched_rtprio_setup(int asroot, int injail, struct test *test) argument 105 priv_sched_rtprio_curproc_normal(int asroot, int injail, struct test *test) argument 113 if (asroot && injail) 114 expect("priv_sched_rtprio_curproc_normal(asroot, injail)", 116 if (asroot && !injail) 117 expect("priv_sched_rtprio_curproc_normal(asroot, !injail)", 119 if (!asroot && injail) 120 expect("priv_sched_rtprio_curproc_normal(!asroot, injail)", 122 if (!asroot && !injail) 123 expect("priv_sched_rtprio_curproc_normal(!asroot, !injail)", 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_vfs_read_write.c | 62 try_io(const char *label, const char *fpathp, int asroot, int injail, argument 71 label, asroot ? "root" : "!root", injail ? "jail" 76 asroot ? "root" : "!root", injail ? "jail" : 83 priv_vfs_readwrite_fowner_setup(int asroot, int injail, struct test *test) argument 102 priv_vfs_readwrite_fgroup_setup(int asroot, int injail, struct test *test) argument 122 priv_vfs_readwrite_fother_setup(int asroot, int injail, struct test *test) argument 141 priv_vfs_readwrite_fowner(int asroot, int injail, struct test *test) argument 145 asroot, injail, O_RDONLY, asroot ? 0 : -1, EACCES); 147 asroot, injail, O_WRONLY, asroot ? 0 : -1, EACCES); 149 asroot, injail, O_RDW 174 priv_vfs_readwrite_fgroup(int asroot, int injail, struct test *test) argument 207 priv_vfs_readwrite_fother(int asroot, int injail, struct test *test) argument 240 priv_vfs_readwrite_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vfs_clearsugid.c | 72 confirm_sugid(char *test_case, int asroot, int injail) argument 82 warnx("%s(root, %s): !SUID", test_case, injail ? 86 warnx("%s(!root, %s): SUID", test_case, injail ? 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 107 asroot ? "root" : "!root", injail ? "jail" : "!jail"); 108 confirm_sugid("priv_vfs_clearsugid_chgrp", asroot, injail); 117 priv_vfs_clearsugid_extattr(int asroot, int injail, struct test *test) argument 124 asroot ? "root" : "!root", injail ? "jail" : "!jail"); 125 confirm_sugid("priv_vfs_clearsugid_extattr", asroot, injail); 129 priv_vfs_clearsugid_write(int asroot, int injail, struct test *test) argument 145 priv_vfs_clearsugid_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_adjtime.c | 51 priv_adjtime_setup(int asroot, int injail, struct test *test) argument 65 priv_adjtime_set(int asroot, int injail, struct test *test) argument 70 if (asroot && injail) 71 expect("priv_adjtime(asroot, injail)", error, -1, EPERM); 72 if (asroot && !injail) 73 expect("priv_adjtime(asroot, !injail)", error, 0, 0); 74 if (!asroot && injail) 75 expect("priv_adjtime(!asroot, injail)", error, -1, EPERM); 76 if (!asroot && !injail) 77 expect("priv_adjtime(!asroot, !injail)", erro 81 priv_adjtime_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_audit_submit.c | 52 priv_audit_submit_setup(int asroot, int injail, struct test *test) argument 63 priv_audit_submit(int asroot, int injail, struct test *test) argument 70 if (asroot && injail) 71 expect("priv_audit_submit(asroot, injail)", error, -1, 73 if (asroot && !injail) 74 expect("priv_audit_submit(asroot, !injail)", error, -1, 76 if (!asroot && injail) 77 expect("priv_audit_submit(!asroot, injail)", error, -1, 79 if (!asroot && !injail) 80 expect("priv_audit_submit(!asroot, !injail)", erro 85 priv_audit_submit_cleanup(int asroot, int injail, struct test *test) argument [all...] |