To reproduce the issue, try this piece of code. If your system has any of the flags set,
you'll probably get EINVAL too.
```
#include <bsm/audit.h>
#include <stdio.h>
void main(){
int auditpolicy;
auditon(A_GETPOLICY, &auditpolicy, sizeof(&auditpolicy));
printf("retrieved policy = %d\n", auditpolicy);
int retval = auditon(A_SETPOLICY, &auditpolicy, sizeof(&auditpolicy));
if (retval < 0)
perror("setpolicy");
}
```