<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/security/mac_ddb, branch stable/14</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>mac_ddb: Fix the show rman validator.</title>
<updated>2022-08-12T17:20:05+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2022-08-12T17:20:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3a3af6b2a160bea72509a9d5ef84e25906b0478a'/>
<id>3a3af6b2a160bea72509a9d5ef84e25906b0478a</id>
<content type='text'>
The validator always returned true due to an incorrect check.

Reviewed by:	mhorne, imp
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D36125
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The validator always returned true due to an incorrect check.

Reviewed by:	mhorne, imp
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D36125
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "mac_ddb: Make db_show_vnet_valid() handle !VIMAGE"</title>
<updated>2022-07-21T14:26:54+00:00</updated>
<author>
<name>Allan Jude</name>
<email>allanjude@FreeBSD.org</email>
</author>
<published>2022-07-21T14:26:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e89841f893181fc2539b741418202ab3a2155eba'/>
<id>e89841f893181fc2539b741418202ab3a2155eba</id>
<content type='text'>
jhb@ already fixed this in a different way

Reported by: andrew

This reverts commit 3810b37903220af1a369d3c4032ae25fb2d7949d.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
jhb@ already fixed this in a different way

Reported by: andrew

This reverts commit 3810b37903220af1a369d3c4032ae25fb2d7949d.
</pre>
</div>
</content>
</entry>
<entry>
<title>mac_ddb: Make db_show_vnet_valid() handle !VIMAGE</title>
<updated>2022-07-21T14:01:01+00:00</updated>
<author>
<name>Allan Jude</name>
<email>allanjude@FreeBSD.org</email>
</author>
<published>2022-07-21T13:58:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3810b37903220af1a369d3c4032ae25fb2d7949d'/>
<id>3810b37903220af1a369d3c4032ae25fb2d7949d</id>
<content type='text'>
Reported by:	kib
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported by:	kib
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
</pre>
</div>
</content>
</entry>
<entry>
<title>mac_ddb: Only include the vnet validator in VIMAGE kernels.</title>
<updated>2022-07-20T23:02:56+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2022-07-20T23:02:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b43b8f81578cbb7bddbd6f7b8ebe06a219c88140'/>
<id>b43b8f81578cbb7bddbd6f7b8ebe06a219c88140</id>
<content type='text'>
This fixes the build of at least i386 MINIMAL which was failing with
the error:

sys/security/mac_ddb/mac_ddb.c:200:15: error: use of undeclared identifier 'vnet'; did you mean 'int'?
                if ((void *)vnet == (void *)addr)
                            ^~~~
                            int

Sponsored by:	DARPA
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes the build of at least i386 MINIMAL which was failing with
the error:

sys/security/mac_ddb/mac_ddb.c:200:15: error: use of undeclared identifier 'vnet'; did you mean 'int'?
                if ((void *)vnet == (void *)addr)
                            ^~~~
                            int

Sponsored by:	DARPA
</pre>
</div>
</content>
</entry>
<entry>
<title>mac_ddb: add some validation functions</title>
<updated>2022-07-18T22:06:22+00:00</updated>
<author>
<name>Mitchell Horne</name>
<email>mhorne@FreeBSD.org</email>
</author>
<published>2022-07-18T21:25:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4e2121c10afc3d9273368eae776fe31d0c68ba6a'/>
<id>4e2121c10afc3d9273368eae776fe31d0c68ba6a</id>
<content type='text'>
These global objects are easy to validate, so provide the helper
functions to do so and include these commands in the allow lists.

Reviewed by:	markj
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D35372
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These global objects are easy to validate, so provide the helper
functions to do so and include these commands in the allow lists.

Reviewed by:	markj
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D35372
</pre>
</div>
</content>
</entry>
<entry>
<title>mac: add new mac_ddb(4) policy</title>
<updated>2022-07-18T22:06:15+00:00</updated>
<author>
<name>Mitchell Horne</name>
<email>mhorne@FreeBSD.org</email>
</author>
<published>2022-07-18T21:24:06+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=287d467c5db5a46f13566a2f9dae80a695335c73'/>
<id>287d467c5db5a46f13566a2f9dae80a695335c73</id>
<content type='text'>
Generally, access to the kernel debugger is considered to be unsafe from
a security perspective since it presents an unrestricted interface to
inspect or modify the system state, including sensitive data such as
signing keys.

However, having some access to debugger functionality on production
systems may be useful in determining the cause of a panic or hang.
Therefore, it is desirable to have an optional policy which allows
limited use of ddb(4) while disabling the functionality which could
reveal system secrets.

This loadable MAC module allows for the use of some ddb(4) commands
while preventing the execution of others. The commands have been broadly
grouped into three categories:
 - Those which are 'safe' and will not emit sensitive data (e.g. trace).
   Generally, these commands are deterministic and don't accept
   arguments.
 - Those which are definitively unsafe (e.g. examine &lt;addr&gt;, search
   &lt;addr&gt; &lt;value&gt;)
 - Commands which may be safe to execute depending on the arguments
   provided (e.g. show thread &lt;addr&gt;).

Safe commands have been flagged as such with the DB_CMD_MEMSAFE flag.

Commands requiring extra validation can provide a function to do so.
For example, 'show thread &lt;addr&gt;' can be used as long as addr can be
checked against the system's list of process structures.

The policy also prevents debugger backends other than ddb(4) from
executing, for example gdb(4).

Reviewed by:	markj, pauamma_gundo.com (manpages)
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D35371
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Generally, access to the kernel debugger is considered to be unsafe from
a security perspective since it presents an unrestricted interface to
inspect or modify the system state, including sensitive data such as
signing keys.

However, having some access to debugger functionality on production
systems may be useful in determining the cause of a panic or hang.
Therefore, it is desirable to have an optional policy which allows
limited use of ddb(4) while disabling the functionality which could
reveal system secrets.

This loadable MAC module allows for the use of some ddb(4) commands
while preventing the execution of others. The commands have been broadly
grouped into three categories:
 - Those which are 'safe' and will not emit sensitive data (e.g. trace).
   Generally, these commands are deterministic and don't accept
   arguments.
 - Those which are definitively unsafe (e.g. examine &lt;addr&gt;, search
   &lt;addr&gt; &lt;value&gt;)
 - Commands which may be safe to execute depending on the arguments
   provided (e.g. show thread &lt;addr&gt;).

Safe commands have been flagged as such with the DB_CMD_MEMSAFE flag.

Commands requiring extra validation can provide a function to do so.
For example, 'show thread &lt;addr&gt;' can be used as long as addr can be
checked against the system's list of process structures.

The policy also prevents debugger backends other than ddb(4) from
executing, for example gdb(4).

Reviewed by:	markj, pauamma_gundo.com (manpages)
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D35371
</pre>
</div>
</content>
</entry>
</feed>
