| #
11d6ea47
|
| 04-Oct-2025 |
Kyle Evans <kevans@FreeBSD.org> |
kern: mac: add a MAC label to struct prison
Reviewed by: olce Differential Revision: https://reviews.freebsd.org/D53953
|
| #
12ac59a0
|
| 13-Oct-2025 |
Zhenlei Huang <zlei@FreeBSD.org> |
MAC: Use proper prototype for SYSINIT functions
MFC after: 1 week
|
| #
5041b205
|
| 03-Jul-2024 |
Olivier Certner <olce@FreeBSD.org> |
MAC: Define a common 'mac' node for MAC's jail parameters
To be used by MAC/do.
Reviewed by: jamie Approved by: markj (mentor) MFC after: 5 days Relnotes: yes Sponsored by: The F
MAC: Define a common 'mac' node for MAC's jail parameters
To be used by MAC/do.
Reviewed by: jamie Approved by: markj (mentor) MFC after: 5 days Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46899
show more ...
|
| #
90678c89
|
| 03-Jul-2024 |
Olivier Certner <olce@FreeBSD.org> |
MAC: 'kernel_mac_support' module: Make an outdated comment more generic
No functional change.
Reviewed by: jamie Approved by: markj (mentor) MFC after: 5 days Sponsored by: The FreeBSD
MAC: 'kernel_mac_support' module: Make an outdated comment more generic
No functional change.
Reviewed by: jamie Approved by: markj (mentor) MFC after: 5 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46898
show more ...
|
| #
fdafd315
|
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Automated cleanup of cdefs and other formatting
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.
Remov
sys: Automated cleanup of cdefs and other formatting
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+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
| #
f64a688d
|
| 13-Nov-2023 |
Brooks Davis <brooks@FreeBSD.org> |
Remove gratuitous copyouts of unchanged struct mac.
The get operations change the data pointed to by the structure, but do not update the contents of the struct.
Mark the struct mac arguments of ma
Remove gratuitous copyouts of unchanged struct mac.
The get operations change the data pointed to by the structure, but do not update the contents of the struct.
Mark the struct mac arguments of mac_[gs]etsockopt_*label() and mac_check_structmac_consistent() const to prevent this from changing in the future.
Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D14488
show more ...
|
| #
685dc743
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
8deb442c
|
| 02-Apr-2023 |
Steve Kiernan <stevek@juniper.net> |
mac: Honor order when registering MAC modules.
Ensure MAC modules are inserted in order that they are registered.
Reviewed by: markj Obtained from: Juniper Networks, Inc. Differential Revision: htt
mac: Honor order when registering MAC modules.
Ensure MAC modules are inserted in order that they are registered.
Reviewed by: markj Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D39589
show more ...
|
| #
60dae3b8
|
| 08-Aug-2022 |
Mateusz Guzik <mjg@FreeBSD.org> |
mac: cheaper check for mac_pipe_check_read
Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D36082
|
| #
f77697dd
|
| 29-Jun-2021 |
Mateusz Guzik <mjg@FreeBSD.org> |
mac: cheaper check for ifnet_create_mbuf and ifnet_check_transmit
Sponsored by: Rubicon Communications, LLC ("Netgate")
|
| #
77589de8
|
| 08-Jan-2021 |
Mateusz Guzik <mjg@FreeBSD.org> |
mac: cheaper check for mac_vnode_check_readlink
|
| #
33f3e81d
|
| 01-Jan-2021 |
Mateusz Guzik <mjg@FreeBSD.org> |
cache: combine fast path enabled status into one flag
Tested by: pho
|
| #
89744405
|
| 19-Nov-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
pipe: allow for lockless pipe_stat
pipes get stated all thet time and this avoidably contributed to contention. The pipe lock is only held to accomodate MAC and to check the type.
Since normally th
pipe: allow for lockless pipe_stat
pipes get stated all thet time and this avoidably contributed to contention. The pipe lock is only held to accomodate MAC and to check the type.
Since normally there is no probe for pipe stat depessimize this by having the flag.
The pipe_state field gets modified with locks held all the time and it's not feasible to convert them to use atomic store. Move the type flag away to a separate variable as a simple cleanup and to provide stable field to read. Use short for both fields to avoid growing the struct.
While here short-circuit MAC for pipe_poll as well.
show more ...
|
| #
440cec3f
|
| 12-Aug-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
| #
e383ec74
|
| 06-Aug-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r363739 through r363986.
|
| #
18f67bc4
|
| 05-Aug-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
vfs: add a cheaper entry for mac_vnode_check_access
|
| #
c7aa572c
|
| 31-Jul-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
| #
17996960
|
| 31-Jul-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r363583 through r363738.
|
| #
fad6dd77
|
| 29-Jul-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
vfs: elide MAC-induced locking on rename if there are no relevant hoooks
|
| #
e2c0e292
|
| 16-Jul-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
| #
3ea3fbe6
|
| 16-Jul-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
vfs: fix vn_poll performance with either MAC or AUDIT
The code would unconditionally lock the vnode to audit or call the mac hoook, even if neither want to do anything. Pre-check the state to avoid
vfs: fix vn_poll performance with either MAC or AUDIT
The code would unconditionally lock the vnode to audit or call the mac hoook, even if neither want to do anything. Pre-check the state to avoid locking in the common case of nothing to do.
Note this code should not be normally executed anyway as vnodes are always return ready. However, poll1/2 from will-it-scale use regular files for benchmarking, presumably to focus on the interface itself as the vnode handler is not supposed to do almost anything.
This in particular fixes poll2 which passes 128 fds.
$ ./poll2_processes -s 10 before: 134411 after: 271572
show more ...
|
| #
407a5b79
|
| 04-Apr-2020 |
Jason A. Harmening <jah@FreeBSD.org> |
mac_policy: Remove mac_policy_sx
This lock was made unnecessary by the addition of mac_policy_rms in r356120.
Reviewed by: mjg, kib Differential Revision: https://reviews.freebsd.org/D24283
|
| #
75dfc66c
|
| 27-Feb-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r358269 through r358399.
|
| #
7029da5c
|
| 26-Feb-2020 |
Pawel Biernacki <kaktus@FreeBSD.org> |
Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many)
r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are still not MPSAFE (or already are but aren’t properly mark
Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many)
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
show more ...
|
| #
74dc6beb
|
| 14-Feb-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r357855 through r357920.
|