* Convert a command for the auditon() system call to a audit event. */
| 349 | * Convert a command for the auditon() system call to a audit event. |
| 350 | */ |
| 351 | au_event_t |
| 352 | auditon_command_event(int cmd) |
| 353 | { |
| 354 | |
| 355 | switch(cmd) { |
| 356 | case A_GETPOLICY: |
| 357 | return (AUE_AUDITON_GPOLICY); |
| 358 | |
| 359 | case A_SETPOLICY: |
| 360 | return (AUE_AUDITON_SPOLICY); |
| 361 | |
| 362 | case A_GETKMASK: |
| 363 | return (AUE_AUDITON_GETKMASK); |
| 364 | |
| 365 | case A_SETKMASK: |
| 366 | return (AUE_AUDITON_SETKMASK); |
| 367 | |
| 368 | case A_GETQCTRL: |
| 369 | return (AUE_AUDITON_GQCTRL); |
| 370 | |
| 371 | case A_SETQCTRL: |
| 372 | return (AUE_AUDITON_SQCTRL); |
| 373 | |
| 374 | case A_GETCWD: |
| 375 | return (AUE_AUDITON_GETCWD); |
| 376 | |
| 377 | case A_GETCAR: |
| 378 | return (AUE_AUDITON_GETCAR); |
| 379 | |
| 380 | case A_GETSTAT: |
| 381 | return (AUE_AUDITON_GETSTAT); |
| 382 | |
| 383 | case A_SETSTAT: |
| 384 | return (AUE_AUDITON_SETSTAT); |
| 385 | |
| 386 | case A_SETUMASK: |
| 387 | return (AUE_AUDITON_SETUMASK); |
| 388 | |
| 389 | case A_SETSMASK: |
| 390 | return (AUE_AUDITON_SETSMASK); |
| 391 | |
| 392 | case A_GETCOND: |
| 393 | return (AUE_AUDITON_GETCOND); |
| 394 | |
| 395 | case A_SETCOND: |
| 396 | return (AUE_AUDITON_SETCOND); |
| 397 | |
| 398 | case A_GETCLASS: |
| 399 | return (AUE_AUDITON_GETCLASS); |
| 400 | |
| 401 | case A_SETCLASS: |
| 402 | return (AUE_AUDITON_SETCLASS); |
| 403 | |
| 404 | case A_GETPINFO: |
| 405 | case A_SETPMASK: |
| 406 | case A_SETFSIZE: |
| 407 | case A_GETFSIZE: |
| 408 | case A_GETPINFO_ADDR: |