Hello,

I'm trying to create a pset with pset_create() and I get errno=1. In the man of 
pset_create() is written that this happens when the {PRIV_SYS_RES_CONFIG} 
privilege is not asserted in the effectvie set of the calling process.
Is the problem indeed in the privilege?
Now I'm trying to add this privilege to the priv set of my process, but I don't 
succeed.
setppriv(PRIV_ON,  PRIV_SYS_RES_CONFIG,  NULL) - won't work. It returns errno 
22 ([i]op[/i] or [i]which[/i] out of bounds). When I create a temporary set: 
[i]priv_set_t *set[/i] and pass it to the syscall instead of NULL, it also 
fails.

Please help me with this. 
Thanks!
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to