Hi All,

I have one problem to run the following program .
When I run the following program its gives me error as
bash-3.00# ./a.out
au_write: Invalid argument

I know its coming from   au_write(ard, au_to_me() is creating problem,but how 
can I solve this issues.Any help.
//Source  Code
#include <bsm/libbsm.h>

#define AUE_test 32768

int
main()
{
        int ard;
        if ((ard = au_open()) == -1){
                perror("au_open");
                exit(1);
        }

        if (au_write(ard, au_to_me()) ||
            au_write(ard, au_to_text("test message")) ||
            au_write(ard, au_to_return32(0, 0))){
                if (errno == EPERM)
                        fprintf(stderr, "missing proc_audit privilege\n");
                else
                        perror("au_write");
                exit(1);
        }

        return 0;


regards
Bhushan
 
 
This message posted from opensolaris.org

Reply via email to