From 6fb88a955a112223d3304bdaedc067771024725b Mon Sep 17 00:00:00 2001 From: rofl0r Date: Thu, 6 Dec 2012 21:01:06 +0100 Subject: [PATCH] add personality syscall --- include/sys/personality.h | 6 ++++++ src/misc/personality.c | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 include/sys/personality.h create mode 100644 src/misc/personality.c diff --git a/include/sys/personality.h b/include/sys/personality.h new file mode 100644 index 00000000..852c0248 --- /dev/null +++ b/include/sys/personality.h @@ -0,0 +1,6 @@ +#ifndef _PERSONALITY_H +#define _PERSONALITY_H + +int personality(unsigned long); + +#endif diff --git a/src/misc/personality.c b/src/misc/personality.c new file mode 100644 index 00000000..6e13a77d --- /dev/null +++ b/src/misc/personality.c @@ -0,0 +1,7 @@ +#include "syscall.h" +#ifdef SYS_personality +int personality(unsigned long persona) +{ + return syscall(SYS_personality, persona); +} +#endif -- GitLab