02-09-2011
1,
0
Join Date: Feb 2011
Last Activity: 9 February 2011, 3:26 AM EST
Posts: 1
Thanks Given: 0
Thanked 0 Times in 0 Posts
pset_create() and setppriv() in Solaris 10
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 (op or which out of bounds). When I create a temporary set: priv_set_t *set and pass it to the syscall instead of NULL, it also fails.
Please help me with this.
Thanks!