Hi all,

I am trying to call some function from my application of libsec(3SEC).
I am able to call some function calls but unable the following call
acl_fromtext(),acl_check(),acltomode() etc.
Could any one help me to make the above call.
I have not funded any document related to above function aprt from man page.
following are my acl_fromtext() call from my application:

#include <sys/acl.h>
int
main()
{
        int convert;
        char *acltextp = "user:bhushan:rw_";
        acl_t **aclp;

        convert = acl_fromtext(acltextp, &aclp);
        if(convert == 0)
                printf("converted\n");
        else
                printf("error\n");

return 0;
}

but above code is printing else part ie "error".is there anything wrong in 
program.
Any help or is there any demo example available for the above functions.

regards
 
 
This message posted from opensolaris.org

Reply via email to