SocketSecurity

Search for usage in LXR

SocketSecurity Class Reference

#include <secure.h>

Inheritance diagram for SocketSecurity:

Public Member Functions

 SocketSecurity (int fd)
 
int peerGid () const
 
int peerPid () const
 
int peerUid () const
 

Detailed Description

The Socket_security class authenticates the peer for you.

It provides the process-id, user-id and group-id plus the MD5 sum of the connected binary.

Definition at line 19 of file secure.h.

Constructor & Destructor Documentation

◆ SocketSecurity()

SocketSecurity::SocketSecurity ( int sockfd)
explicit

Under Linux, Socket_security is supported.

The default version does nothing.

Definition at line 91 of file secure.cpp.

Member Function Documentation

◆ peerGid()

int SocketSecurity::peerGid ( ) const
inline

Returns the peer's group-id.

Definition at line 37 of file secure.h.

◆ peerPid()

int SocketSecurity::peerPid ( ) const
inline

Returns the peer's process-id.

Definition at line 25 of file secure.h.

◆ peerUid()

int SocketSecurity::peerUid ( ) const
inline

Returns the peer's user-id.

Definition at line 31 of file secure.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.