From: Avinesh Kumar <akumar@suse.de>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] setreuid01: Use SETREUID() instead of setreuid() to check 32bit syscall
Date: Tue, 10 Jan 2023 18:37:11 +0530 [thread overview]
Message-ID: <20230110130711.29274-1-akumar@suse.de> (raw)
Signed-off-by: Avinesh Kumar <akumar@suse.de>
---
testcases/kernel/syscalls/setreuid/setreuid01.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/testcases/kernel/syscalls/setreuid/setreuid01.c b/testcases/kernel/syscalls/setreuid/setreuid01.c
index bbf29d360..7c2b6d589 100644
--- a/testcases/kernel/syscalls/setreuid/setreuid01.c
+++ b/testcases/kernel/syscalls/setreuid/setreuid01.c
@@ -26,13 +26,13 @@ static void run(void)
euid = geteuid();
UID16_CHECK(euid, setreuid);
- TST_EXP_PASS(setreuid(-1, -1));
- TST_EXP_PASS(setreuid(-1, euid));
- TST_EXP_PASS(setreuid(ruid, -1));
- TST_EXP_PASS(setreuid(-1, ruid));
- TST_EXP_PASS(setreuid(euid, -1));
- TST_EXP_PASS(setreuid(euid, euid));
- TST_EXP_PASS(setreuid(ruid, ruid));
+ TST_EXP_PASS(SETREUID(-1, -1));
+ TST_EXP_PASS(SETREUID(-1, euid));
+ TST_EXP_PASS(SETREUID(ruid, -1));
+ TST_EXP_PASS(SETREUID(-1, ruid));
+ TST_EXP_PASS(SETREUID(euid, -1));
+ TST_EXP_PASS(SETREUID(euid, euid));
+ TST_EXP_PASS(SETREUID(ruid, ruid));
}
static struct tst_test test = {
--
2.39.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2023-01-10 13:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-10 13:07 Avinesh Kumar [this message]
2023-01-10 14:20 ` [LTP] [PATCH] setreuid01: Use SETREUID() instead of setreuid() to check 32bit syscall Richard Palethorpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230110130711.29274-1-akumar@suse.de \
--to=akumar@suse.de \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.