Research
.
Skip Search Box

SELinux Mailing List

Re: attributes on the other end of a network connection

From: James Morris <jmorris_at_redhat.com>
Date: Tue, 19 Apr 2005 23:44:47 -0400 (EDT)


On Tue, 19 Apr 2005, Kodungallur Varma wrote:

> Hi all,
>
> I have a basic client and a server program. my server has the
> capability to setcon() to a new domain, the client domain precisely.
> my server needs to find the domain and user name of the client user(my
> client tries to get a tcp connection first). I heard there is a
> function which gives the context and attributes of the other end,
> given the attributes got at the servers end and vice-versa.

The function you're looking for is getpeercon(3), which only currently works on Unix sockets.

  • James -- James Morris <jmorris@redhat.com>
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
Received on Tue 19 Apr 2005 - 23:49:34 EDT
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service