File: PROTOCOL

package info (click to toggle)
ucspi-unix 0.36-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 160 kB
  • ctags: 59
  • sloc: ansic: 409; makefile: 58; sh: 1
file content (25 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
UNIX UCSPI protocol definition
Copyright (C) 2000
Bruce Guenter <bruceg@em.ca>

This document defines the UNIX protocol for UCSPI tools. A UNIX client
communicates with a UNIX server on the same machine through a
local-domain stream socket.  See http://cr.yp.to/proto/ucspi.txt for
further details on the UCSPI standard.

Both the client and the server set up the following environment
variables:

  PROTO the string "UNIX"
  UNIXLOCALPATH is the path associated with the local-domain socket
  UNIXLOCALUID is the UID of the local process
  UNIXLOCALGID is the GID of the local process
  UNIXLOCALPID is the PID of the local process
  UNIXREMOTEEUID is the effective UID of the remote process
  UNIXREMOTEEGID is the effective GID of the remote process
  UNIXREMOTEPID is the PID of the remote process

Note that the remote variables are only supported on operating systems
that support some way of identifying the process connecting to a socket.
For now this is limited to Linux kernel 2.1 or later with SO_PEERCRED
support.