<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/security/mac_veriexec_parser, 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-09-20T15:22:56Z</updated>
<entry>
<title>mac_veriexec_parser: Fix open_file error handling</title>
<updated>2024-09-20T15:22:56Z</updated>
<author>
<name>Heyang Zhou</name>
<email>hello@su3.io</email>
</author>
<published>2024-07-22T17:43:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6e45b50342d5adadf9dd08e3476fc90f715be1fc'/>
<id>urn:sha1:6e45b50342d5adadf9dd08e3476fc90f715be1fc</id>
<content type='text'>
NDFREE_PNBUF should be called after checking the return value of
vn_open(), and should only be called once.

Reviewed by: imp, zlei, Kornel Dulęba &lt;mindal@semihalf.com&gt;, Elliott Mitchell
Pull Request: https://github.com/freebsd/freebsd-src/pull/1338
</content>
</entry>
<entry>
<title>sys: Automated cleanup of cdefs and other formatting</title>
<updated>2023-11-27T05:24:00Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-11-24T20:12:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fdafd315ad0d0f28a11b9fb4476a9ab059c62b92'/>
<id>urn:sha1:fdafd315ad0d0f28a11b9fb4476a9ab059c62b92</id>
<content type='text'>
Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+&lt;sys/cdefs.h&gt;.*\n/
Remove /\n+#include\s+&lt;sys/cdefs.h&gt;.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+&lt;sys/cdefs.h&gt;\n#include\s+&lt;sys/types.h&gt;/
Remove /\n+#include\s+&lt;sys/cdefs.h&gt;\n#include\s+&lt;sys/param.h&gt;/
Remove /\n+#include\s+&lt;sys/cdefs.h&gt;\n#include\s+&lt;sys/capsicum.h&gt;/

Sponsored by:		Netflix
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:36Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=685dc743dc3b5645e34836464128e1c0558b404b'/>
<id>urn:sha1:685dc743dc3b5645e34836464128e1c0558b404b</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>mac_veriexec_parser: fix build after 7e1d3eefd410.</title>
<updated>2022-09-09T12:09:08Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2022-09-09T12:09:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=08e331f41bba9e4c0a241c3350c8111f633ec46e'/>
<id>urn:sha1:08e331f41bba9e4c0a241c3350c8111f633ec46e</id>
<content type='text'>
Sponsored by:	Klara, Inc.
</content>
</entry>
<entry>
<title>vfs: NDFREE(&amp;nd, NDF_ONLY_PNBUF) -&gt; NDFREE_PNBUF(&amp;nd)</title>
<updated>2022-03-24T10:20:51Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2022-03-24T10:10:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bb92cd7bcd16f3f36cdbda18d8193619892715fb'/>
<id>urn:sha1:bb92cd7bcd16f3f36cdbda18d8193619892715fb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>security: clean up empty lines in .c and .h files</title>
<updated>2020-09-01T21:26:00Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-09-01T21:26:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e5ecee7440496904939e936501d0db93bed15415'/>
<id>urn:sha1:e5ecee7440496904939e936501d0db93bed15415</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vfs: drop the mostly unused flags argument from VOP_UNLOCK</title>
<updated>2020-01-03T22:29:58Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-01-03T22:29:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b249ce48ea5560afdcff57e72a9880b7d3132434'/>
<id>urn:sha1:b249ce48ea5560afdcff57e72a9880b7d3132434</id>
<content type='text'>
Filesystems which want to use it in limited capacity can employ the
VOP_UNLOCK_FLAGS macro.

Reviewed by:	kib (previous version)
Differential Revision:	https://reviews.freebsd.org/D21427
</content>
</entry>
<entry>
<title>Fix mac_veriexec_parser build after r347938</title>
<updated>2019-08-08T16:51:49Z</updated>
<author>
<name>Marcin Wojtas</name>
<email>mw@FreeBSD.org</email>
</author>
<published>2019-08-08T16:51:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e7c5d9d3f2a6b76b7528aeaf2e9e284345ba62b0'/>
<id>urn:sha1:e7c5d9d3f2a6b76b7528aeaf2e9e284345ba62b0</id>
<content type='text'>
In r347938 the definition of mac_veriexec_metadata_add_file
so adjust the argument list accordingly.

Submitted by: Kornel Duleba &lt;mindal@semihalf.com&gt;
</content>
</entry>
<entry>
<title>Create kernel module to parse Veriexec manifest based on envs</title>
<updated>2019-04-03T03:57:37Z</updated>
<author>
<name>Marcin Wojtas</name>
<email>mw@FreeBSD.org</email>
</author>
<published>2019-04-03T03:57:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b0fefb25c558179e9f9c7f0d375c6a03fb567eb9'/>
<id>urn:sha1:b0fefb25c558179e9f9c7f0d375c6a03fb567eb9</id>
<content type='text'>
The current approach of injecting manifest into mac_veriexec is to
verify the integrity of it in userspace (veriexec (8)) and pass its
entries into kernel using a char device (/dev/veriexec).
This requires verifying root partition integrity in loader,
for example by using memory disk and checking its hash.
Otherwise if rootfs is compromised an attacker could inject their own data.

This patch introduces an option to parse manifest in kernel based on envs.
The loader sets manifest path and digest.
EVENTHANDLER is used to launch the module right after the rootfs is mounted.
It has to be done this way, since one might want to verify integrity of the init file.
This means that manifest is required to be present on the root partition.
Note that the envs have to be set right before boot to make sure that no one can spoof them.

Submitted by: Kornel Duleba &lt;mindal@semihalf.com&gt;
Reviewed by: sjg
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D19281
</content>
</entry>
</feed>
