git: 8c911d9a9890 - main - kern/kern_descrip.c: export filecaps_fill()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 28 Aug 2026 12:05:02 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=8c911d9a9890128ef8f20ead1748ffcbd9f24577
commit 8c911d9a9890128ef8f20ead1748ffcbd9f24577
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-07-08 17:18:51 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-08-28 11:52:31 +0000
kern/kern_descrip.c: export filecaps_fill()
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D58094
---
sys/kern/kern_descrip.c | 2 +-
sys/sys/filedesc.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 8272d6da9b0a..1d66581efb4c 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -1906,7 +1906,7 @@ filecaps_move(struct filecaps *src, struct filecaps *dst)
/*
* Fill the given filecaps structure with full rights.
*/
-static void
+void
filecaps_fill(struct filecaps *fcaps)
{
diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h
index c6499a18b884..31a3bc44d4aa 100644
--- a/sys/sys/filedesc.h
+++ b/sys/sys/filedesc.h
@@ -243,6 +243,7 @@ filecaps_init(struct filecaps *fcaps)
bool filecaps_copy(const struct filecaps *src, struct filecaps *dst,
bool locked);
void filecaps_move(struct filecaps *src, struct filecaps *dst);
+void filecaps_fill(struct filecaps *fcaps);
void filecaps_free(struct filecaps *fcaps);
int closef(struct file *fp, struct thread *td);