<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/sys/security/mac_veriexec, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2020-09-01T21:26:00Z</updated>
<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-test/commit/?id=e5ecee7440496904939e936501d0db93bed15415'/>
<id>urn:sha1:e5ecee7440496904939e936501d0db93bed15415</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mac_veriexec_fingerprint_check_vnode: v_writecount &gt; 0 means active writers</title>
<updated>2020-06-12T21:51:20Z</updated>
<author>
<name>Simon J. Gerraty</name>
<email>sjg@FreeBSD.org</email>
</author>
<published>2020-06-12T21:51:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=66d8bce379a92708003f3329ec66cbef6f118954'/>
<id>urn:sha1:66d8bce379a92708003f3329ec66cbef6f118954</id>
<content type='text'>
v_writecount can actually be &lt; 0 for text,
so check for v_writecount &gt; 0

Reviewed by:	stevek
MFC after:	1 week
</content>
</entry>
<entry>
<title>Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many)</title>
<updated>2020-02-26T14:26:36Z</updated>
<author>
<name>Pawel Biernacki</name>
<email>kaktus@FreeBSD.org</email>
</author>
<published>2020-02-26T14:26:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=7029da5c36f2d3cf6bb6c81bf551229f416399e8'/>
<id>urn:sha1:7029da5c36f2d3cf6bb6c81bf551229f416399e8</id>
<content type='text'>
r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are
still not MPSAFE (or already are but aren’t properly marked).
Use it in preparation for a general review of all nodes.

This is non-functional change that adds annotations to SYSCTL_NODE and
SYSCTL_PROC nodes using one of the soon-to-be-required flags.

Mark all obvious cases as MPSAFE.  All entries that haven't been marked
as MPSAFE before are by default marked as NEEDGIANT

Approved by:	kib (mentor, blanket)
Commented by:	kib, gallatin, melifaro
Differential Revision:	https://reviews.freebsd.org/D23718
</content>
</entry>
<entry>
<title>vfs: eliminate v_tag from struct vnode</title>
<updated>2020-01-07T04:29:34Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-01-07T04:29:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=478368ca410fbfe4ec98e187cae6317bf3d29498'/>
<id>urn:sha1:478368ca410fbfe4ec98e187cae6317bf3d29498</id>
<content type='text'>
There was only one consumer and it was using it incorrectly.

It is given an equivalent hack.

Reviewed by:	jeff
Differential Revision:	https://reviews.freebsd.org/D23037
</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-test/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>Add a new ioctl for the larger params struct that includes the label.</title>
<updated>2019-05-17T19:27:07Z</updated>
<author>
<name>Stephen J. Kiernan</name>
<email>stevek@FreeBSD.org</email>
</author>
<published>2019-05-17T19:27:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=942886743b18da416fd96e85787a49a8e160e060'/>
<id>urn:sha1:942886743b18da416fd96e85787a49a8e160e060</id>
<content type='text'>
We need to make the find_veriexec_file() function available publicly, so
rename it to mac_veriexec_metadata_find_file_info() and make it non-static.

Bump the version of the veriexec device interface so user space will know
the labelized version of fingerprint loading is available.

Approved by:	sjg
Obtained from:	Juniper Networks, Inc.
Differential Revision:	https://reviews.freebsd.org/D20295
</content>
</entry>
<entry>
<title>Obtain a shared lock instead of exclusive in the MAC/veriexec</title>
<updated>2019-05-17T18:13:43Z</updated>
<author>
<name>Stephen J. Kiernan</name>
<email>stevek@FreeBSD.org</email>
</author>
<published>2019-05-17T18:13:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=6cbc970317d395ce13073a81793b6218661f3080'/>
<id>urn:sha1:6cbc970317d395ce13073a81793b6218661f3080</id>
<content type='text'>
MAC_VERIEXEC_CHECK_PATH_SYSCALL per-MAC policy system call.

When we are checking the status of the fingerprint on a vnode using the
per-MAC-policy syscall, we do not need an exclusive lock on the vnode.

Even if there is more than one thread requesting the status at the same time,
the worst we can end up doing is processing the file more than once.

This can potentially be improved in the future with offloading the fingerprint
evaluation to a separate thread and blocking until the update completes. But
for now the race is acceptable.

Obtained from:	Juniper Networks, Inc.
MFC after:	1 week
</content>
</entry>
<entry>
<title>sysctls which should be restricted when securelevel is raised should also</title>
<updated>2019-05-17T18:09:48Z</updated>
<author>
<name>Stephen J. Kiernan</name>
<email>stevek@FreeBSD.org</email>
</author>
<published>2019-05-17T18:09:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=ed377cf415612cd333322ac31a9c13b4c482e909'/>
<id>urn:sha1:ed377cf415612cd333322ac31a9c13b4c482e909</id>
<content type='text'>
be restricted when veriexec is enforced.

Add mpo_system_check_sysctl method to mac_veriexec which does this.

Obtained from:	Juniper Networks, Inc.
MFC after:	1 week
</content>
</entry>
<entry>
<title>Fix format strings for some debug messages that could have arguments that</title>
<updated>2019-05-17T18:06:24Z</updated>
<author>
<name>Stephen J. Kiernan</name>
<email>stevek@FreeBSD.org</email>
</author>
<published>2019-05-17T18:06:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=3d53cd0fbbbefd7ec5a49fd5675a573d865738e7'/>
<id>urn:sha1:3d53cd0fbbbefd7ec5a49fd5675a573d865738e7</id>
<content type='text'>
are different types across architectures by using %ju and typecasting to
uintmax_t, where appropriate.

Obtained from:	Juniper Networks, Inc.
MFC after:	1 week
</content>
</entry>
<entry>
<title>Ensure we have obtained a lock on the process before calling</title>
<updated>2019-05-17T17:50:01Z</updated>
<author>
<name>Stephen J. Kiernan</name>
<email>stevek@FreeBSD.org</email>
</author>
<published>2019-05-17T17:50:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=3da3012ace35d97e4e41ae256e63119786c36596'/>
<id>urn:sha1:3da3012ace35d97e4e41ae256e63119786c36596</id>
<content type='text'>
mac_veriexec_get_executable_flags(). Only try locking/unlocking if the caller
has not already acquired the process lock.

Obtained from:	Juniper Networks, Inc.
MFC after:	1 week
</content>
</entry>
</feed>
