[Bug 201300] Let jexec execute shell if no command is issued.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jul 11 22:00:38 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201300
Jamie Gritton <jamie at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jamie at FreeBSD.org
Status|New |In Progress
Assignee|freebsd-bugs at FreeBSD.org |jamie at FreeBSD.org
--- Comment #1 from Jamie Gritton <jamie at 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.
More information about the freebsd-bugs
mailing list