aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-05-22 16:59:32 +0000
committerLexi Winter <ivy@FreeBSD.org>2025-06-01 09:14:51 +0000
commit56da5c5ed35ad297538395b07654e31ac425ca30 (patch)
treea9845f21ecbe24ffe7aa2eb5a6050699dddba84a
parent1b9a53e3805deb0b95760fd34025d4d0a4f96f41 (diff)
mac_do(4): allow compiling into kernel
The manual page says this is possible, but it's not. Make it possible. Reviewed by: olce, kevans Approved by: kevans (mentor) Differential Revision: https://reviews.freebsd.org/D50451 (cherry picked from commit c8d8cac2a8479009bcdca6c0cb9852af514896f2)
-rw-r--r--sys/conf/NOTES1
-rw-r--r--sys/conf/files3
-rw-r--r--sys/conf/options1
3 files changed, 4 insertions, 1 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index 55c1798bbffc..8dff052258a6 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -1245,6 +1245,7 @@ options MAC
options MAC_BIBA
options MAC_BSDEXTENDED
options MAC_DDB
+options MAC_DO
options MAC_IFOFF
options MAC_IPACL
options MAC_LOMAC
diff --git a/sys/conf/files b/sys/conf/files
index c793c0814fde..6412e84d9f70 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -5164,10 +5164,11 @@ security/mac/mac_sysv_sem.c optional mac
security/mac/mac_sysv_shm.c optional mac
security/mac/mac_vfs.c optional mac
security/mac_biba/mac_biba.c optional mac_biba
-security/mac_ddb/mac_ddb.c optional mac_ddb
security/mac_bsdextended/mac_bsdextended.c optional mac_bsdextended
security/mac_bsdextended/ugidfw_system.c optional mac_bsdextended
security/mac_bsdextended/ugidfw_vnode.c optional mac_bsdextended
+security/mac_ddb/mac_ddb.c optional mac_ddb
+security/mac_do/mac_do.c optional mac_do
security/mac_ifoff/mac_ifoff.c optional mac_ifoff
security/mac_ipacl/mac_ipacl.c optional mac_ipacl
security/mac_lomac/mac_lomac.c optional mac_lomac
diff --git a/sys/conf/options b/sys/conf/options
index 1d156ca41a49..7314a58a6a4f 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -154,6 +154,7 @@ MAC opt_global.h
MAC_BIBA opt_dontuse.h
MAC_BSDEXTENDED opt_dontuse.h
MAC_DDB opt_dontuse.h
+MAC_DO opt_dontuse.h
MAC_IFOFF opt_dontuse.h
MAC_IPACL opt_dontuse.h
MAC_LOMAC opt_dontuse.h