← Documents Documentation/ABI/testing/procfs-attr-prev GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

procfs previous-exec LSM security attribute ABI

SELinux·AppArmor가 가장 최근 exec() 직전 process에 사용한 security information을 /proc/*/attr/prev로 제공하는 방식과 LSM-dependent permission·format, self-only write 제약을 설명합니다.

Source pathDocumentation/ABI/testing/procfs-attr-prev
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

최근 exec() 이전 security state

procfs-attr-prev:1-19

Active LSM이 가장 최근 exec() call 이전 process에 사용한 security information입니다. Read·write permission과 format은 LSM별이며 process는 자기 자신을 가리키는 interface에만 write할 수 있습니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 What: /proc/*/attr/prev
2 Contact: linux-security-module@vger.kernel.org,
3 selinux@vger.kernel.org,
4 apparmor@lists.ubuntu.com
5 Description: The security information used on the process by
6 a Linux security module (LSM) active on the system
7 prior to the most recent exec() call.
8 The details of permissions required to read from
9 this interface is LSM dependent.
10 A process cannot write to this interface unless it
11 refers to itself.
12 The other details of permissions required to write to
13 this interface are LSM dependent.
14 The format of the data used by this interface is LSM
15 dependent.
16 SELinux and AppArmor provide this interface.
17 Users: SELinux user-space
18 AppArmor user-space
19
20

3. 한국어 전문 번역

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

가장 최근 exec() 이전의 LSM security information

1-19
항목내용
What/proc/*/attr/prev
Contactlinux-security-module@vger.kernel.org, selinux@vger.kernel.org, apparmor@lists.ubuntu.com
DescriptionSystem에서 active인 Linux security module(LSM)이 가장 최근 exec() call 이전 process에 사용한 security information입니다.
Read permission이 interface에서 읽는 데 필요한 permission의 상세 내용은 LSM에 따라 다릅니다.
Write targetProcess는 이 interface가 자기 자신을 가리키지 않는 한 write할 수 없습니다.
Write permission이 interface에 write하는 데 필요한 다른 permission의 상세 내용은 LSM에 따라 다릅니다.
Data format이 interface가 사용하는 data format은 LSM에 따라 다릅니다.
ProvidersSELinux와 AppArmor가 이 interface를 제공합니다.
UsersSELinux user-space, AppArmor user-space
/proc/*/attr/prev의 exec 시간축
Security state before latest exec()Most recent exec() transitionCurrent process security state
/proc/PID/attr/prevPrevious side of latest exec transitionLSM-specific format
Write attr/prevTarget must be calling process itselfAdditional LSM-specific permission
SELinux or AppArmorDefines semantics and format

Prev는 현재 state나 다음 exec용 pending state가 아니라 가장 최근 exec 직전에 사용하던 security information을 가리킨다.