[CRIU] [PATCH 1/2] add openat() to syscall list

Tycho Andersen tycho.andersen at canonical.com
Mon Jun 8 13:12:26 PDT 2015


We'll need this for use in the restorer blob for restoring LSMs. It looks like
arm already has openat, so I think it's just x86 and ppc that need it. In any
case, please double check this, as I've only tested it on x86.

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 arch/ppc64/syscall-ppc64.def     | 3 ++-
 arch/x86/syscalls/syscall_64.tbl | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/ppc64/syscall-ppc64.def b/arch/ppc64/syscall-ppc64.def
index d8ae449..52de3b8 100644
--- a/arch/ppc64/syscall-ppc64.def
+++ b/arch/ppc64/syscall-ppc64.def
@@ -85,6 +85,7 @@ __NR_exit_group		234		sys_exit_group		(int error_code)
 __NR_set_robust_list	300		sys_set_robust_list	(struct robust_list_head *head, size_t len)
 __NR_get_robust_list	299		sys_get_robust_list	(int pid, struct robust_list_head **head_ptr, size_t *len_ptr)
 __NR_vmsplice		285		sys_vmsplice		(int fd, const struct iovec *iov, unsigned long nr_segs, unsigned int flags)
+__NR_openat		286		sys_openat		(int dfd, const char *filename, int flags, int mode)
 __NR_timerfd_settime	311		sys_timerfd_settime	(int ufd, int flags, const struct itimerspec *utmr, struct itimerspec *otmr)
 __NR_signalfd4		313		sys_signalfd		(int fd, k_rtsigset_t *mask, size_t sizemask, int flags)
 __NR_rt_tgsigqueueinfo	322		sys_rt_tgsigqueueinfo	(pid_t tgid, pid_t pid, int sig, siginfo_t *info)
@@ -96,4 +97,4 @@ __NR_setns		350		sys_setns		(int fd, int nstype)
 __NR_kcmp		354		sys_kcmp		(pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2)
 __NR_memfd_create	360		sys_memfd_create	(const char *name, unsigned int flags)
 __NR_io_setup		227		sys_io_setup		(unsigned nr_events, aio_context_t *ctx_idp)
-__NR_io_getevents	229		sys_io_getevents	(aio_context_t ctx_id, long min_nr, long nr, struct io_event *events, struct timespec *timeout)
\ No newline at end of file
+__NR_io_getevents	229		sys_io_getevents	(aio_context_t ctx_id, long min_nr, long nr, struct io_event *events, struct timespec *timeout)
diff --git a/arch/x86/syscalls/syscall_64.tbl b/arch/x86/syscalls/syscall_64.tbl
index 085dbdf..6090127 100644
--- a/arch/x86/syscalls/syscall_64.tbl
+++ b/arch/x86/syscalls/syscall_64.tbl
@@ -83,6 +83,7 @@ __NR_sys_timer_getoverrun	225		sys_timer_getoverrun	(int timer_id)
 __NR_sys_timer_delete		226		sys_timer_delete	(timer_t timer_id)
 __NR_clock_gettime		228		sys_clock_gettime	(const clockid_t which_clock, const struct timespec *tp)
 __NR_exit_group			231		sys_exit_group		(int error_code)
+__NR_openat			257		sys_openat		(int dfd, const char *filename, int flags, int mode)
 __NR_set_robust_list		273		sys_set_robust_list	(struct robust_list_head *head, size_t len)
 __NR_get_robust_list		274		sys_get_robust_list	(int pid, struct robust_list_head **head_ptr, size_t *len_ptr)
 __NR_vmsplice			278		sys_vmsplice		(int fd, const struct iovec *iov, unsigned long nr_segs, unsigned int flags)
-- 
2.1.4



More information about the CRIU mailing list