요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
What: /proc/*/attr/current
2
Contact: [email protected],
5
Description: The current security information used by a Linux
6
security module (LSM) that is active on the system.
7
The details of permissions required to read from
8
this interface and hence obtain the security state
9
of the task identified 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 and hence change the security state of
14
the task identified are LSM dependent.
15
The format of the data used by this interface is LSM
16
dependent.
17
SELinux, Smack and AppArmor provide this interface.
18
Users: SELinux user-space
19
Smack user-space
20
AppArmor user-space
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Task의 현재 LSM security information
1-20| 항목 | 내용 |
|---|---|
| What | /proc/*/attr/current |
| Contact | [email protected], [email protected], [email protected] |
| Description | System에서 active인 Linux security module(LSM)이 사용하는 현재 security information입니다. |
| Read permission | 이 interface에서 읽어 식별된 task의 security state를 얻는 데 필요한 permission의 상세 내용은 LSM에 따라 다릅니다. |
| Write target | Process는 이 interface가 자기 자신을 가리키지 않는 한 write할 수 없습니다. |
| Write permission | 이 interface에 write해 식별된 task의 security state를 바꾸는 데 필요한 다른 permission의 상세 내용은 LSM에 따라 다릅니다. |
| Data format | 이 interface가 사용하는 data format은 LSM에 따라 다릅니다. |
| Providers | SELinux, Smack, AppArmor가 이 interface를 제공합니다. |
| Users | SELinux user-space, Smack user-space, AppArmor user-space |
Read target /proc/PID/attr/current→LSM-specific read permission→Current task security state→LSM-specific format
Write /proc/PID/attr/current→PID must identify calling process itself→LSM-specific additional write permission→Change current security state
SELinux, Smack, or AppArmor→Defines semantics and format
Read와 format은 active LSM이 정의하고 write는 self task 조건과 추가 LSM permission을 모두 만족해야 한다.
Current task security state
procfs-attr-current:1-20Active LSM이 사용하는 task의 current security information을 제공합니다. Read permission·format은 LSM별이고 process는 자기 자신을 가리키는 interface에만 write할 수 있으며 추가 write permission도 LSM이 결정합니다.