HomeFreeBSD

mac: kdb/ddb framework hooks

Description

mac: kdb/ddb framework hooks

Add three simple hooks to the debugger allowing for a loaded MAC policy
to intervene if desired:

  1. Before invoking the kdb backend
  2. Before ddb command registration
  3. Before ddb command execution

We extend struct db_command with a private pointer and two flag bits
reserved for policy use.

Reviewed by: markj
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D35370

Details

Provenance
mhorneAuthored on Jul 18 2022, 9:23 PM
allanjudeCommitted on Jul 18 2022, 10:06 PM
Reviewer
markj
Differential Revision
D35370: mac: kdb/ddb framework hooks
Parents
rGa305b20ead13: ddb: tag core commands with DB_CMD_MEMSAFE
Branches
Unknown
Tags
Unknown