HomeFreeBSD

Enter a write sequence when updating rights.

Description

Enter a write sequence when updating rights.

The Capsicum system calls modify file descriptor table entries. To
ensure that readers observe a consistent snapshot of descriptor writes,
the system calls need to signal to unlocked readers that an update is
pending.

Note that ioctl rights are always checked with the descriptor table lock
held, so it is not strictly necessary to signal unlocked readers.
However, we probably want to enable lockless ioctl checks eventually, so
use seqc_write_begin() in kern_cap_ioctls_limit() too.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D24119

Details

Provenance
markjAuthored on
Reviewer
kib
Differential Revision
D24119: Enter a write sequence when updating rights.
Parents
rS359131: The MTU candidates MUST be a multiple of 4, so make them so.
Branches
Unknown
Tags
Unknown