← Documents Documentation/ABI/stable/procfs-audit_loginuid GitHub 원문 ↗

Linux 6.18.37 · ABI / stable

Audit login UID와 session ID ABI

/proc/$pid/loginuid의 권한·불변성 규칙과 자동 할당되는 /proc/$pid/sessionid를 설명합니다.

Source pathDocumentation/ABI/stable/procfs-audit_loginuid
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

Audit login UID

procfs-audit_loginuid:1-15

loginuid는 u32 10진수로 읽고 쓰며 설정 이후에는 CAP_AUDIT_CONTROL과 audit feature flag가 재설정 가능 여부를 제한합니다.

Audit login session ID

procfs-audit_loginuid:17-26

sessionid는 새 login마다 순차적으로 자동 할당되는 read-only u32 값입니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 What: Audit Login UID
2 Date: 2005-02-01
3 KernelVersion: 2.6.11-rc2 1e2d1492e178 ("[PATCH] audit: handle loginuid through proc")
4 Contact: linux-audit@redhat.com
5 Users: audit and login applications
6 Description:
7 The /proc/$pid/loginuid pseudofile is written to set and
8 read to get the audit login UID of process $pid as a
9 decimal unsigned int (%u, u32). If it is unset,
10 permissions are not needed to set it. The accessor must
11 have CAP_AUDIT_CONTROL in the initial user namespace to
12 write it if it has been set. It cannot be written again
13 if AUDIT_FEATURE_LOGINUID_IMMUTABLE is enabled. It
14 cannot be unset if AUDIT_FEATURE_ONLY_UNSET_LOGINUID is
15 enabled.
16
17 What: Audit Login Session ID
18 Date: 2008-03-13
19 KernelVersion: 2.6.25-rc7 1e0bd7550ea9 ("[PATCH] export sessionid alongside the loginuid in procfs")
20 Contact: linux-audit@redhat.com
21 Users: audit and login applications
22 Description:
23 The /proc/$pid/sessionid pseudofile is read to get the
24 audit login session ID of process $pid as a decimal
25 unsigned int (%u, u32). It is set automatically,
26 serially assigned with each new login.
27
28

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

Audit Login UID

1-15
항목
WhatAudit Login UID
Date2005년 2월 1일
KernelVersion2.6.11-rc2, commit 1e2d1492e178 "[PATCH] audit: handle loginuid through proc"
Contactlinux-audit@redhat.com
Usersaudit 및 login application

/proc/$pid/loginuid pseudofile에 쓰면 process $pid의 audit login UID를 설정하고, 읽으면 10진수 unsigned int(%u, u32)로 얻는다. 아직 설정되지 않았다면 설정에 별도 permission이 필요하지 않다.

이미 설정된 loginuid를 쓰려는 accessor는 initial user namespace에서 CAP_AUDIT_CONTROL을 가져야 한다. AUDIT_FEATURE_LOGINUID_IMMUTABLE이 활성화돼 있으면 다시 쓸 수 없다. AUDIT_FEATURE_ONLY_UNSET_LOGINUID가 활성화돼 있으면 설정을 해제할 수 없다.

Audit Login Session ID

17-26
항목
WhatAudit Login Session ID
Date2008년 3월 13일
KernelVersion2.6.25-rc7, commit 1e0bd7550ea9 "[PATCH] export sessionid alongside the loginuid in procfs"
Contactlinux-audit@redhat.com
Usersaudit 및 login application

/proc/$pid/sessionid pseudofile을 읽으면 process $pid의 audit login session ID를 10진수 unsigned int(%u, u32)로 얻는다. 값은 자동으로 설정되며 새 login마다 순차적으로 할당된다.