Switching net configurations
Switching net configurations
- Subject: Switching net configurations
- From: Matt Mashyna <email@hidden>
- Date: Wed, 27 Nov 2002 16:04:24 -0500
I have a carbon app that needs to ensure that the right net location
is set. So, I made a helper tool to do that on OS 8/9 and another on
OS X. Works fine on 8/9 but the OS X helper won't set the
configuration because of privs. If I run it as root everything is
fine. I know I can select the location from the menu when I'm not
logged in as root, so why won't my helper do it ?
I'm thinking that I need to make a self repair tool and call it like
the CallMachOFramework example. I don't know why but I'm dreading
this route. Probably because it doesn't fit all that well out of the
box. The self repair tool example expects to get commands from stdio
and pass them through when a repair is done from parent to child.
This totally screws up AppleEvent calls because when I look up the
process I can't tell which is the parent and which is the child... I
know, I know I could if I tried.
I also tried to make the helper do the authorization but that didn't
work. I know that's a bad idea but shouldn't it work ? I get extended
privs but it doesn't let me switch. Ideally Id like to be able to
change and create settings too.
Any ideas ? Geez, I thought this was going to be easy.
Matt
--
----------------------------------------------------------------
Matt Mashyna
email@hidden
The Frodis Co
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.