<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/modules/mac_do/Makefile, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-05-22T12:01:41Z</updated>
<entry>
<title>mac_do: add a new MAC/do policy and mdo(1) utility</title>
<updated>2024-05-22T12:01:41Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2024-05-09T22:03:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8aac90f18aef7c9eea906c3ff9a001ca7b94f375'/>
<id>urn:sha1:8aac90f18aef7c9eea906c3ff9a001ca7b94f375</id>
<content type='text'>
This policy enables a user to become another user without having to be
root (hence no setuid binary). it is configured via rules using sysctl
security.mac.do.rules

For example:
security.mac.do.rules=uid=1001:80,gid=0:any

The above rule means the user identifier by the uid 1001 is able to
become user 80
Any user of the group 0 are allowed to become any user on the system.

The mdo(1) utility expects the MAC/do policy to be installed and its
rules defined.

Reviewed by:	des
Differential Revision:	https://reviews.freebsd.org/D45145
</content>
</entry>
</feed>
