Skip to contentSkip to conversation

refpolicy: Define getrlimit permission for class process

PATCH New Stephen Smalley 2 participants 2 messages May 17, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 refpolicy: Define getrlimit permission for class process

This permission was added to the kernel in commit 791ec491c372 ("prlimit,security,selinux: add a security hook for prlimit") circa Linux 4.12 in order to control the ability to get the resource limits of another process. It is only checked when acting on another process, so getrlimit permission is not required for use of getrlimit(2).

---
 policy/flask/access_vectors | 1 +
 1 file changed, 1 insertion(+)
policy/flask/access_vectors +1 -0
index 69f69af..6204e68 100644
@@ -383,6 +383,7 @@ class process
 	execheap
 	setkeycreate
 	setsockcreate
+	getrlimit
 }
 
 
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/1 refpolicy: Define getrlimit permission for class process

Quoted 16 lines · Stephen Smalley via refpolicy

This permission was added to the kernel in commit 791ec491c372 ("prlimit,security,selinux: add a security hook for prlimit") circa Linux 4.12 in order to control the ability to get the resource limits of another process. It is only checked when acting on another process, so getrlimit permission is not required for use of getrlimit(2).

---
 policy/flask/access_vectors | 1 +
 1 file changed, 1 insertion(+)
policy/flask/access_vectors +0 -0
index 69f69af..6204e68 100644

policy/flask/access_vectors class process · line 387

Quoted 5 lines
policy/flask/access_vectors +1 -0
@@ -383,6 +383,7 @@ class process
 	execheap
 	setkeycreate
 	setsockcreate
+	getrlimit
 }

Merged.

Signature · 1 line
Chris PeBenito