Re: AuthorizationRightSet() failing to add a right

Graham Lee <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Dec 31, 2009, at 15:54 , Graham Lee wrote:

> Hi all,
> 
> firstly, happy new year to those of you using NSGregorianCalendar :)
> 

and to me, for solving the problem as soon as I hit send :-/
> 
>        authResult = AuthorizationRightSet(auth,
>                                           kRightName,
>                                           CFSTR(kAuthorizationRuleClassDeny),
>                                           NULL,
>                                           NULL,
>                                           NULL);

This was a parameter error, the rule should in this case be a dictionary with the k...Deny string as the value of the @"class" key. What I should have done before posting was to look in /var/log/secure.log to see what the securityd thought of my attempt to set the right.

Cheers,
Graham.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.