mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
o Do not mangle current session user login name with jail -u|-U.
PR: bin/94730 Submitted by: Frank Behrens MFC after: 1 month
This commit is contained in:
parent
0ef05a46fd
commit
2edf0a4432
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157790
@ -142,7 +142,7 @@ main(int argc, char **argv)
|
||||
if (setgid(pwd->pw_gid) != 0)
|
||||
err(1, "setgid");
|
||||
if (setusercontext(lcap, pwd, pwd->pw_uid,
|
||||
LOGIN_SETALL & ~LOGIN_SETGROUP) != 0)
|
||||
LOGIN_SETALL & ~LOGIN_SETGROUP & ~LOGIN_SETLOGIN) != 0)
|
||||
err(1, "setusercontext");
|
||||
login_close(lcap);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user