[Bug 217545] jail: exec.poststop not executed, mount.fstab does not umount after removing jail

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue May 8 02:24:06 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217545

--- Comment #6 from gronke <stefan at gronke.net> ---
I would expect jail -r to respect the configuration a jail was started with
when the jail -c command did not complain about ignored options when setting
them. On the other hand it should still be able to override options with jail
-r.

    $ jail -c persist name=myjail exec.stop="/bin/echo EXECUTED"
    $ jail -r -v myjail | grep -c EXECUTED
    1
    $ jail -c persist name=myjail exec.stop="/bin/echo EXECUTED"
    $ jail -r -v exec.stop="/usr/bin/true" | grep -c EXECUTED
    0

In result a started jail can be safely stopped without any knowledge of its
internals when configured accordingly.

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


More information about the freebsd-jail mailing list