Wire the memfd_secret syscall. Currently this is only implemented for
Book3S64 radix. On every other PowerPC configuration, either
ARCH_HAS_SET_DIRECT_MAP is not enabled in Kconfig, or
can_set_direct_map() returns false because the configuration is not
supported. The syscall checks for that and returns -ENOSYS.

Signed-off-by: Ritesh Harjani (IBM) <[email protected]>
---
 arch/powerpc/kernel/syscalls/syscall.tbl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/kernel/syscalls/syscall.tbl 
b/arch/powerpc/kernel/syscalls/syscall.tbl
index cfbb70039ff0..81677fdd0d05 100644
--- a/arch/powerpc/kernel/syscalls/syscall.tbl
+++ b/arch/powerpc/kernel/syscalls/syscall.tbl
@@ -537,7 +537,7 @@
 444    common  landlock_create_ruleset         sys_landlock_create_ruleset
 445    common  landlock_add_rule               sys_landlock_add_rule
 446    common  landlock_restrict_self          sys_landlock_restrict_self
-# 447 reserved for memfd_secret
+447    common  memfd_secret                    sys_memfd_secret
 448    common  process_mrelease                sys_process_mrelease
 449    common  futex_waitv                     sys_futex_waitv
 450    nospu   set_mempolicy_home_node         sys_set_mempolicy_home_node
-- 
2.39.5


Reply via email to