Filevault and SUID Incompatibilities
Filevault and SUID Incompatibilities
- Subject: Filevault and SUID Incompatibilities
- From: "Giovanni Donelli" <email@hidden>
- Date: Tue, 10 Apr 2007 20:44:21 +0200
Dear Developers,
I have a small helper program that needs SU privileges to do its
job. Since I don't want this tool to ask user authentication all the
time, upon install it sets it's SUID and change its user owner to
wheel:root so, when it executes, its effective user id is root.
------------------
BEFORE:
-rwxr-xr-x 1 john john 64916 Apr 10 20:05 Helper
commands installer runs:
chown root:wheel Helper
chmod 7711 Helper
AFTER:
-rws--s--t 1 root wheel 64916 Apr 10 20:05 Helper
------------------
Now everything works great on any OS X... except when FileVault is enabled.
On user accounts where FileVault is enabled, the effective user id is
the same as the current user. (ie. getuid() == geteuid() )
I am positive the code executes well and the privileges are set in the
same way when FileVault is enabled or disabled.
Does anybody have any clue why this could be happening? I can't really
think of anything.
Thank you,
Giovanni Donelli
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden