* [LTP] [PATCH] setresuid04.c: add tmpdir and leaving rgid, sgid unchanged
@ 2022-12-08 7:45 Avinesh Kumar
2022-12-08 7:50 ` Li Wang
0 siblings, 1 reply; 2+ messages in thread
From: Avinesh Kumar @ 2022-12-08 7:45 UTC (permalink / raw)
To: ltp
Signed-off-by: Avinesh Kumar <akumar@suse.de>
---
testcases/kernel/syscalls/setresuid/setresuid04.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/testcases/kernel/syscalls/setresuid/setresuid04.c b/testcases/kernel/syscalls/setresuid/setresuid04.c
index 886ecdd0b..833aee91d 100644
--- a/testcases/kernel/syscalls/setresuid/setresuid04.c
+++ b/testcases/kernel/syscalls/setresuid/setresuid04.c
@@ -52,7 +52,7 @@ static void run(void)
if (WIFEXITED(status) && WEXITSTATUS(status) != 0)
tst_res(TFAIL, "child process exited with status: %d", status);
- SAFE_SETRESUID(0, 0, 0);
+ SAFE_SETRESUID(-1, 0, -1);
TST_EXP_FD(open(TEMP_FILE, O_RDWR));
SAFE_CLOSE(TST_RET);
}
@@ -68,5 +68,6 @@ static struct tst_test test = {
.test_all = run,
.cleanup = cleanup,
.needs_root = 1,
+ .needs_tmpdir = 1,
.forks_child = 1
};
--
2.38.1
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [LTP] [PATCH] setresuid04.c: add tmpdir and leaving rgid, sgid unchanged
2022-12-08 7:45 [LTP] [PATCH] setresuid04.c: add tmpdir and leaving rgid, sgid unchanged Avinesh Kumar
@ 2022-12-08 7:50 ` Li Wang
0 siblings, 0 replies; 2+ messages in thread
From: Li Wang @ 2022-12-08 7:50 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
Thanks, merged!!
--
Regards,
Li Wang
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-08 7:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-08 7:45 [LTP] [PATCH] setresuid04.c: add tmpdir and leaving rgid, sgid unchanged Avinesh Kumar
2022-12-08 7:50 ` Li Wang
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.