Displaying 1 result from an estimated 1 matches for "ltpuser1".
Did you mean:
ftpuser
2004 Aug 17
1
[Bug] LTP: mkdir fail after setreuid
...esult:
The fail is caused by the mkdir fail after setreuid.
Key code in the test case:
if ((pid =3D fork()) < 0) {
tst_brkm(TBROK, cleanup, "first fork failed");
}
if (pid =3D=3D 0) { /* first child */
/* set the child's ID to ltpuser1 */
if (setreuid(ltpuser1->pw_uid, ltpuser1->pw_uid) !=3D 0) {
tst_resm(TINFO, "setreuid failed in child #1");
exit(1);
}
if (mkdir(good_dir, 00700) !=3D 0) {
tst_resm(TINFO, "mkdir failed in chi...