Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer > Re: Running a r...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 9 Topic 930 of 1040
Post > Topic >>

Re: Running a root process.

by Sherm Pendley <spamtrap@[EMAIL PROTECTED] > Mar 25, 2007 at 12:54 AM

SM Ryan <wyrmwif@[EMAIL PROTECTED]
> writes:

Tsoft, eh? I'll remember that, and make note not to use their products,
now
that I've seen their programmers' attitude towards security.

> Posted response for google archiving.

This whole thread is archived. Google knows what I really said - and now
it
also knows that you have a habit of misquoting people.

> # I would like to do some code like edit Apache configuration
> # that requires uid root. What I can do is just install a setuid
> # root and just make the changes unannounced. What I would like
> # to do use some function like this
> # 
> # 	suexec(...) - Display the security dialog and on successful
> # 		identification as an administrator user and password,
> # 		exec the program ... as setuid root.
> # 
>
> The answer is AuthorizationExecuteWithPrivileges.

Try reading the do***entation I pointed you to. It describes when to use
that function, when not to, and why it's a bad idea to use it for what
you're describing above.

> Sherm Pendley <spamtrap@[EMAIL PROTECTED]
> wrote:

I didn't write a single word of what you're attributing to me here.

> Thanks for directing me to the specific function so I didn't have to
wade
> through a bunch of irrelevant (to a very specific question) issues about
> authorisation and authentication and security servers.

The reason I *didn't* point you directly to that function is that the
overview
is far from irrelevant. You've ignored the im****tant parts. By doing so,
you
run the risk of opening up security flaws in your app.

In other words, your stubborn refusal to read the appropriate docs will
increase your users' risk of having their machines pwn3d. Unless that's
exactly what you want, I strongly suggest that you read the docs to which
I referred you.

> (Now that I have the function name, I can read the interface and
> understand Apple's entire philosophy on setuid programs, never
explicitly
> stated before

Actually, by skipping the intro material and going straight to the
interface,
you've entirely *missed* the philosophy. To understand that, you'll need
to
read the doc I pointed out to you.

> , and understand how their security framework rests on that
> philosophy and then proceed knowing where I am going to end up, instead
> having to meander page after page

Meander page after page? What are you talking about? I pointed you to
exactly
the page you needed. It wasn't the one you *wanted*, but that's a
different
kettle of fish.

Your basic premise is flawed; what you asked for would not have helped.
What
*would* have helped is doing as I suggested, searching Apple's developer
site
for "authorization", and reading the *entire* overview that's the first
link
returned by that search.

> So, yeah, thanks.

You're quite welcome.

sherm--

-- 
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
 




 9 Posts in Topic:
Running a root process.
SM Ryan <wyrmwif@[EMAI  2007-03-24 21:56:54 
Re: Running a root process.
Sherm Pendley <spamtra  2007-03-24 19:53:32 
Re: Running a root process.
SM Ryan <wyrmwif@[EMAI  2007-03-25 00:10:20 
Re: Running a root process.
Michael Ash <mike@[EMA  2007-03-24 19:19:46 
Re: Running a root process.
Sherm Pendley <spamtra  2007-03-24 20:45:06 
Re: Running a root process.
SM Ryan <wyrmwif@[EMAI  2007-03-25 02:54:09 
Re: Running a root process.
Sherm Pendley <spamtra  2007-03-25 00:54:35 
Re: Running a root process.
Ben Artin <macdev@[EMA  2007-03-25 02:16:12 
Re: Running a root process.
SM Ryan <wyrmwif@[EMAI  2007-03-26 22:13:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 7:27:37 CST 2008.