From: Yu Watanabe Date: Wed, 2 Apr 2025 20:36:25 +0000 (+0900) Subject: memfd-util: make memfd_add/get_seals() static X-Git-Tag: v258-rc1~932^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dba777cf26889786018d434935fc3d4aa8e5bbb0;p=thirdparty%2Fsystemd.git memfd-util: make memfd_add/get_seals() static --- diff --git a/src/basic/memfd-util.c b/src/basic/memfd-util.c index 70ffa93a78f..2e1125b867f 100644 --- a/src/basic/memfd-util.c +++ b/src/basic/memfd-util.c @@ -72,13 +72,13 @@ int memfd_new_full(const char *name, unsigned extra_flags) { MFD_CLOEXEC | MFD_NOEXEC_SEAL | extra_flags); } -int memfd_add_seals(int fd, unsigned seals) { +static int memfd_add_seals(int fd, unsigned seals) { assert(fd >= 0); return RET_NERRNO(fcntl(fd, F_ADD_SEALS, seals)); } -int memfd_get_seals(int fd, unsigned *ret_seals) { +static int memfd_get_seals(int fd, unsigned *ret_seals) { int r; assert(fd >= 0); diff --git a/src/basic/memfd-util.h b/src/basic/memfd-util.h index 9052ff29716..d7220d085da 100644 --- a/src/basic/memfd-util.h +++ b/src/basic/memfd-util.h @@ -20,9 +20,6 @@ static inline int memfd_new_and_seal_string(const char *name, const char *s) { return memfd_new_and_seal(name, s, SIZE_MAX); } -int memfd_add_seals(int fd, unsigned seals); -int memfd_get_seals(int fd, unsigned *ret_seals); - int memfd_set_sealed(int fd); int memfd_get_sealed(int fd);