aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Certner <olce@FreeBSD.org>2026-03-21 13:39:04 +0000
committerOlivier Certner <olce@FreeBSD.org>2026-03-21 13:39:04 +0000
commit954aaf3958e2ea0e9b1811090ddbb9d8b13a3e5a (patch)
tree7232a459c4ec810a4ebe4190e4ed464765b5f658
parent82a066b8593a14e0bbf8e1fcdc75fd9ecf0d9e62 (diff)
MAC/do: Comments: Rephrase one, fix a typo in another
No functional change. MFC after: 3 days Event: AsiaBSDCon 2026 Sponsored by: The FreeBSD Foundation
-rw-r--r--sys/security/mac_do/mac_do.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/security/mac_do/mac_do.c b/sys/security/mac_do/mac_do.c
index 2bcff7bba973..ba49da22ce67 100644
--- a/sys/security/mac_do/mac_do.c
+++ b/sys/security/mac_do/mac_do.c
@@ -1153,13 +1153,14 @@ remove_rules(struct prison *const pr)
prison_lock(pr);
/*
- * We go to the burden of extracting rules first instead of just letting
- * osd_jail_del() calling dealloc_jail_osd() as we want to decrement
- * their use count, and possibly free them, outside of the prison lock.
+ * We burden ourselves with extracting rules first instead of just
+ * letting osd_jail_del() call dealloc_jail_osd() as we want to
+ * decrement their use count, and possibly free them, outside of the
+ * prison lock.
*/
old_rules = osd_jail_get(pr, osd_jail_slot);
error = osd_jail_set(pr, osd_jail_slot, NULL);
- /* osd_set() never fails nor allocate memory when 'value' is NULL. */
+ /* osd_set() never allocates memory when 'value' is NULL, nor fails. */
MPASS(error == 0);
/*
* This completely frees the OSD slot, but doesn't call the destructor