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

Linux 6.18.37 · ABI / testing

procfs next-exec LSM security attribute ABI

SELinux·AppArmor가 다음 exec() 뒤 process에 적용할 security information을 /proc/*/attr/exec로 제공하는 방식과 LSM-dependent permission·format, self-only write 제약을 설명합니다.

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

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

1. 요약·해설

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

다음 exec()용 security state

procfs-attr-exec:1-20

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

2. 영어 원문 전체

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

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

3. 한국어 전문 번역

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

다음 exec() 뒤 적용할 LSM security information

1-20
항목내용
What/proc/*/attr/exec
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에서 읽어 식별된 task의 security state를 얻는 데 필요한 permission의 상세 내용은 LSM에 따라 다릅니다.
Write targetProcess는 이 interface가 자기 자신을 가리키지 않는 한 write할 수 없습니다.
Write permission이 interface에 write해 식별된 task의 security state를 바꾸는 데 필요한 다른 permission의 상세 내용은 LSM에 따라 다릅니다.
Data format이 interface가 사용하는 data format은 LSM에 따라 다릅니다.
ProvidersSELinux와 AppArmor가 이 interface를 제공합니다.
UsersSELinux user-space, AppArmor user-space
/proc/*/attr/exec state transition
Calling process writes its own attr/execLSM-specific write permission and formatPending next-exec security informationSubsequent exec()Process uses requested security state
Read attr/execLSM-specific read permissionObtain configured next-exec state
SELinux or AppArmorDefines semantics and format

Self process가 LSM이 허용한 형식으로 pending state를 설정하면 그 값은 다음 exec() 이후의 process security information으로 사용된다.