HomeFreeBSD

Decompose linkat()/renameat() rights to source and target.

Description

Decompose linkat()/renameat() rights to source and target.

To make it easier to understand how Capsicum interacts with linkat() and
renameat(), rename the rights to CAP_{LINK,RENAME}AT_{SOURCE,TARGET}.

This also addresses a shortcoming in Capsicum, where it isn't possible
to disable linking to files stored in a directory. Creating hardlinks
essentially makes it possible to access files with additional rights.

Reviewed by: rwatson, wblock
Differential Revision: https://reviews.freebsd.org/D3411

Details

Provenance
edAuthored on
Reviewer
rwatson
Differential Revision
D3411: Decompose linkat()/renameat() rights to source and target.
Parents
rS287208: Make it buildable with WITH_OPENLDAP, again.
Branches
Unknown
Tags
Unknown