summaryrefslogtreecommitdiff
path: root/src/get_personality.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/get_personality.c')
-rw-r--r--src/get_personality.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/get_personality.c b/src/get_personality.c
new file mode 100644
index 000000000..0af9095fc
--- /dev/null
+++ b/src/get_personality.c
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2018 Dmitry V. Levin <ldv@strace.io>
+ * Copyright (c) 2018-2019 The strace developers.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
+#include "defs.h"
+
+#if SUPPORTED_PERSONALITIES > 1
+# include "get_personality.h"
+# include <linux/audit.h>
+# define XLAT_MACROS_ONLY
+# include "xlat/elf_em.h"
+# include "xlat/audit_arch.h"
+# undef XLAT_MACROS_ONLY
+# include "arch_get_personality.c"
+#endif