All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v1] mount08.c: SKIP test if selinux is running
@ 2025-07-28 21:27 Wei Gao via ltp
  2025-07-28 10:04 ` Cyril Hrubis
  2025-07-31 14:33 ` [LTP] [PATCH v2] mount08.c: Check EACCES error when test under selinux enabled in enforce mode Wei Gao via ltp
  0 siblings, 2 replies; 10+ messages in thread
From: Wei Gao via ltp @ 2025-07-28 21:27 UTC (permalink / raw)
  To: ltp

Signed-off-by: Wei Gao <wegao@suse.com>
---
 testcases/kernel/syscalls/mount/mount08.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testcases/kernel/syscalls/mount/mount08.c b/testcases/kernel/syscalls/mount/mount08.c
index e2824ac55..1f97de182 100644
--- a/testcases/kernel/syscalls/mount/mount08.c
+++ b/testcases/kernel/syscalls/mount/mount08.c
@@ -41,6 +41,9 @@ static void run(void)
 
 static void setup(void)
 {
+	if (tst_selinux_enforcing())
+		tst_brk(TCONF, "SKIP test since selinux is running");
+
 	SAFE_TOUCH(FOO, 0777, NULL);
 	SAFE_TOUCH(BAR, 0777, NULL);
 }
-- 
2.49.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-07-31 17:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-28 21:27 [LTP] [PATCH v1] mount08.c: SKIP test if selinux is running Wei Gao via ltp
2025-07-28 10:04 ` Cyril Hrubis
2025-07-28 10:31   ` Petr Vorel
2025-07-31 14:33 ` [LTP] [PATCH v2] mount08.c: Check EACCES error when test under selinux enabled in enforce mode Wei Gao via ltp
2025-07-31  4:39   ` Petr Vorel
2025-07-31  6:44   ` Andrea Cervesato via ltp
2025-07-31 10:54     ` Petr Vorel
2025-08-01  0:28   ` [LTP] [PATCH v3] " Wei Gao via ltp
2025-07-31 17:09     ` Andrea Cervesato via ltp
2025-07-31 17:13     ` Andrea Cervesato via ltp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.