• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: network security & moreunix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: network security & moreunix


  • Subject: Re: network security & moreunix
  • From: Dev_Apple <email@hidden>
  • Date: Tue, 14 Jun 2005 18:09:35 -0700

The bottom line is that I need to communicate with a process that can run root privileges. I also need to be able to communicate with this process via parent/child socket with a non-privileged process. -- can this be done?

An example would be to modify /private/etc/hosts or /private/etc/ftpusers.

I had thought of the MoreAuthSample because of the sample "tool" which is included in the bundle. However, this is really from a Java->JNI code base which is downloaded into cache, the interface is already set and I would really like to keep the code as small as possible.



On Jun 14, 2005, at 8:01 AM, Quinn wrote:

At 7:03 -0700 14/6/05, Dev_Apple wrote:
When I call moreunixread, I set fdIn to STDIN_FILENO. The problem I get is at the read. At this point, the computer hangs. Has anyone seen this problem before and know what to do?

There are way too many variables here to tell what's going on. However, I have a couple of suggestions:


o MoreSecurity relies on stdin and stdout as part of its operation. If you use printf for debugging, you will encounter problems. Many developers trip up on this.

o The sample that ships with MoreSecurity (MoreAuthSample) works. If you have problems integrating MoreSecurity in your own code, take a look at the differences between your code and the sample. As you slowly transfer your functionality to the sample, the point at which it stops working should be obvious.

Share and Enjoy
-- Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


Randy Chapel
08/940 (SFRM) Testing & Santa Cruz Area Coordinator, Proctor, Membership Committee member
San Francisco Regional Mensa
Mensa Phone:  (415) 289-7080
Email: email@hidden
(email@hidden, email@hidden)
SFRM Website: http://www.sfmensa.org
American Mensa Website: http://us.mensa.org
Mensa International: http://www.mensa.org


Personal Website: www.chapelhome.com
Business Website: www.impactdev.com
Consulting: Mac, Window, Unix, Palm, Internet and Java engineering
work/voice mail: (831) 338-1314

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >network security & moreunix (From: Dev_Apple <email@hidden>)
 >Re: network security & moreunix (From: Quinn <email@hidden>)

  • Prev by Date: Ensuring host-name matching
  • Next by Date: FW: mbufs
  • Previous by thread: Re: network security & moreunix
  • Next by thread: Ensuring host-name matching
  • Index(es):
    • Date
    • Thread