Lines Matching defs:test

42 #define	KENV_VAR_NAME	"test"
43 #define KENV_VAR_VALUE "test"
49 void setup_dir(const char *test, char *dpathp, uid_t uid, gid_t gid,
51 void setup_file(const char *test, char *fpathp, uid_t uid, gid_t gid,
53 void expect(const char *test, int error, int expected_error,
57 * Definition for a particular test, both used to manage the test list in
58 * main.c, and passed to tests so they can be aware of which specific test is
61 struct test {
64 struct test *test);
66 struct test *test);
68 struct test *test);
72 * Prototypes for test functions that will be hooked up to the test vector in
76 int priv_acct_setup(int, int, struct test *);
77 void priv_acct_enable(int, int, struct test *);
78 void priv_acct_disable(int, int, struct test *);
79 void priv_acct_rotate(int, int, struct test *);
80 void priv_acct_noopdisable(int, int, struct test *);
81 void priv_acct_cleanup(int, int, struct test *);
83 int priv_adjtime_setup(int, int, struct test *);
84 void priv_adjtime_set(int, int, struct test *);
85 void priv_adjtime_cleanup(int, int, struct test *);
87 int priv_audit_submit_setup(int, int, struct test *);
88 void priv_audit_submit(int, int, struct test *);
89 void priv_audit_submit_cleanup(int, int, struct test *);
91 int priv_audit_control_setup(int, int, struct test *);
92 void priv_audit_control(int, int, struct test *);
93 void priv_audit_control_cleanup(int, int, struct test *);
95 int priv_audit_getaudit_setup(int, int, struct test *);
96 void priv_audit_getaudit(int, int, struct test *);
97 void priv_audit_getaudit_addr(int, int, struct test *);
98 void priv_audit_getaudit_cleanup(int, int, struct test *);
100 int priv_audit_setaudit_setup(int, int, struct test *);
101 void priv_audit_setaudit(int, int, struct test *);
102 void priv_audit_setaudit_addr(int, int, struct test *);
103 void priv_audit_setaudit_cleanup(int, int, struct test *);
105 int priv_clock_settime_setup(int, int, struct test *);
106 void priv_clock_settime(int, int, struct test *);
107 void priv_clock_settime_cleanup(int, int, struct test *);
109 int priv_cred_setup(int, int, struct test *);
110 void priv_cred_setuid(int, int, struct test *);
111 void priv_cred_seteuid(int, int, struct test *);
112 void priv_cred_setgid(int, int, struct test *);
113 void priv_cred_setegid(int, int, struct test *);
114 void priv_cred_setgroups(int, int, struct test *);
115 void priv_cred_setreuid(int, int, struct test *);
116 void priv_cred_setregid(int, int, struct test *);
117 void priv_cred_setresuid(int, int, struct test *);
118 void priv_cred_setresgid(int, int, struct test *);
119 void priv_cred_cleanup(int, int, struct test *);
121 int priv_io_setup(int, int, struct test *);
122 void priv_io(int, int, struct test *);
123 void priv_io_cleanup(int, int, struct test *);
125 int priv_kenv_set_setup(int, int, struct test *);
126 void priv_kenv_set(int, int, struct test *);
127 void priv_kenv_set_cleanup(int, int, struct test *);
129 int priv_kenv_unset_setup(int, int, struct test *);
130 void priv_kenv_unset(int, int, struct test *);
131 void priv_kenv_unset_cleanup(int, int, struct test *);
133 int priv_msgbuf_privonly_setup(int, int, struct test *);
134 void priv_msgbuf_privonly(int, int, struct test *);
136 int priv_msgbuf_unprivok_setup(int, int, struct test *);
137 void priv_msgbuf_unprivok(int, int, struct test *);
139 void priv_msgbuf_cleanup(int, int, struct test *);
141 void priv_netinet_ipsec_pfkey(int, int, struct test *);
142 int priv_netinet_ipsec_policy4_bypass_setup(int, int, struct test *);
143 void priv_netinet_ipsec_policy4_bypass(int, int, struct test *);
144 int priv_netinet_ipsec_policy6_bypass_setup(int, int, struct test *);
145 void priv_netinet_ipsec_policy6_bypass(int, int, struct test *);
146 void priv_netinet_ipsec_policy_bypass_cleanup(int, int, struct test *);
147 int priv_netinet_ipsec_policy4_entrust_setup(int, int, struct test *);
148 void priv_netinet_ipsec_policy4_entrust(int, int, struct test *);
149 int priv_netinet_ipsec_policy6_entrust_setup(int, int, struct test *);
150 void priv_netinet_ipsec_policy6_entrust(int, int, struct test *);
151 void priv_netinet_ipsec_policy_entrust_cleanup(int, int, struct test *);
153 int priv_netinet_raw_setup(int, int, struct test *);
154 void priv_netinet_raw(int, int, struct test *);
155 void priv_netinet_raw_cleanup(int, int, struct test *);
157 int priv_proc_setlogin_setup(int, int, struct test *);
158 void priv_proc_setlogin(int, int, struct test *);
159 void priv_proc_setlogin_cleanup(int, int, struct test *);
161 int priv_proc_setrlimit_setup(int, int, struct test *);
162 void priv_proc_setrlimit_raisemax(int, int, struct test *);
163 void priv_proc_setrlimit_raisecur(int, int, struct test *);
164 void priv_proc_setrlimit_raisecur_nopriv(int, int, struct test *);
165 void priv_proc_setrlimit_cleanup(int, int, struct test *);
167 int priv_sched_rtprio_setup(int, int, struct test *);
168 void priv_sched_rtprio_curproc_normal(int, int, struct test *);
169 void priv_sched_rtprio_curproc_idle(int, int, struct test *);
170 void priv_sched_rtprio_curproc_realtime(int, int, struct test *);
172 void priv_sched_rtprio_myproc_normal(int, int, struct test *);
173 void priv_sched_rtprio_myproc_idle(int, int, struct test *);
174 void priv_sched_rtprio_myproc_realtime(int, int, struct test *);
176 void priv_sched_rtprio_aproc_normal(int, int, struct test *);
177 void priv_sched_rtprio_aproc_idle(int, int, struct test *);
178 void priv_sched_rtprio_aproc_realtime(int, int, struct test *);
179 void priv_sched_rtprio_cleanup(int, int, struct test *);
181 int priv_sched_setpriority_setup(int, int, struct test *);
182 void priv_sched_setpriority_curproc(int, int, struct test *);
183 void priv_sched_setpriority_myproc(int, int, struct test *);
184 void priv_sched_setpriority_aproc(int, int, struct test *);
185 void priv_sched_setpriority_cleanup(int, int, struct test *);
187 int priv_settimeofday_setup(int, int, struct test *);
188 void priv_settimeofday(int, int, struct test *);
189 void priv_settimeofday_cleanup(int, int, struct test *);
191 int priv_sysctl_write_setup(int, int, struct test *);
192 void priv_sysctl_write(int, int, struct test *);
193 void priv_sysctl_writejail(int, int, struct test *);
194 void priv_sysctl_write_cleanup(int, int, struct test *);
196 int priv_vfs_chflags_froot_setup(int, int, struct test *);
197 void priv_vfs_chflags_froot_uflags(int, int, struct test *);
198 void priv_vfs_chflags_froot_sflags(int, int, struct test *);
200 int priv_vfs_chflags_fowner_setup(int, int, struct test *);
201 void priv_vfs_chflags_fowner_uflags(int, int, struct test *);
202 void priv_vfs_chflags_fowner_sflags(int, int, struct test *);
204 int priv_vfs_chflags_fother_setup(int, int, struct test *);
205 void priv_vfs_chflags_fother_uflags(int, int, struct test *);
206 void priv_vfs_chflags_fother_sflags(int, int, struct test *);
208 void priv_vfs_chflags_cleanup(int, int, struct test *);
210 int priv_vfs_chmod_froot_setup(int, int, struct test *);
211 void priv_vfs_chmod_froot(int, int, struct test *);
213 int priv_vfs_chmod_fowner_setup(int, int, struct test *);
214 void priv_vfs_chmod_fowner(int, int, struct test *);
216 int priv_vfs_chmod_fother_setup(int, int, struct test *);
217 void priv_vfs_chmod_fother(int, int, struct test *);
219 void priv_vfs_chmod_cleanup(int, int, struct test *);
221 int priv_vfs_chown_uid_setup(int, int, struct test *);
222 void priv_vfs_chown_uid(int, int, struct test *);
224 int priv_vfs_chown_mygid_setup(int, int, struct test *);
225 void priv_vfs_chown_mygid(int, int, struct test *);
227 int priv_vfs_chown_othergid_setup(int, int, struct test *);
228 void priv_vfs_chown_othergid(int, int, struct test *);
230 void priv_vfs_chown_cleanup(int, int, struct test *);
232 int priv_vfs_chroot_setup(int, int, struct test *);
233 void priv_vfs_chroot(int, int, struct test *);
234 void priv_vfs_chroot_cleanup(int, int, struct test *);
236 int priv_vfs_clearsugid_setup(int, int, struct test *);
237 void priv_vfs_clearsugid_chgrp(int, int, struct test *);
238 void priv_vfs_clearsugid_extattr(int, int, struct test *);
239 void priv_vfs_clearsugid_write(int, int, struct test *);
240 void priv_vfs_clearsugid_cleanup(int, int, struct test *);
242 int priv_vfs_extattr_system_setup(int, int, struct test *);
243 void priv_vfs_extattr_system(int, int, struct test *);
244 void priv_vfs_extattr_system_cleanup(int, int, struct test *);
246 int priv_vfs_fhopen_setup(int, int, struct test *);
247 void priv_vfs_fhopen(int, int, struct test *);
248 void priv_vfs_fhopen_cleanup(int, int, struct test *);
250 int priv_vfs_fhstat_setup(int, int, struct test *);
251 void priv_vfs_fhstat(int, int, struct test *);
252 void priv_vfs_fhstat_cleanup(int, int, struct test *);
254 int priv_vfs_fhstatfs_setup(int, int, struct test *);
255 void priv_vfs_fhstatfs(int, int, struct test *);
256 void priv_vfs_fhstatfs_cleanup(int, int, struct test *);
258 int priv_vfs_generation_setup(int, int, struct test *);
259 void priv_vfs_generation(int, int, struct test *);
260 void priv_vfs_generation_cleanup(int, int, struct test *);
262 int priv_vfs_getfh_setup(int, int, struct test *);
263 void priv_vfs_getfh(int, int, struct test *);
264 void priv_vfs_getfh_cleanup(int, int, struct test *);
266 int priv_vfs_readwrite_fowner_setup(int, int, struct test *);
267 void priv_vfs_readwrite_fowner(int, int, struct test *);
269 int priv_vfs_readwrite_fgroup_setup(int, int, struct test *);
270 void priv_vfs_readwrite_fgroup(int, int, struct test *);
272 int priv_vfs_readwrite_fother_setup(int, int, struct test *);
273 void priv_vfs_readwrite_fother(int, int, struct test *);
275 void priv_vfs_readwrite_cleanup(int, int, struct test *);
277 int priv_vfs_setgid_fowner_setup(int, int, struct test *);
278 void priv_vfs_setgid_fowner(int, int, struct test *);
280 int priv_vfs_setgid_fother_setup(int, int, struct test *);
281 void priv_vfs_setgid_fother(int, int, struct test *);
283 void priv_vfs_setgid_cleanup(int, int, struct test *);
285 int priv_vfs_stickyfile_dir_fowner_setup(int, int, struct test *);
287 void priv_vfs_stickyfile_dir_fowner(int, int, struct test *);
288 int priv_vfs_stickyfile_dir_fother_setup(int, int, struct test *);
289 void priv_vfs_stickyfile_dir_fother(int, int, struct test *);
291 void priv_vfs_stickyfile_dir_cleanup(int, int, struct test *);
293 int priv_vfs_stickyfile_file_fowner_setup(int, int, struct test *);
294 void priv_vfs_stickyfile_file_fowner(int, int, struct test *);
296 int priv_vfs_stickyfile_file_fother_setup(int, int, struct test *);
297 void priv_vfs_stickyfile_file_fother(int, int, struct test *);
299 void priv_vfs_stickyfile_file_cleanup(int, int, struct test *);
301 int priv_vfs_utimes_froot_setup(int, int, struct test *);
302 void priv_vfs_utimes_froot(int, int, struct test *);
303 void priv_vfs_utimes_froot_null(int, int, struct test *);
305 int priv_vfs_utimes_fowner_setup(int, int, struct test *);
306 void priv_vfs_utimes_fowner(int, int, struct test *);
307 void priv_vfs_utimes_fowner_null(int, int, struct test *);
309 int priv_vfs_utimes_fother_setup(int, int, struct test *);
310 void priv_vfs_utimes_fother(int, int, struct test *);
311 void priv_vfs_utimes_fother_null(int, int, struct test *);
313 void priv_vfs_utimes_cleanup(int, int, struct test *);
315 int priv_vm_madv_protect_setup(int, int, struct test *);
316 void priv_vm_madv_protect(int, int, struct test *);
317 void priv_vm_madv_protect_cleanup(int, int, struct test *);
319 int priv_vm_mlock_setup(int, int, struct test *);
320 void priv_vm_mlock(int, int, struct test *);
321 void priv_vm_mlock_cleanup(int, int, struct test *);
323 int priv_vm_munlock_setup(int, int, struct test *);
324 void priv_vm_munlock(int, int, struct test *);
325 void priv_vm_munlock_cleanup(int, int, struct test *);