요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
What: /proc/*/attr/prev
2
Contact: [email protected],
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
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
가장 최근 exec() 이전의 LSM security information
1-19| 항목 | 내용 |
|---|---|
| What | /proc/*/attr/prev |
| Contact | [email protected], [email protected], [email protected] |
| Description | System에서 active인 Linux security module(LSM)이 가장 최근 exec() call 이전 process에 사용한 security information입니다. |
| Read permission | 이 interface에서 읽는 데 필요한 permission의 상세 내용은 LSM에 따라 다릅니다. |
| Write target | Process는 이 interface가 자기 자신을 가리키지 않는 한 write할 수 없습니다. |
| Write permission | 이 interface에 write하는 데 필요한 다른 permission의 상세 내용은 LSM에 따라 다릅니다. |
| Data format | 이 interface가 사용하는 data format은 LSM에 따라 다릅니다. |
| Providers | SELinux와 AppArmor가 이 interface를 제공합니다. |
| Users | SELinux user-space, AppArmor user-space |
Security state before latest exec()→Most recent exec() transition→Current process security state
/proc/PID/attr/prev→Previous side of latest exec transition→LSM-specific format
Write attr/prev→Target must be calling process itself→Additional LSM-specific permission
SELinux or AppArmor→Defines semantics and format
Prev는 현재 state나 다음 exec용 pending state가 아니라 가장 최근 exec 직전에 사용하던 security information을 가리킨다.
최근 exec() 이전 security state
procfs-attr-prev:1-19Active LSM이 가장 최근 exec() call 이전 process에 사용한 security information입니다. Read·write permission과 format은 LSM별이며 process는 자기 자신을 가리키는 interface에만 write할 수 있습니다.