Skip to content

handbook/security: document mdo(1) for privilege escalation#631

Open
kovan wants to merge 1 commit intofreebsd:mainfrom
kovan:handbook/security-mdo
Open

handbook/security: document mdo(1) for privilege escalation#631
kovan wants to merge 1 commit intofreebsd:mainfrom
kovan:handbook/security-mdo

Conversation

@kovan
Copy link
Copy Markdown
Contributor

@kovan kovan commented Mar 27, 2026

Add a new section to the Security chapter covering mdo(1), the built-in FreeBSD utility for executing commands as a different user via the mac_do(4) MAC framework module.

The section covers:

  • Loading the mac_do(4) kernel module
  • Configuring transition rules via sysctl
  • Basic usage examples (single command, interactive shell)

mdo requires no package installation unlike sudo or doas, and is part of the base system. The existing Handbook documents sudo and doas but not mdo.

PR: 293535

@kovan kovan force-pushed the handbook/security-mdo branch from 0a9b478 to 3660ccf Compare March 27, 2026 00:40
Add a new section covering mdo(1), the built-in FreeBSD utility for
executing commands as a different user via the mac_do(4) MAC module.

PR: 293535
Signed-off-by: Kit Dallege <xaum.io@gmail.com>
@kovan kovan force-pushed the handbook/security-mdo branch from 3660ccf to 88ce3bc Compare March 27, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant