memfd-util: make memfd_add/get_seals() static

This commit is contained in:
Yu Watanabe
2025-04-03 06:01:31 +09:00
parent e3f6ae1d09
commit dba777cf26
2 changed files with 2 additions and 5 deletions
+2 -2
View File
@@ -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);
-3
View File
@@ -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);