Skip to contentSkip to conversation

close_range01: Drop CAP_SYS_ADMIN

PATCH Superseded Richard Palethorpe 1 participant 1 message Feb 15, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 close_range01: Drop CAP_SYS_ADMIN

---
 testcases/kernel/syscalls/close_range/close_range01.c | 4 ++++
 1 file changed, 4 insertions(+)
testcases/kernel/syscalls/close_range/close_range01.c +4 -0
index f4be60bb3..56def2426 100644
@@ -197,6 +197,10 @@ static struct tst_test test = {
 	.all_filesystems = 1,
 	.needs_root = 1,
 	.test = run,
+	.caps = (struct tst_cap []) {
+		TST_CAP(TST_CAP_DROP, CAP_SYS_ADMIN),
+		{}
+	},
 	.taint_check = TST_TAINT_W | TST_TAINT_D,
 	.setup = setup,
 	.tags = (const struct tst_tag[]) {
Signature · 1 line
2.30.0