[Bug 276094] freebsd-update: -j/-b have incomplete/unclear semantics

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 03 Jan 2024 11:22:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276094

            Bug ID: 276094
           Summary: freebsd-update: -j/-b have incomplete/unclear
                    semantics
           Product: Base System
           Version: 13.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: michaelo@FreeBSD.org

manpage says for -j:
>     -j jail        Operate on the given jail specified by jid or name.  (The
>                    version of the installed userland is detected and the
>                    --currently-running option is no more required.)

So I would assume that all file/dir related operations: -b, -d, -f, -k are
rebased on top of the basedir of the jail, but this does not happen. Only -b is
set.
Issues:
* Bug 235318, Bug 253989: host's workdir is shredded
* -f  is used from the host, resulting in different conf applied, all paths
from that conffile need to be rebase on top of basedir
* -k since -f is not rebased the wrong key might be used.

Expectatation is that all operations runs fully isolated from the host, namely
jailed. Even if a jail isn't used -b should describe where and how it is
applied...

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