Re: How to check UID of process on the other side of local TCP/UDP connection
- From: "Greg Metcalfe" <metcalfegreg@xxxxxxxxx>
- Date: Tue, 28 Nov 2006 22:29:34 -0800
On Monday 27 November 2006 12:06, Vladimir Mitiouchev wrote:
On 11/24/06, rainmailbox2001-ola@xxxxxxxx <rainmailbox2001-ola@xxxxxxxx>wrote:
SO_PEERCRED isn't supported on HP-UX 11i for PA-RISC, at least. I think thereDo you have any ideas how this local
authentication can be achieved in some
different way?
identd
fstat (BSD)
lsof(Linux)
Unix sockets (unless of course Unix sockets are
the only good way to
resolve my problems).
SCM_CREDS (BSD)
SO_PEERCRED (Linux)
are some hoops to jump through in using SCM_CREDS. This may have all been
resolved for HP-UX versions for Itanic, though. I have no idea what might be
involved on AIX.
I think the most portable solution (O.P. wants portability across all modern
Unices) would be via the OpenSSL libs. There are vendor supported packages
available for Solaris, HP-UX, and AIX--probably pretty much the last of the
commercial Unices he has to worry about.
As the O.P. needs hundreds of connections per second, this might be too
expensive. But it would probably keep his porting work to a minimum.
--
Greg Metcalfe
- References:
- How to check UID of process on the other side of local TCP/UDP connection
- From: rainmailbox2001-ola
- Re: How to check UID of process on the other side of local TCP/UDP connection
- From: Vladimir Mitiouchev
- How to check UID of process on the other side of local TCP/UDP connection
- Prev by Date: Re: How to check UID of process on the other side of local TCP/UDP connection
- Next by Date: Re: Red Hat vs Debian Linux: overall security
- Previous by thread: Re: How to check UID of process on the other side of local TCP/UDP connection
- Next by thread: Re: How to check UID of process on the other side of local TCP/UDP connection
- Index(es):
Relevant Pages
|
|