git: 5c09fafd8398 - stable/13 - cred: proc_set_cred(): Remove obsolete comments
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jan 2025 12:27:19 UTC
The branch stable/13 has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=5c09fafd8398181a149c0457d56c5b7c2518b370
commit 5c09fafd8398181a149c0457d56c5b7c2518b370
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2024-08-01 10:19:52 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-01-17 12:24:53 +0000
cred: proc_set_cred(): Remove obsolete comments
These have been obsoleted since they were first written (in commit
"cred: add proc_set_cred helper", daf63fd2f9a8d040, r280130) by some
subsequent commits ("proc: refactor clearing credentials into
proc_unset_cred", 5a90435ccfed8e1e, r361448; "cred: distribute reference
count per thread", 1724c563e62fa800, r361993).
No functional change.
Approved by: markj (mentor)
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46922
(cherry picked from commit 07c9edac7bcd75095724ff3c91d0aeec792a4f26)
---
sys/kern/kern_prot.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index 5fe587bdc421..755bdca4fd73 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -2278,11 +2278,6 @@ cru2xt(struct thread *td, struct xucred *xcr)
* Change process credentials.
* Callers are responsible for providing the reference for passed credentials
* and for freeing old ones.
- *
- * Process has to be locked except when it does not have credentials (as it
- * should not be visible just yet) or when newcred is NULL (as this can be
- * only used when the process is about to be freed, at which point it should
- * not be visible anymore).
*/
void
proc_set_cred(struct proc *p, struct ucred *newcred)