2afd57decb
* configure.ac (AC_CHECK_HEADERS): Add linux/nsfs.h. * defs.h (DECL_IOCTL(nsfs)): New prototype. (setns_types): Make global. * ioctl.c (ioctl_decode): Call nsfs_ioctl for 0xb7 code. * nsfs.c: New file. * nsfs.h: Likewise. * Makefile.am (strace_SOURCES): Add them. * tests/ioctl_nsfs.c: New file. * tests/ioctl_nsfs.test: Likewise. * tests/.gitignore: Add ioctl_nsfs. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add ioctl_nsfs.test. * NEWS: Mention this change.
22 lines
409 B
C
22 lines
409 B
C
#ifndef STRACE_NSFS_H
|
|
#define STRACE_NSFS_H
|
|
|
|
#include <linux/ioctl.h>
|
|
|
|
#ifdef HAVE_LINUX_NSFS_H
|
|
# include <linux/nsfs.h>
|
|
#else
|
|
# define NSIO 0xb7
|
|
# define NS_GET_USERNS _IO(NSIO, 0x1)
|
|
# define NS_GET_PARENT _IO(NSIO, 0x2)
|
|
#endif
|
|
|
|
#ifndef NS_GET_NSTYPE
|
|
# define NS_GET_NSTYPE _IO(NSIO, 0x3)
|
|
#endif
|
|
#ifndef NS_GET_OWNER_UID
|
|
# define NS_GET_OWNER_UID _IO(NSIO, 0x4)
|
|
#endif
|
|
|
|
#endif /* !STRACE_NSFS_H */
|