diff options
author | maxim <maxim@FreeBSD.org> | 2006-04-16 12:32:04 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2006-04-16 12:32:04 +0000 |
commit | 004bb16acb94a6ae31c7405e8ae5b5d5c77bfdfa (patch) | |
tree | dfb977c8508457d392413314dae4db8c37ff878e /usr.sbin | |
parent | 9f61841fa2133dd87baea6b71760347fed086afc (diff) | |
download | FreeBSD-src-004bb16acb94a6ae31c7405e8ae5b5d5c77bfdfa.zip FreeBSD-src-004bb16acb94a6ae31c7405e8ae5b5d5c77bfdfa.tar.gz |
o Do not mangle current session user login name with jail -u|-U.
PR: bin/94730
Submitted by: Frank Behrens
MFC after: 1 month
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/jail/jail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/jail/jail.c b/usr.sbin/jail/jail.c index 76bb01d..49caa52 100644 --- a/usr.sbin/jail/jail.c +++ b/usr.sbin/jail/jail.c @@ -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); } |