Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:




Vulnerability Development mailing list archives

Re: /dev/urandom | logger "issue"
From: Alfonso De Gregorio <dira () SPEEDCOM IT>
Date: Thu, 24 Aug 2000 00:04:10 +0200

On Wed, 23 Aug 2000, Larry D'Anna wrote:

Is it possible to get the uid of the process at the other end of a
unix domain socket?  If so then why not have syslogd get the uid and
record who logged each message?

Yes, to find the effective uid that called connect() the daemon can
call getpeereuid().

However getpeereuid() is not portable. In Linux it can be implemented
using getsockopt() and SO_PEERCRED. In NetBSD the LOCAL_CREDS feature
does not returns infos until the caller write some data; this lead to
DoS attacks. And so on.

fhex


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]