Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jul 2015 22:00:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 201300] Let jexec execute shell if no command is issued.
Message-ID:  <bug-201300-8-I80sWKHEYs@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-201300-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-201300-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201300

Jamie Gritton <jamie@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jamie@FreeBSD.org
             Status|New                         |In Progress
           Assignee|freebsd-bugs@FreeBSD.org    |jamie@FreeBSD.org

--- Comment #1 from Jamie Gritton <jamie@FreeBSD.org> ---
Created attachment 158629
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158629&action=edit
alternate patch, including -l option

I've kept to the spirit of your patch, but reworked it with a few changes. 
Instead of hard-coding a username "root", I default to leaving the environment
along unless a user (or -l) is specified.  In the absence of a specified user,
I run the current environment's shell instead of root's.  I run the shell with
the "-i" argument, as chroot does.

I've also added a "-l" argument for a "clean" environment, same as jail(8)'s
"exec.clean" parameter.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201300-8-I80sWKHEYs>