git: 2eff633de3b3 - stable/15 - kern/kern_descrip.c: export filecaps_fill()

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sat, 05 Sep 2026 00:35:16 UTC
The branch stable/15 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=2eff633de3b36b1188676e46edafd0a266520fc3

commit 2eff633de3b36b1188676e46edafd0a266520fc3
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-07-08 17:18:51 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-09-05 00:33:37 +0000

    kern/kern_descrip.c: export filecaps_fill()
    
    (cherry picked from commit 8c911d9a9890128ef8f20ead1748ffcbd9f24577)
---
 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 4fecd55fb5f1..2e60fe934c72 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);