RE: security framework and access()
RE: security framework and access()
- Subject: RE: security framework and access()
- From: Matsumoto Shigeyuki <email@hidden>
- Date: Mon, 16 Jul 2001 10:23:38 +0900
>
> I used AuthorizationExecuteWithPrivileges in security framework. But
>
> launched instance of 'hdiutil' fails to open raw disk devices.
>
>
What is your exact command? What is the error message? Does it work on
>
the command line? Did you try similar or other helpful commands in place?
The command is like that,
hdiutil convert /dev/rdisk1s1s2 -format UDRO -o /tmp/DiskImage
and it works on the command line. (You will need 'sudo' before the line.)
>
> Do you think 'sudo' is safe for my purpose?
>
>
AFAIK, both should provide equal functionality.
I expected so.
But it seems that AuthorizationExecuteWithPrivileges is using seteuid(),
not setuid(). I could understood if they say "This is our policy".
Shigeyuki Matsumoto