[LTP] [PATCH 2/3] Add ioctl() NS_GET_MNTNS_ID fallback definition

Andrea Cervesato andrea.cervesato@suse.de
Tue Jun 17 14:45:35 CEST 2025


From: Andrea Cervesato <andrea.cervesato@suse.com>

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
 include/lapi/ioctl_ns.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/lapi/ioctl_ns.h b/include/lapi/ioctl_ns.h
index 9c81d5ce20f299e8e8d6565317c608f805dc74c9..37fc5371681995fad5d955838b80153d5dd227f1 100644
--- a/include/lapi/ioctl_ns.h
+++ b/include/lapi/ioctl_ns.h
@@ -6,6 +6,7 @@
 #ifndef LAPI_IOCTL_NS_H__
 #define LAPI_IOCTL_NS_H__
 
+#include <stdint.h>
 #include <asm-generic/ioctl.h>
 
 #ifndef NSIO
@@ -23,6 +24,8 @@
 #ifndef NS_GET_NSTYPE
 #define NS_GET_NSTYPE		_IO(NSIO, 0x3)
 #endif
-
+#ifndef NS_GET_MNTNS_ID
+#define NS_GET_MNTNS_ID		_IOR(NSIO, 0x5, uint64_t)
+#endif
 
 #endif /* LAPI_IOCTL_NS_H__ */

-- 
2.43.0



More information about the ltp mailing list