From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] setregid04_16
Date: Tue, 22 Nov 2016 09:23:09 +0100 [thread overview]
Message-ID: <20161122082110.GF5620@rei.lan> (raw)
In-Reply-To: <CAJ5vXcT-GH08vsrmGFtSnB+jW=9vJbpC6Csw0AbG_otK5FJJpw@mail.gmail.com>
Hi!
> please, help with the below error.
What LTP version you have? What kernel version? What glibc version? What
architecture? Have you tried to strace the testcase to check that
correct syscall is called?
> root@:/opt/ltp# ./testcases/bin/setregid04_16
> setregid04_16 1 TPASS : real or effective gid was modified as expected
> setregid04_16 2 TFAIL : setregid04.c:146: ERROR: After
> setregid(users, -1) real gid = 100; effective gid = 65535
> setregid04_16 0 TINFO : Expected: real gid = 100; effective gid = 0
> setregid04_16 3 TFAIL : setregid04.c:146: ERROR: After
> setregid(root,-1), real gid = 0; effective gid = 65535
> setregid04_16 0 TINFO : Expected: real gid = 0; effective gid = 0
> setregid04_16 4 TFAIL : setregid04.c:146: ERROR: After
> setregid(-1, -1), real gid = 65535; effective gid = 65535
> setregid04_16 0 TINFO : Expected: real gid = 0; effective gid = 0
> setregid04_16 5 TFAIL : setregid04.c:146: ERROR: After
> setregid(-1, root) real gid = 65535; effective gid = 0
> setregid04_16 0 TINFO : Expected: real gid = 0; effective gid = 0
> setregid04_16 6 TFAIL : setregid04.c:146: ERROR: After
> setregid(root, -1), real gid = 0; effective gid = 65535
> setregid04_16 0 TINFO : Expected: real gid = 0; effective gid = 0
> setregid04_16 7 TPASS : real or effective gid was modified as expected
> setregid04_16 8 TFAIL : setregid04.c:146: ERROR: After
> setregid(-1, -1) real gid = 65535; effective gid = 65535
> setregid04_16 0 TINFO : Expected: real gid = 1; effective gid = 100
> setregid04_16 9 TFAIL : setregid04.c:146: ERROR: After
> setregid(-1, users) real gid = 65535; effective gid = 100
> setregid04_16 0 TINFO : Expected: real gid = 1; effective gid = 100
Hmm, the gid set to -1 should not change the real/efective gid something
is wrong here and the value -1 (65535 when printed as unsigned int) does
change it. No idea what went wrong though.
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2016-11-22 8:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-18 9:51 [LTP] setregid04_16 nousi
2016-11-22 8:23 ` Cyril Hrubis [this message]
2016-11-22 11:30 ` nousi
2016-11-23 11:05 ` Cyril Hrubis
2016-11-23 11:12 ` Cyril Hrubis
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=20161122082110.GF5620@rei.lan \
--to=chrubis@suse.cz \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox