Linux-man Archive on
 help / color / Atom feed
* [PATCH] proc.5: Add /proc/[pid]/loginuid
@ 2019-10-13 23:32 Lucas Werkmeister
  0 siblings, 0 replies; only message in thread
From: Lucas Werkmeister @ 2019-10-13 23:32 UTC (permalink / raw)
  To: Michael Kerrisk; +Cc: linux-man, Lucas Werkmeister

Signed-off-by: Lucas Werkmeister <>

    On my system, this file is used by logname(1), but I decided against
    mentioning the command, since it’s an indirect relation at best (via
    getlogin(3)) that’s not mentioned in other documentation either.

 man5/proc.5 | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/man5/proc.5 b/man5/proc.5
index dd05db6c6..25a971afc 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -1190,9 +1190,23 @@ this file is protected to allow reading only by the real UID of the process.
 Since Linux 2.6.36,
 .\" commit 3036e7b490bf7878c6dae952eec5fb87b1106589
 this file is readable by all users on the system.
-.\" FIXME Describe /proc/[pid]/loginuid
-.\"       Added in 2.6.11; updating requires CAP_AUDIT_CONTROL
+.IR /proc/[pid]/loginuid " (since Linux 2.6.11)"
+This file contains the login user ID of the process,
+which is typically set by
+.BR pam_loginuid (8)
+during the login process and not influenced by later user changes
+such as through commands like
+.BR su (1)
+.BR sudo (8).
+A process must be privileged
+to update this file.
+This file is present only if the kernel was configured with
+.BR CONFIG_AUDIT " (since Linux 5.1),"
 .IR /proc/[pid]/map_files/ " (since kernel 3.3)
 .\" commit 640708a2cff7f81e246243b0073c66e6ece7e53e

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-13 23:32 [PATCH] proc.5: Add /proc/[pid]/loginuid Lucas Werkmeister

Linux-man Archive on

Archives are clonable:
	git clone --mirror linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ \
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone