Lines Matching refs:invert

198 static void check_defaults_pos( AccessControl & ac, bool invert = false )  in check_defaults_pos()  argument
201 CHECK( ac.checkFilePermission( OUSTR("file:///usr/bin/bla"), OUSTR("read") ), invert ); in check_defaults_pos()
202 CHECK( ac.checkFilePermission( OUSTR("file:///tmp/bla"), OUSTR("read,write") ), invert ); in check_defaults_pos()
203 CHECK( ac.checkFilePermission( OUSTR("file:///tmp/path/path/bla"), OUSTR("write") ), invert ); in check_defaults_pos()
204 CHECK( ac.checkFilePermission( OUSTR("file:///etc/profile"), OUSTR("read") ), invert ); in check_defaults_pos()
205 CHECK( ac.checkRuntimePermission( OUSTR("DEF") ), invert ); in check_defaults_pos()
206 CHECK( ac.checkSocketPermission( OUSTR("localhost:1024"), OUSTR("connect") ), invert ); in check_defaults_pos()
207 CHECK( ac.checkSocketPermission( OUSTR("localhost:65535"), OUSTR("resolve") ), invert ); in check_defaults_pos()
208 CHECK( ac.checkSocketPermission( localhost(OUSTR(":2048")), OUSTR("accept,listen") ), invert ); in check_defaults_pos()
209 …ckSocketPermission( localhost(OUSTR(":1024-")), OUSTR("accept,connect,listen,resolve") ), invert ); in check_defaults_pos()
210 …K( ac.checkSocketPermission( OUSTR("localhost:-1023"), OUSTR("resolve,listen,connect") ), invert ); in check_defaults_pos()
211 …CK( ac.checkSocketPermission( OUSTR("jl-1036.germany.sun.com:1024-"), OUSTR("resolve") ), invert ); in check_defaults_pos()
213 static void check_defaults_neg( AccessControl & ac, bool invert = false ) in check_defaults_neg() argument
216 CHECK( ac.checkFilePermission( OUSTR("file:///usr/tmp"), OUSTR("read") ), !invert ); in check_defaults_neg()
217 CHECK( ac.checkFilePermission( OUSTR("file:///"), OUSTR("read") ), !invert ); in check_defaults_neg()
218 CHECK( ac.checkFilePermission( OUSTR("file:///usr/bin"), OUSTR("read") ), !invert ); in check_defaults_neg()
219 CHECK( ac.checkFilePermission( OUSTR("file:///usr/bin/bla"), OUSTR("write") ), !invert ); in check_defaults_neg()
220 CHECK( ac.checkFilePermission( OUSTR("file:///usr/bin/bla"), OUSTR("execute") ), !invert ); in check_defaults_neg()
221 CHECK( ac.checkFilePermission( OUSTR("file:///usr/bin/path/bla"), OUSTR("read") ), !invert ); in check_defaults_neg()
222 CHECK( ac.checkFilePermission( OUSTR("file:///tmp"), OUSTR("read") ), !invert ); in check_defaults_neg()
223 CHECK( ac.checkFilePermission( OUSTR("file:///tmp/"), OUSTR("read") ), !invert ); in check_defaults_neg()
224 CHECK( ac.checkFilePermission( OUSTR("file:///tm"), OUSTR("read") ), !invert ); in check_defaults_neg()
225 CHECK( ac.checkFilePermission( OUSTR("file:///etc/profile"), OUSTR("write") ), !invert ); in check_defaults_neg()
226 CHECK( ac.checkFilePermission( OUSTR("file:///etc/profile/bla"), OUSTR("read") ), !invert ); in check_defaults_neg()
227 …ECK( ac.checkFilePermission( OUSTR("file:///etc/blabla"), OUSTR("read,write,execute") ), !invert ); in check_defaults_neg()
228 …HECK( ac.checkFilePermission( OUSTR("file:///home/root"), OUSTR("read,write,execute") ), !invert ); in check_defaults_neg()
229 CHECK( ac.checkFilePermission( OUSTR("file:///root"), OUSTR("read,write,execute") ), !invert ); in check_defaults_neg()
230 CHECK( ac.checkFilePermission( OUSTR("file:///root"), OUSTR("delete") ), !invert ); in check_defaults_neg()
231 CHECK( ac.checkFilePermission( OUSTR("file:///root"), OUString() ), !invert ); in check_defaults_neg()
232 CHECK( ac.checkRuntimePermission( OUSTR("ROOT") ), !invert ); in check_defaults_neg()
233 CHECK( ac.checkSocketPermission( OUSTR("localhost:1023"), OUSTR("accept") ), !invert ); in check_defaults_neg()
234 CHECK( ac.checkSocketPermission( OUSTR("localhost:123-"), OUSTR("accept") ), !invert ); in check_defaults_neg()
235 CHECK( ac.checkSocketPermission( localhost(OUSTR(":-1023")), OUSTR("accept") ), !invert ); in check_defaults_neg()
236 CHECK( ac.checkSocketPermission( OUSTR("localhost:-1023"), OUSTR("accept,resolve") ), !invert ); in check_defaults_neg()
237 CHECK( ac.checkSocketPermission( OUSTR("sun.com:1024-"), OUSTR("resolve") ), !invert ); in check_defaults_neg()
256 static void check_dbo_pos( AccessControl & ac, bool invert = false ) in check_dbo_pos() argument
258 check_defaults_pos( ac, invert ); in check_dbo_pos()
260 CHECK( ac.checkFilePermission( OUSTR("file:///home/dbo/bla"), OUSTR("read") ), invert ); in check_dbo_pos()
261 CHECK( ac.checkFilePermission( OUSTR("file:///home/dbo/bla"), OUSTR("write") ), invert ); in check_dbo_pos()
262 CHECK( ac.checkFilePermission( OUSTR("file:///home/dbo/bla"), OUSTR("read,write") ), invert ); in check_dbo_pos()
263 …CHECK( ac.checkFilePermission( OUSTR("file:///home/dbo/path/bla"), OUSTR("read,write") ), invert ); in check_dbo_pos()
264 …( ac.checkFilePermission( OUSTR("file:///home/dbo/path/path/bla"), OUSTR("read,write") ), invert ); in check_dbo_pos()
265 CHECK( ac.checkFilePermission( OUSTR("file:///usr/local/dbo/*"), OUSTR("read") ), invert ); in check_dbo_pos()
266 CHECK( ac.checkFilePermission( OUSTR("file:///usr/local/dbo/bla"), OUSTR("read") ), invert ); in check_dbo_pos()
267 CHECK( ac.checkRuntimePermission( OUSTR("DBO") ), invert ); in check_dbo_pos()
268 CHECK( ac.checkSocketPermission( OUSTR("dbo-1:1024-"), OUSTR("listen") ), invert ); in check_dbo_pos()
269 CHECK( ac.checkSocketPermission( OUSTR("dbo-1:2048-3122"), OUSTR("listen") ), invert ); in check_dbo_pos()
270 CHECK( ac.checkSocketPermission( OUSTR("dbo-1:2048-"), OUSTR("listen") ), invert ); in check_dbo_pos()
271 CHECK( ac.checkSocketPermission( OUSTR("dbo-11081:-1023"), OUSTR("resolve") ), invert ); in check_dbo_pos()
272 CHECK( ac.checkSocketPermission( OUSTR("dbo-11081:20-1023"), OUSTR("resolve") ), invert ); in check_dbo_pos()
273 CHECK( ac.checkSocketPermission( OUSTR("dbo-11081:18"), OUSTR("listen") ), invert ); in check_dbo_pos()
274 CHECK( ac.checkSocketPermission( OUSTR("dbo-11081:20-24"), OUSTR("listen") ), invert ); in check_dbo_pos()
275 CHECK( ac.checkSocketPermission( OUSTR("dbo-11081:22"), OUSTR("listen") ), invert ); in check_dbo_pos()
276 CHECK( ac.checkSocketPermission( OUSTR("dbo-11081"), OUSTR("connect") ), invert ); in check_dbo_pos()
277 CHECK( ac.checkSocketPermission( OUSTR("dbo-11081:22"), OUSTR("connect") ), invert ); in check_dbo_pos()
279 static void check_dbo_neg( AccessControl & ac, bool invert = false ) in check_dbo_neg() argument
281 check_defaults_neg( ac, invert ); in check_dbo_neg()
283 CHECK( ac.checkFilePermission( OUSTR("file:///home/-"), OUSTR("read") ), !invert ); in check_dbo_neg()
284 CHECK( ac.checkFilePermission( OUSTR("file:///home/jbu/bla"), OUSTR("read") ), !invert ); in check_dbo_neg()
285 CHECK( ac.checkFilePermission( OUSTR("file:///home/jbu/bla"), OUSTR("write") ), !invert ); in check_dbo_neg()
286 CHECK( ac.checkFilePermission( OUSTR("file:///home/jbu/bla"), OUSTR("read,write") ), !invert ); in check_dbo_neg()
287 CHECK( ac.checkFilePermission( OUSTR("file:///home/jbu/path/bla"), OUSTR("read") ), !invert ); in check_dbo_neg()
288 …c.checkFilePermission( OUSTR("file:///home/dbo/path/path/bla"), OUSTR("read,execute") ), !invert ); in check_dbo_neg()
289 CHECK( ac.checkFilePermission( OUSTR("file:///usr/local/-"), OUSTR("read") ), !invert ); in check_dbo_neg()
290 …CHECK( ac.checkFilePermission( OUSTR("file:///usr/local/dbo/path/bla"), OUSTR("read") ), !invert ); in check_dbo_neg()
291 …( ac.checkFilePermission( OUSTR("file:///usr/local/dbo/path/path/bla"), OUSTR("read") ), !invert ); in check_dbo_neg()
292 CHECK( ac.checkRuntimePermission( OUSTR("JBU") ), !invert ); in check_dbo_neg()
293 CHECK( ac.checkSocketPermission( OUSTR("dbo-11081"), OUSTR("listen") ), !invert ); in check_dbo_neg()
294 CHECK( ac.checkSocketPermission( OUSTR("dbo-11081:22"), OUSTR("accept") ), !invert ); in check_dbo_neg()
295 CHECK( ac.checkSocketPermission( OUSTR("jbu-11096:22"), OUSTR("resolve") ), !invert ); in check_dbo_neg()
309 static void check_jbu_pos( AccessControl & ac, bool invert = false ) in check_jbu_pos() argument
311 check_defaults_pos( ac, invert ); in check_jbu_pos()
313 CHECK( ac.checkFilePermission( OUSTR("file:///home/jbu/bla"), OUSTR("read") ), invert ); in check_jbu_pos()
314 CHECK( ac.checkFilePermission( OUSTR("file:///home/jbu/bla"), OUSTR("write") ), invert ); in check_jbu_pos()
315 CHECK( ac.checkFilePermission( OUSTR("file:///home/jbu/bla"), OUSTR("read,write") ), invert ); in check_jbu_pos()
316 …CHECK( ac.checkFilePermission( OUSTR("file:///home/jbu/path/bla"), OUSTR("read,write") ), invert ); in check_jbu_pos()
317 …( ac.checkFilePermission( OUSTR("file:///home/jbu/path/path/bla"), OUSTR("read,write") ), invert ); in check_jbu_pos()
318 CHECK( ac.checkRuntimePermission( OUSTR("JBU") ), invert ); in check_jbu_pos()
319 CHECK( ac.checkSocketPermission( OUSTR("jbu-11096"), OUSTR("resolve") ), invert ); in check_jbu_pos()
320 CHECK( ac.checkSocketPermission( OUSTR("jbu-11096:20-24"), OUSTR("resolve") ), invert ); in check_jbu_pos()
321 …K( ac.checkSocketPermission( OUSTR("dbo-11081.germany.sun.com:2048"), OUSTR("resolve") ), invert ); in check_jbu_pos()
323 static void check_jbu_neg( AccessControl & ac, bool invert = false ) in check_jbu_neg() argument
325 check_defaults_neg( ac, invert ); in check_jbu_neg()
327 CHECK( ac.checkFilePermission( OUSTR("file:///home/-"), OUSTR("read") ), !invert ); in check_jbu_neg()
328 CHECK( ac.checkFilePermission( OUSTR("file:///home/dbo/path/bla"), OUSTR("read") ), !invert ); in check_jbu_neg()
329 …CHECK( ac.checkFilePermission( OUSTR("file:///home/dbo/path/path/bla"), OUSTR("read") ), !invert ); in check_jbu_neg()
330 CHECK( ac.checkFilePermission( OUSTR("file:///home/dbo/bla"), OUSTR("read") ), !invert ); in check_jbu_neg()
331 CHECK( ac.checkFilePermission( OUSTR("file:///home/dbo/bla"), OUSTR("write") ), !invert ); in check_jbu_neg()
332 CHECK( ac.checkFilePermission( OUSTR("file:///home/dbo/bla"), OUSTR("read,write") ), !invert ); in check_jbu_neg()
333 CHECK( ac.checkFilePermission( OUSTR("file:///usr/local/-"), OUSTR("read") ), !invert ); in check_jbu_neg()
334 CHECK( ac.checkFilePermission( OUSTR("file:///usr/local/dbo/bla"), OUSTR("read") ), !invert ); in check_jbu_neg()
335 …( ac.checkFilePermission( OUSTR("file:///usr/local/dbo/path/path/bla"), OUSTR("read") ), !invert ); in check_jbu_neg()
336 CHECK( ac.checkRuntimePermission( OUSTR("DBO") ), !invert ); in check_jbu_neg()
337 CHECK( ac.checkSocketPermission( OUSTR("jbu-11096:20-24"), OUSTR("accept") ), !invert ); in check_jbu_neg()
338 CHECK( ac.checkSocketPermission( OUSTR("dbo-11081"), OUSTR("connect") ), !invert ); in check_jbu_neg()
339 …CHECK( ac.checkSocketPermission( OUSTR("dbo-11081.germany.sun.com"), OUSTR("connect") ), !invert ); in check_jbu_neg()
349 static void check_root_pos( AccessControl & ac, bool invert = false ) in check_root_pos() argument
351 check_defaults_pos( ac, invert ); in check_root_pos()
352 check_defaults_neg( ac, !invert ); in check_root_pos()
353 check_dbo_pos( ac, invert ); in check_root_pos()
354 check_dbo_neg( ac, !invert ); in check_root_pos()
355 check_jbu_pos( ac, invert ); in check_root_pos()
356 check_jbu_neg( ac, !invert ); in check_root_pos()
358 …HECK( ac.checkFilePermission( OUSTR("file:///etc/blabla"), OUSTR("read,write,execute") ), invert ); in check_root_pos()
359 …CHECK( ac.checkFilePermission( OUSTR("file:///home/root"), OUSTR("read,write,execute") ), invert ); in check_root_pos()
360 CHECK( ac.checkFilePermission( OUSTR("file:///root"), OUSTR("read,write,execute") ), invert ); in check_root_pos()
361 CHECK( ac.checkRuntimePermission( OUSTR("ROOT") ), invert ); in check_root_pos()