From 004bb16acb94a6ae31c7405e8ae5b5d5c77bfdfa Mon Sep 17 00:00:00 2001 From: maxim Date: Sun, 16 Apr 2006 12:32:04 +0000 Subject: o Do not mangle current session user login name with jail -u|-U. PR: bin/94730 Submitted by: Frank Behrens MFC after: 1 month --- usr.sbin/jail/jail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/jail/jail.c') 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); } -- cgit v1.1