Re: chflags -RL and symlinks pointing outside the traversal: preserve behavior or add a Capsicum guardrail?

Alan Somers <[email protected]>
Newsgroups gmane.os.freebsd.devel.hackers
Message-ID <CAOtMX2icReqQuxhGT4_O2oJ_EEy2h3uk5TECUoGzp7zQQJGy=A@mail.gmail.com>
On Thu, Aug 20, 2026 at 7:49 PM Konstantin Belousov <[email protected]> wrote:
>
> IMO there must be an option to disable the capability mode.
> Ideally, the option would be consistent across most of the utilities.
>
> Also, if we are talking about making the capsicum entry semi-mandatory,
> as the first step we should remove the CAPABILITIES/CAPABILITY_MODE
> options from kernel build. (To make it clear, make the features
> unconditional).

I definitely agree with making capsicum mandatory in the kernel.  It's
certainly mature enough to be required by now.  As for a switch to
disable it, we're proposing --dereference-links-unsafely in the linked
PR.  That name makes sense for chflags (and chmod, chown, etc), and
doesn't assume that the user knows what "capsicum" means.  But it
wouldn't make sense for very many utilities that don't have a -R
option.  Would you like a different name?

https://github.com/freebsd/freebsd-src/pull/2375
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.