From 6c77455bdb7837102164cff9922007010a7541b6 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Tue, 17 Sep 2013 18:00:32 -0500 Subject: audit: Uprev to audit 2.3.2 Refactor the audit cross compiling patch. The new patch might have some minor host dependencies. If so, let me know! Signed-off-by: Mark Hatle Signed-off-by: Joe MacDonald --- .../audit/audit-2.2.1/audit-cross-compiling.patch | 2439 -------------------- recipes-security/audit/audit-2.2.1/auditd | 153 -- .../audit/audit/audit-for-cross-compiling.patch | 260 ++- recipes-security/audit/audit/auditd | 153 ++ recipes-security/audit/audit/disable-ldap.patch | 31 +- recipes-security/audit/audit_2.1.3.bb | 58 - recipes-security/audit/audit_2.2.1.bb | 79 - recipes-security/audit/audit_2.3.2.bb | 77 + 8 files changed, 460 insertions(+), 2790 deletions(-) delete mode 100644 recipes-security/audit/audit-2.2.1/audit-cross-compiling.patch delete mode 100755 recipes-security/audit/audit-2.2.1/auditd create mode 100755 recipes-security/audit/audit/auditd delete mode 100644 recipes-security/audit/audit_2.1.3.bb delete mode 100644 recipes-security/audit/audit_2.2.1.bb create mode 100644 recipes-security/audit/audit_2.3.2.bb diff --git a/recipes-security/audit/audit-2.2.1/audit-cross-compiling.patch b/recipes-security/audit/audit-2.2.1/audit-cross-compiling.patch deleted file mode 100644 index 3f1ad71..0000000 --- a/recipes-security/audit/audit-2.2.1/audit-cross-compiling.patch +++ /dev/null @@ -1,2439 +0,0 @@ -Subject: [PATCH] audit: use generated headers for cross compiling - -Default audit Makefile will generate native executables in lib/ and -auparse/, which are named as gen_*_h and run on the hosts to create -*_tables.h/*tabs.h header files for the targets. - -This is inappropriate for our cross compiling because they need -linux-libc-headers from the host. - -Even worse, on some old hosts, build will fail because some .h files -in the old linux-libc-headers (<= 2.6.29) has incomplete DEFINE lists -for the audit system. - -So add *tables.h/*tabs.h header files which are generated from -linux-libc-headers-3.4, and do not generate and run those native -executables. - -Upstream-Status: Inappropriate [cross compile] - -Signed-off-by: Xin Ouyang ---- - auparse/Makefile.am | 122 ----------------------------- - auparse/captabs.h | 14 ++++ - auparse/clocktabs.h | 8 ++ - auparse/clone-flagtabs.h | 10 +++ - auparse/epoll_ctls.h | 8 ++ - auparse/famtabs.h | 14 ++++ - auparse/fcntl-cmdtabs.h | 17 ++++ - auparse/flagtabs.h | 6 ++ - auparse/icmptypetabs.h | 10 +++ - auparse/ipctabs.h | 11 +++ - auparse/mmaptabs.h | 8 ++ - auparse/mounttabs.h | 10 +++ - auparse/nfprototabs.h | 9 +++ - auparse/open-flagtabs.h | 8 ++ - auparse/persontabs.h | 17 ++++ - auparse/prottabs.h | 6 ++ - auparse/ptracetabs.h | 17 ++++ - auparse/recvtabs.h | 8 ++ - auparse/rlimittabs.h | 10 +++ - auparse/signaltabs.h | 14 ++++ - auparse/socktabs.h | 10 +++ - auparse/socktypetabs.h | 8 ++ - auparse/typetabs.h | 29 +++++++ - lib/Makefile.am | 96 ----------------------- - lib/actiontabs.h | 26 +++++++ - lib/alpha_tables.h | 196 +++++++++++++++++++++++++++++++++++++++++++++++ - lib/armeb_tables.h | 165 +++++++++++++++++++++++++++++++++++++++ - lib/errtabs.h | 78 +++++++++++++++++++ - lib/fieldtabs.h | 49 ++++++++++++ - lib/flagtabs.h | 26 +++++++ - lib/ftypetabs.h | 29 +++++++ - lib/i386_tables.h | 162 +++++++++++++++++++++++++++++++++++++++ - lib/ia64_tables.h | 147 +++++++++++++++++++++++++++++++++++ - lib/machinetabs.h | 26 +++++++ - lib/msg_typetabs.h | 99 ++++++++++++++++++++++++ - lib/optabs.h | 11 +++ - lib/ppc_tables.h | 163 +++++++++++++++++++++++++++++++++++++++ - lib/s390_tables.h | 153 ++++++++++++++++++++++++++++++++++++ - lib/s390x_tables.h | 141 ++++++++++++++++++++++++++++++++++ - lib/x86_64_tables.h | 150 ++++++++++++++++++++++++++++++++++++ - 40 files changed, 1873 insertions(+), 218 deletions(-) - create mode 100644 auparse/captabs.h - create mode 100644 auparse/clocktabs.h - create mode 100644 auparse/clone-flagtabs.h - create mode 100644 auparse/epoll_ctls.h - create mode 100644 auparse/famtabs.h - create mode 100644 auparse/fcntl-cmdtabs.h - create mode 100644 auparse/flagtabs.h - create mode 100644 auparse/icmptypetabs.h - create mode 100644 auparse/ipctabs.h - create mode 100644 auparse/mmaptabs.h - create mode 100644 auparse/mounttabs.h - create mode 100644 auparse/nfprototabs.h - create mode 100644 auparse/open-flagtabs.h - create mode 100644 auparse/persontabs.h - create mode 100644 auparse/prottabs.h - create mode 100644 auparse/ptracetabs.h - create mode 100644 auparse/recvtabs.h - create mode 100644 auparse/rlimittabs.h - create mode 100644 auparse/signaltabs.h - create mode 100644 auparse/socktabs.h - create mode 100644 auparse/socktypetabs.h - create mode 100644 auparse/typetabs.h - create mode 100644 lib/actiontabs.h - create mode 100644 lib/alpha_tables.h - create mode 100644 lib/armeb_tables.h - create mode 100644 lib/errtabs.h - create mode 100644 lib/fieldtabs.h - create mode 100644 lib/flagtabs.h - create mode 100644 lib/ftypetabs.h - create mode 100644 lib/i386_tables.h - create mode 100644 lib/ia64_tables.h - create mode 100644 lib/machinetabs.h - create mode 100644 lib/msg_typetabs.h - create mode 100644 lib/optabs.h - create mode 100644 lib/ppc_tables.h - create mode 100644 lib/s390_tables.h - create mode 100644 lib/s390x_tables.h - create mode 100644 lib/x86_64_tables.h - -diff --git a/auparse/Makefile.am b/auparse/Makefile.am -index 2f7306f..9524342 100644 ---- a/auparse/Makefile.am -+++ b/auparse/Makefile.am -@@ -47,125 +47,3 @@ BUILT_SOURCES = captabs.h clocktabs.h clone-flagtabs.h epoll_ctls.h famtabs.h \ - mmaptabs.h mounttabs.h nfprototabs.h open-flagtabs.h \ - persontabs.h prottabs.h ptracetabs.h rlimittabs.h recvtabs.h \ - signaltabs.h socktabs.h socktypetabs.h typetabs.h --noinst_PROGRAMS = gen_captabs_h gen_clock_h gen_clone-flagtabs_h \ -- gen_epoll_ctls_h gen_famtabs_h \ -- gen_fcntl-cmdtabs_h gen_flagtabs_h \ -- gen_icmptypetabs_h gen_ipctabs_h gen_nfprototabs_h \ -- gen_mmaptabs_h gen_mounttabs_h \ -- gen_open-flagtabs_h gen_persontabs_h gen_prottabs_h \ -- gen_recvtabs_h gen_rlimit_h gen_ptracetabs_h \ -- gen_signals_h gen_socktabs_h gen_socktypetabs_h gen_typetabs_h -- --gen_captabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h captab.h --gen_captabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="captab.h"' --captabs.h: gen_captabs_h Makefile -- ./gen_captabs_h --i2s cap > $@ -- --gen_clock_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h clocktab.h --gen_clock_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="clocktab.h"' --clocktabs.h: gen_clock_h Makefile -- ./gen_clock_h --i2s clock > $@ -- --gen_clone_flagtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h \ -- clone-flagtab.h --gen_clone_flagtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="clone-flagtab.h"' --clone-flagtabs.h: gen_clone-flagtabs_h Makefile -- ./gen_clone-flagtabs_h --i2s-transtab clone_flag > $@ -- --gen_epoll_ctls_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h epoll_ctl.h --gen_epoll_ctls_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="epoll_ctl.h"' --epoll_ctls.h: gen_epoll_ctls_h Makefile -- ./gen_epoll_ctls_h --i2s epoll_ctl > $@ -- --gen_famtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h famtab.h --gen_famtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="famtab.h"' --famtabs.h: gen_famtabs_h Makefile -- ./gen_famtabs_h --i2s fam > $@ -- --gen_flagtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h flagtab.h --# ../auparse/ is used to avoid using ../lib/flagtab.h --gen_flagtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="../auparse/flagtab.h"' --flagtabs.h: gen_flagtabs_h Makefile -- ./gen_flagtabs_h --i2s-transtab flag > $@ -- --gen_fcntl_cmdtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h \ -- fcntl-cmdtab.h --gen_fcntl_cmdtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="fcntl-cmdtab.h"' --fcntl-cmdtabs.h: gen_fcntl-cmdtabs_h Makefile -- ./gen_fcntl-cmdtabs_h --i2s fcntl > $@ -- --gen_icmptypetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h icmptypetab.h --gen_icmptypetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="icmptypetab.h"' --icmptypetabs.h: gen_icmptypetabs_h Makefile -- ./gen_icmptypetabs_h --i2s icmptype > $@ -- --gen_ipctabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ipctab.h --gen_ipctabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ipctab.h"' --ipctabs.h: gen_ipctabs_h Makefile -- ./gen_ipctabs_h --i2s ipc > $@ -- --gen_mmaptabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h mmaptab.h --gen_mmaptabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="mmaptab.h"' --mmaptabs.h: gen_mmaptabs_h Makefile -- ./gen_mmaptabs_h --i2s-transtab mmap > $@ -- --gen_mounttabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h mounttab.h --gen_mounttabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="mounttab.h"' --mounttabs.h: gen_mounttabs_h Makefile -- ./gen_mounttabs_h --i2s-transtab mount > $@ -- --gen_nfprototabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h nfprototab.h --gen_nfprototabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="nfprototab.h"' --nfprototabs.h: gen_nfprototabs_h Makefile -- ./gen_nfprototabs_h --i2s nfproto > $@ -- --gen_open_flagtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h \ -- open-flagtab.h --gen_open_flagtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="open-flagtab.h"' --open-flagtabs.h: gen_open-flagtabs_h Makefile -- ./gen_open-flagtabs_h --i2s-transtab open_flag > $@ -- --gen_persontabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h persontab.h --gen_persontabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="persontab.h"' --persontabs.h: gen_persontabs_h Makefile -- ./gen_persontabs_h --i2s person > $@ -- --gen_ptracetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ptracetab.h --gen_ptracetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ptracetab.h"' --ptracetabs.h: gen_ptracetabs_h Makefile -- ./gen_ptracetabs_h --i2s ptrace > $@ -- --gen_prottabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h prottab.h --gen_prottabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="prottab.h"' --prottabs.h: gen_prottabs_h Makefile -- ./gen_prottabs_h --i2s-transtab prot > $@ -- --gen_recvtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h recvtab.h --gen_recvtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="recvtab.h"' --recvtabs.h: gen_recvtabs_h Makefile -- ./gen_recvtabs_h --i2s-transtab recv > $@ -- --gen_rlimit_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h rlimittab.h --gen_rlimit_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="rlimittab.h"' --rlimittabs.h: gen_rlimit_h Makefile -- ./gen_rlimit_h --i2s rlimit > $@ -- --gen_signals_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h signaltab.h --gen_signals_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="signaltab.h"' --signaltabs.h: gen_signals_h Makefile -- ./gen_signals_h --i2s signal > $@ -- --gen_socktabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h socktab.h --gen_socktabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="socktab.h"' --socktabs.h: gen_socktabs_h Makefile -- ./gen_socktabs_h --i2s sock > $@ -- --gen_socktypetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h socktypetab.h --gen_socktypetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="socktypetab.h"' --socktypetabs.h: gen_socktypetabs_h Makefile -- ./gen_socktypetabs_h --i2s sock_type > $@ -- --gen_typetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h typetab.h --gen_typetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="typetab.h"' --typetabs.h: gen_typetabs_h Makefile -- ./gen_typetabs_h --s2i type > $@ -diff --git a/auparse/captabs.h b/auparse/captabs.h -new file mode 100644 -index 0000000..6b13a64 ---- /dev/null -+++ b/auparse/captabs.h -@@ -0,0 +1,14 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char cap_strings[] = "audit_control\0audit_write\0chown\0dac_override\0dac_read_search\0fowner\0fsetid\0ipc_lock\0ipc_owner\0kill\0" -+ "lease\0linux_immutable\0mac_admin\0mac_override\0mknod\0net_admin\0net_bind_service\0net_broadcast\0net_raw\0setfcap\0" -+ "setgid\0setpcap\0setuid\0sys_admin\0sys_boot\0sys_chroot\0sys_module\0sys_nice\0sys_pacct\0sys_ptrace\0" -+ "sys_rawio\0sys_resource\0sys_time\0sys_tty_config\0syslog\0wake_alarm"; -+static const unsigned cap_i2s_direct[] = { -+ 26,32,45,61,68,94,207,222,214,105, -+ 160,177,150,191,75,84,259,300,248,289, -+ 279,229,239,270,310,323,332,144,99,14, -+ 0,199,131,121,347,354, -+}; -+static const char *cap_i2s(int v) { -+ return i2s_direct__(cap_strings, cap_i2s_direct, 0, 35, v); -+} -diff --git a/auparse/clocktabs.h b/auparse/clocktabs.h -new file mode 100644 -index 0000000..03f9f09 ---- /dev/null -+++ b/auparse/clocktabs.h -@@ -0,0 +1,8 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char clock_strings[] = "CLOCK_BOOTTIME\0CLOCK_BOOTTIME_ALARM\0CLOCK_MONOTONIC\0CLOCK_MONOTONIC_COARSE\0CLOCK_MONOTONIC_RAW\0CLOCK_PROCESS_CPUTIME_ID\0CLOCK_REALTIME\0CLOCK_REALTIME_ALARM\0CLOCK_REALTIME_COARSE\0CLOCK_THREAD_CPUTIME_ID"; -+static const unsigned clock_i2s_direct[] = { -+ 120,36,95,178,75,156,52,0,135,15, -+}; -+static const char *clock_i2s(int v) { -+ return i2s_direct__(clock_strings, clock_i2s_direct, 0, 9, v); -+} -diff --git a/auparse/clone-flagtabs.h b/auparse/clone-flagtabs.h -new file mode 100644 -index 0000000..b8f815d ---- /dev/null -+++ b/auparse/clone-flagtabs.h -@@ -0,0 +1,10 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char clone_flag_strings[] = "CLONE_CHILD_CLEARTID\0CLONE_CHILD_SETTID\0CLONE_DETACHED\0CLONE_FILES\0CLONE_FS\0CLONE_IO\0CLONE_NEWIPC\0CLONE_NEWNET\0CLONE_NEWNS\0CLONE_NEWPID\0" -+ "CLONE_NEWUSER\0CLONE_NEWUTS\0CLONE_PARENT\0CLONE_PARENT_SETTID\0CLONE_PTRACE\0CLONE_SETTLS\0CLONE_SIGHAND\0CLONE_STOPPED\0CLONE_SYSVSEM\0CLONE_THREAD\0" -+ "CLONE_UNTRACED\0CLONE_VFORK\0CLONE_VM"; -+static const struct transtab clone_flag_table[] = { -+ {256,304},{512,67},{1024,55},{2048,222},{8192,196},{16384,292},{32768,163},{65536,264},{131072,111},{262144,250}, -+ {524288,209},{1048576,176},{2097152,0},{4194304,40},{8388608,277},{16777216,21},{33554432,236},{67108864,150},{134217728,85},{268435456,136}, -+ {536870912,123},{1073741824,98},{-2147483648,76}, -+}; -+#define CLONE_FLAG_NUM_ENTRIES (sizeof(clone_flag_table) / sizeof(*clone_flag_table)) -diff --git a/auparse/epoll_ctls.h b/auparse/epoll_ctls.h -new file mode 100644 -index 0000000..2787c18 ---- /dev/null -+++ b/auparse/epoll_ctls.h -@@ -0,0 +1,8 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char epoll_ctl_strings[] = "EPOLL_CTL_ADD\0EPOLL_CTL_DEL\0EPOLL_CTL_MOD"; -+static const unsigned epoll_ctl_i2s_direct[] = { -+ 0,14,28, -+}; -+static const char *epoll_ctl_i2s(int v) { -+ return i2s_direct__(epoll_ctl_strings, epoll_ctl_i2s_direct, 1, 3, v); -+} -diff --git a/auparse/famtabs.h b/auparse/famtabs.h -new file mode 100644 -index 0000000..4c88ee5 ---- /dev/null -+++ b/auparse/famtabs.h -@@ -0,0 +1,14 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char fam_strings[] = "alg\0appletalk\0ash\0atmpvc\0atmsvc\0ax25\0bluetooth\0bridge\0caif\0can\0" -+ "decnet\0econet\0ieee802154\0inet\0inet6\0ipx\0irda\0isdn\0iucv\0key\0" -+ "llc\0local\0netbeui\0netlink\0netrom\0nfc\0packet\0phonet\0pppox\0rds\0" -+ "rose\0rxrpc\0security\0sna\0tipc\0wanpipe\0x25"; -+static const unsigned fam_i2s_direct[] = { -+ 126,88,32,99,4,148,47,18,220,93, -+ 183,63,132,194,118,140,159,14,70,25, -+ 179,203,103,173,212,122,-1u,-1u,59,207, -+ 37,113,188,108,166,77,54,0,155, -+}; -+static const char *fam_i2s(int v) { -+ return i2s_direct__(fam_strings, fam_i2s_direct, 1, 39, v); -+} -diff --git a/auparse/fcntl-cmdtabs.h b/auparse/fcntl-cmdtabs.h -new file mode 100644 -index 0000000..5082755 ---- /dev/null -+++ b/auparse/fcntl-cmdtabs.h -@@ -0,0 +1,17 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char fcntl_strings[] = "F_CANCELLK\0F_DUPFD\0F_DUPFD_CLOEXEC\0F_GETFD\0F_GETFL\0F_GETLEASE\0F_GETLK\0F_GETLK64\0F_GETOWN\0F_GETOWN_EX\0" -+ "F_GETPIPE_SZ\0F_GETSIG\0F_NOTIFY\0F_SETFD\0F_SETFL\0F_SETLEASE\0F_SETLK\0F_SETLK64\0F_SETLKW\0F_SETLKW64\0" -+ "F_SETOWN\0F_SETOWN_EX\0F_SETPIPE_SZ\0F_SETSIG"; -+static const int fcntl_i2s_i[] = { -+ 0,1,2,3,4,5,6,7,8,9, -+ 10,11,12,13,14,15,16,1024,1025,1026, -+ 1029,1030,1031,1032, -+}; -+static const unsigned fcntl_i2s_s[] = { -+ 11,35,132,43,140,62,159,177,197,80, -+ 231,114,70,167,186,206,89,148,51,123, -+ 0,19,218,101, -+}; -+static const char *fcntl_i2s(int v) { -+ return i2s_bsearch__(fcntl_strings, fcntl_i2s_i, fcntl_i2s_s, 24, v); -+} -diff --git a/auparse/flagtabs.h b/auparse/flagtabs.h -new file mode 100644 -index 0000000..5f57e14 ---- /dev/null -+++ b/auparse/flagtabs.h -@@ -0,0 +1,6 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char flag_strings[] = "access\0atomic\0continue\0create\0directory\0follow\0noalt\0open\0parent"; -+static const struct transtab flag_table[] = { -+ {1,40},{2,30},{4,14},{16,58},{32,47},{64,7},{256,53},{512,23},{1024,0}, -+}; -+#define FLAG_NUM_ENTRIES (sizeof(flag_table) / sizeof(*flag_table)) -diff --git a/auparse/icmptypetabs.h b/auparse/icmptypetabs.h -new file mode 100644 -index 0000000..49b44bf ---- /dev/null -+++ b/auparse/icmptypetabs.h -@@ -0,0 +1,10 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char icmptype_strings[] = "address-mask-reply\0address-mask-request\0destination-unreachable\0echo\0echo-reply\0info-reply\0info-request\0parameter-problem\0redirect\0source-quench\0" -+ "time-exceeded\0timestamp-reply\0timestamp-request"; -+static const unsigned icmptype_i2s_direct[] = { -+ 69,-1u,-1u,40,131,122,-1u,-1u,64,-1u, -+ -1u,145,104,175,159,91,80,19,0, -+}; -+static const char *icmptype_i2s(int v) { -+ return i2s_direct__(icmptype_strings, icmptype_i2s_direct, 0, 18, v); -+} -diff --git a/auparse/ipctabs.h b/auparse/ipctabs.h -new file mode 100644 -index 0000000..4bf3bcd ---- /dev/null -+++ b/auparse/ipctabs.h -@@ -0,0 +1,11 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char ipc_strings[] = "msgctl\0msgget\0msgrcv\0msgsnd\0semctl\0semget\0semop\0semtimedop\0shmat\0shmctl\0" -+ "shmdt\0shmget"; -+static const unsigned ipc_i2s_direct[] = { -+ 42,35,28,48,-1u,-1u,-1u,-1u,-1u,-1u, -+ 21,14,7,0,-1u,-1u,-1u,-1u,-1u,-1u, -+ 59,72,78,65, -+}; -+static const char *ipc_i2s(int v) { -+ return i2s_direct__(ipc_strings, ipc_i2s_direct, 1, 24, v); -+} -diff --git a/auparse/mmaptabs.h b/auparse/mmaptabs.h -new file mode 100644 -index 0000000..386833c ---- /dev/null -+++ b/auparse/mmaptabs.h -@@ -0,0 +1,8 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char mmap_strings[] = "MAP_32BIT\0MAP_ANONYMOUS\0MAP_DENYWRITE\0MAP_EXECUTABLE\0MAP_FIXED\0MAP_GROWSDOWN\0MAP_HUGETLB\0MAP_LOCKED\0MAP_NONBLOCK\0MAP_NORESERVE\0" -+ "MAP_POPULATE\0MAP_PRIVATE\0MAP_SHARED\0MAP_STACK"; -+static const struct transtab mmap_table[] = { -+ {1,152},{2,140},{16,53},{32,10},{64,0},{256,63},{2048,24},{4096,38},{8192,89},{16384,113}, -+ {32768,127},{65536,100},{131072,163},{262144,77}, -+}; -+#define MMAP_NUM_ENTRIES (sizeof(mmap_table) / sizeof(*mmap_table)) -diff --git a/auparse/mounttabs.h b/auparse/mounttabs.h -new file mode 100644 -index 0000000..018a6b0 ---- /dev/null -+++ b/auparse/mounttabs.h -@@ -0,0 +1,10 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char mount_strings[] = "MS_ACTIVE\0MS_BIND\0MS_BORN\0MS_DIRSYNC\0MS_I_VERSION\0MS_KERNMOUNT\0MS_MANDLOCK\0MS_MOVE\0MS_NOATIME\0MS_NODEV\0" -+ "MS_NODIRATIME\0MS_NOEXEC\0MS_NOSEC\0MS_NOSUID\0MS_NOUSER\0MS_POSIXACL\0MS_PRIVATE\0MS_RDONLY\0MS_REC\0MS_RELATIME\0" -+ "MS_REMOUNT\0MS_SHARED\0MS_SILENT\0MS_SLAVE\0MS_STRICTATIME\0MS_SYNCHRONOUS\0MS_UNBINDABLE"; -+static const struct transtab mount_table[] = { -+ {1,179},{2,136},{4,94},{8,117},{16,263},{32,208},{64,63},{128,26},{1024,83},{2048,103}, -+ {4096,10},{8192,75},{16384,189},{32768,229},{65536,156},{131072,278},{262144,168},{524288,239},{1048576,219},{2097152,196}, -+ {4194304,50},{8388608,37},{16777216,248},{268435456,127},{536870912,18},{1073741824,0},{-2147483648,146}, -+}; -+#define MOUNT_NUM_ENTRIES (sizeof(mount_table) / sizeof(*mount_table)) -diff --git a/auparse/nfprototabs.h b/auparse/nfprototabs.h -new file mode 100644 -index 0000000..9bb2723 ---- /dev/null -+++ b/auparse/nfprototabs.h -@@ -0,0 +1,9 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char nfproto_strings[] = "arp\0bridge\0decnet\0ipv4\0ipv6\0unspecified"; -+static const unsigned nfproto_i2s_direct[] = { -+ 28,-1u,18,0,-1u,-1u,-1u,4,-1u,-1u, -+ 23,-1u,11, -+}; -+static const char *nfproto_i2s(int v) { -+ return i2s_direct__(nfproto_strings, nfproto_i2s_direct, 0, 12, v); -+} -diff --git a/auparse/open-flagtabs.h b/auparse/open-flagtabs.h -new file mode 100644 -index 0000000..0988baf ---- /dev/null -+++ b/auparse/open-flagtabs.h -@@ -0,0 +1,8 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char open_flag_strings[] = "O_APPEND\0O_ASYNC\0O_CLOEXEC\0O_CREAT\0O_DIRECT\0O_DIRECTORY\0O_EXCL\0O_NOATIME\0O_NOCTTY\0O_NOFOLLOW\0" -+ "O_NONBLOCK\0O_RDWR\0O_SYNC\0O_TRUNC\0O_WRONLY"; -+static const struct transtab open_flag_table[] = { -+ {1,126},{2,104},{64,27},{128,56},{256,73},{512,118},{1024,0},{2048,93},{4096,111},{8192,9}, -+ {16384,35},{65536,44},{131072,82},{262144,63},{524288,17}, -+}; -+#define OPEN_FLAG_NUM_ENTRIES (sizeof(open_flag_table) / sizeof(*open_flag_table)) -diff --git a/auparse/persontabs.h b/auparse/persontabs.h -new file mode 100644 -index 0000000..d099839 ---- /dev/null -+++ b/auparse/persontabs.h -@@ -0,0 +1,17 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char person_strings[] = "PER_BSD\0PER_HPUX\0PER_IRIX32\0PER_IRIX64\0PER_IRIXN32\0PER_ISCR4\0PER_LINUX\0PER_LINUX32\0PER_LINUX32_3GB\0PER_LINUX_32BIT\0" -+ "PER_OSF4\0PER_OSR5\0PER_RISCOS\0PER_SCOSVR3\0PER_SOLARIS\0PER_SUNOS\0PER_SVR3\0PER_SVR4\0PER_UW7\0PER_WYSEV386\0" -+ "PER_XENIX"; -+static const int person_i2s_i[] = { -+ 0,6,8,12,15,16,8388608,67108869,67108870,67108873, -+ 67108874,67108875,67108877,68157441,68157454,83886082,83886084,83886087,100663299,117440515, -+ 134217736, -+}; -+static const unsigned person_i2s_s[] = { -+ 61,0,71,133,115,8,99,51,168,17, -+ 39,28,156,187,196,178,204,217,124,144, -+ 83, -+}; -+static const char *person_i2s(int v) { -+ return i2s_bsearch__(person_strings, person_i2s_i, person_i2s_s, 21, v); -+} -diff --git a/auparse/prottabs.h b/auparse/prottabs.h -new file mode 100644 -index 0000000..1727f43 ---- /dev/null -+++ b/auparse/prottabs.h -@@ -0,0 +1,6 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char prot_strings[] = "PROT_EXEC\0PROT_READ\0PROT_SEM\0PROT_WRITE"; -+static const struct transtab prot_table[] = { -+ {1,10},{2,29},{4,0},{8,20}, -+}; -+#define PROT_NUM_ENTRIES (sizeof(prot_table) / sizeof(*prot_table)) -diff --git a/auparse/ptracetabs.h b/auparse/ptracetabs.h -new file mode 100644 -index 0000000..6bbfc9b ---- /dev/null -+++ b/auparse/ptracetabs.h -@@ -0,0 +1,17 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char ptrace_strings[] = "PTRACE_ATTACH\0PTRACE_CONT\0PTRACE_DETACH\0PTRACE_GETEVENTMSG\0PTRACE_GETFPREGS\0PTRACE_GETFPXREGS\0PTRACE_GETREGS\0PTRACE_GETREGSET\0PTRACE_GETSIGINFO\0PTRACE_INTERRUPT\0" -+ "PTRACE_KILL\0PTRACE_LISTEN\0PTRACE_PEEKDATA\0PTRACE_PEEKTEXT\0PTRACE_PEEKUSER\0PTRACE_POKEDATA\0PTRACE_POKETEXT\0PTRACE_POKEUSER\0PTRACE_SEIZE\0PTRACE_SETFPREGS\0" -+ "PTRACE_SETFPXREGS\0PTRACE_SETOPTIONS\0PTRACE_SETREGS\0PTRACE_SETREGSET\0PTRACE_SETSIGINFO\0PTRACE_SINGLESTEP\0PTRACE_SYSCALL\0PTRACE_TRACEME"; -+static const int ptrace_i2s_i[] = { -+ 0,1,2,3,4,5,6,7,8,9, -+ 12,13,14,15,16,17,18,19,24,16896, -+ 16897,16898,16899,16900,16901,16902,16903,16904, -+}; -+static const unsigned ptrace_i2s_s[] = { -+ 432,203,187,219,251,235,267,14,161,399, -+ 94,349,59,296,0,26,76,313,417,331, -+ 40,126,381,109,364,283,144,173, -+}; -+static const char *ptrace_i2s(int v) { -+ return i2s_bsearch__(ptrace_strings, ptrace_i2s_i, ptrace_i2s_s, 28, v); -+} -diff --git a/auparse/recvtabs.h b/auparse/recvtabs.h -new file mode 100644 -index 0000000..59578eb ---- /dev/null -+++ b/auparse/recvtabs.h -@@ -0,0 +1,8 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char recv_strings[] = "MSG_CMSG_CLOEXEC\0MSG_CONFIRM\0MSG_CTRUNC\0MSG_DONTROUTE\0MSG_DONTWAIT\0MSG_EOR\0MSG_ERRQUEUE\0MSG_FIN\0MSG_MORE\0MSG_NOSIGNAL\0" -+ "MSG_OOB\0MSG_PEEK\0MSG_PROXY\0MSG_RST\0MSG_SYN\0MSG_TRUNC\0MSG_WAITALL\0MSG_WAITFORONE"; -+static const struct transtab recv_table[] = { -+ {1,118},{2,126},{4,40},{8,29},{16,135},{32,161},{64,54},{128,67},{256,171},{512,88}, -+ {1024,153},{2048,17},{4096,145},{8192,75},{16384,105},{32768,96},{65536,183},{1073741824,0}, -+}; -+#define RECV_NUM_ENTRIES (sizeof(recv_table) / sizeof(*recv_table)) -diff --git a/auparse/rlimittabs.h b/auparse/rlimittabs.h -new file mode 100644 -index 0000000..364ad69 ---- /dev/null -+++ b/auparse/rlimittabs.h -@@ -0,0 +1,10 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char rlimit_strings[] = "RLIMIT_AS\0RLIMIT_CORE\0RLIMIT_CPU\0RLIMIT_DATA\0RLIMIT_FSIZE\0RLIMIT_LOCKS\0RLIMIT_MEMLOCK\0RLIMIT_MSGQUEUE\0RLIMIT_NICE\0RLIMIT_NOFILE\0" -+ "RLIMIT_NPROC\0RLIMIT_RSS\0RLIMIT_RTPRIO\0RLIMIT_RTTIME\0RLIMIT_SIGPENDING\0RLIMIT_STACK"; -+static const unsigned rlimit_i2s_direct[] = { -+ 22,45,33,198,10,141,128,114,71,0, -+ 58,180,86,102,152,166, -+}; -+static const char *rlimit_i2s(int v) { -+ return i2s_direct__(rlimit_strings, rlimit_i2s_direct, 0, 15, v); -+} -diff --git a/auparse/signaltabs.h b/auparse/signaltabs.h -new file mode 100644 -index 0000000..974621f ---- /dev/null -+++ b/auparse/signaltabs.h -@@ -0,0 +1,14 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char signal_strings[] = "0\0IGPWR\0SIGABRT\0SIGALRM\0SIGBUS\0SIGCHLD\0SIGCONT\0SIGFPE\0SIGHUP\0SIGILL\0" -+ "SIGINT\0SIGIO\0SIGKILL\0SIGPIPE\0SIGPROF\0SIGQUIT\0SIGSEGV\0SIGSTKFLT\0SIGSTOP\0SIGSYS\0" -+ "SIGTERM\0SIGTRAP\0SIGTSTP\0SIGTTIN\0SIGTTOU\0SIGURG\0SIGUSR1\0SIGUSR2\0SIGVTALRM\0SIGWINCH\0" -+ "SIGXCPU\0SIGXFSZ"; -+static const unsigned signal_i2s_direct[] = { -+ 0,54,68,105,61,154,8,24,47,81, -+ 193,113,201,89,16,146,121,31,39,131, -+ 162,170,178,186,228,236,209,97,219,75, -+ 2,139, -+}; -+static const char *signal_i2s(int v) { -+ return i2s_direct__(signal_strings, signal_i2s_direct, 0, 31, v); -+} -diff --git a/auparse/socktabs.h b/auparse/socktabs.h -new file mode 100644 -index 0000000..66a8235 ---- /dev/null -+++ b/auparse/socktabs.h -@@ -0,0 +1,10 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char sock_strings[] = "accept\0accept4\0bind\0connect\0getpeername\0getsockname\0getsockopt\0listen\0recv\0recvfrom\0" -+ "recvmmsg\0recvmsg\0send\0sendmmsg\0sendmsg\0sendto\0setsockopt\0shutdown\0socket\0socketpair"; -+static const unsigned sock_i2s_direct[] = { -+ 150,15,20,63,0,40,28,157,101,70, -+ 123,75,141,130,52,115,93,7,84,106, -+}; -+static const char *sock_i2s(int v) { -+ return i2s_direct__(sock_strings, sock_i2s_direct, 1, 20, v); -+} -diff --git a/auparse/socktypetabs.h b/auparse/socktypetabs.h -new file mode 100644 -index 0000000..05e8d36 ---- /dev/null -+++ b/auparse/socktypetabs.h -@@ -0,0 +1,8 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char sock_type_strings[] = "SOCK_DCCP\0SOCK_DGRAM\0SOCK_PACKET\0SOCK_RAW\0SOCK_RDM\0SOCK_SEQPACKET\0SOCK_STREAM"; -+static const unsigned sock_type_i2s_direct[] = { -+ 66,10,33,42,51,0,-1u,-1u,-1u,21, -+}; -+static const char *sock_type_i2s(int v) { -+ return i2s_direct__(sock_type_strings, sock_type_i2s_direct, 1, 10, v); -+} -diff --git a/auparse/typetabs.h b/auparse/typetabs.h -new file mode 100644 -index 0000000..4dc097f ---- /dev/null -+++ b/auparse/typetabs.h -@@ -0,0 +1,29 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char type_strings[] = "a0\0a1\0a2\0a3\0acct\0addr\0arch\0auid\0cap_fi\0cap_fp\0" -+ "cap_pe\0cap_pi\0cap_pp\0capability\0cgroup\0cmd\0comm\0cwd\0data\0device\0" -+ "dir\0egid\0euid\0exe\0exit\0family\0file\0flags\0fsgid\0fsuid\0" -+ "gid\0icmptype\0id\0igid\0inode_gid\0inode_uid\0iuid\0key\0mode\0name\0" -+ "new-disk\0new-fs\0new_gid\0oauid\0obj_gid\0obj_uid\0ogid\0old-disk\0old-fs\0old_prom\0" -+ "ouid\0path\0per\0perm\0perm_mask\0prom\0proto\0res\0result\0saddr\0" -+ "sauid\0ses\0sgid\0sig\0suid\0syscall\0uid\0vm\0watch"; -+static const unsigned type_s2i_s[] = { -+ 0,3,6,9,12,17,22,27,32,39, -+ 46,53,60,67,78,85,89,94,98,103, -+ 110,114,119,124,128,133,140,145,151,157, -+ 163,167,176,179,184,194,204,209,213,218, -+ 223,232,239,247,253,261,269,274,283,290, -+ 299,304,309,313,318,328,333,339,343,350, -+ 356,362,366,371,375,380,388,392,395, -+}; -+static const int type_s2i_i[] = { -+ 14,15,16,17,6,26,4,1,22,22, -+ 22,22,22,12,6,6,6,6,20,6, -+ 6,2,1,6,5,23,6,10,2,1, -+ 2,24,1,2,2,1,1,6,8,6, -+ 6,6,2,1,2,1,2,6,6,11, -+ 1,6,27,7,7,11,25,13,13,9, -+ 1,21,2,18,1,3,1,6,6, -+}; -+static int type_s2i(const char *s, int *value) { -+ return s2i__(type_strings, type_s2i_s, type_s2i_i, 69, s, value); -+} -diff --git a/lib/Makefile.am b/lib/Makefile.am -index c5952f9..6497e0a 100644 ---- a/lib/Makefile.am -+++ b/lib/Makefile.am -@@ -47,99 +47,3 @@ endif - if USE_ARMEB - BUILT_SOURCES += armeb_tables.h - endif --noinst_PROGRAMS = gen_actiontabs_h gen_errtabs_h gen_fieldtabs_h \ -- gen_flagtabs_h gen_ftypetabs_h gen_i386_tables_h \ -- gen_ia64_tables_h gen_machinetabs_h gen_msg_typetabs_h \ -- gen_optabs_h gen_ppc_tables_h gen_s390_tables_h \ -- gen_s390x_tables_h gen_x86_64_tables_h --if USE_ALPHA --noinst_PROGRAMS += gen_alpha_tables_h --endif --if USE_ARMEB --noinst_PROGRAMS += gen_armeb_tables_h --endif --gen_actiontabs_h_SOURCES = gen_tables.c gen_tables.h actiontab.h --gen_actiontabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="actiontab.h"' --actiontabs.h: gen_actiontabs_h Makefile -- ./gen_actiontabs_h --lowercase --i2s --s2i action > $@ -- --if USE_ALPHA --gen_alpha_tables_h_SOURCES = gen_tables.c gen_tables.h alpha_table.h --gen_alpha_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="alpha_table.h"' --alpha_tables.h: gen_alpha_tables_h Makefile -- ./gen_alpha_tables_h --lowercase --i2s --s2i alpha_syscall > $@ --endif -- --if USE_ARMEB --gen_armeb_tables_h_SOURCES = gen_tables.c gen_tables.h armeb_table.h --gen_armeb_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="armeb_table.h"' --armeb_tables.h: gen_armeb_tables_h Makefile -- ./gen_armeb_tables_h --lowercase --i2s --s2i armeb_syscall > $@ --endif -- --gen_errtabs_h_SOURCES = gen_tables.c gen_tables.h errtab.h --gen_errtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="errtab.h"' --errtabs.h: gen_errtabs_h Makefile -- ./gen_errtabs_h --duplicate-ints --uppercase --i2s --s2i err > $@ -- --gen_fieldtabs_h_SOURCES = gen_tables.c gen_tables.h fieldtab.h --gen_fieldtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="fieldtab.h"' --fieldtabs.h: gen_fieldtabs_h Makefile -- ./gen_fieldtabs_h --duplicate-ints --lowercase --i2s --s2i field > $@ -- --gen_flagtabs_h_SOURCES = gen_tables.c gen_tables.h flagtab.h --gen_flagtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="flagtab.h"' --flagtabs.h: gen_flagtabs_h Makefile -- ./gen_flagtabs_h --lowercase --i2s --s2i flag > $@ -- --gen_ftypetabs_h_SOURCES = gen_tables.c gen_tables.h ftypetab.h --gen_ftypetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ftypetab.h"' --ftypetabs.h: gen_ftypetabs_h Makefile -- ./gen_ftypetabs_h --lowercase --i2s --s2i ftype > $@ -- --gen_i386_tables_h_SOURCES = gen_tables.c gen_tables.h i386_table.h --gen_i386_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="i386_table.h"' --i386_tables.h: gen_i386_tables_h Makefile -- ./gen_i386_tables_h --duplicate-ints --lowercase --i2s --s2i \ -- i386_syscall > $@ -- --gen_ia64_tables_h_SOURCES = gen_tables.c gen_tables.h ia64_table.h --gen_ia64_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ia64_table.h"' --ia64_tables.h: gen_ia64_tables_h Makefile -- ./gen_ia64_tables_h --lowercase --i2s --s2i ia64_syscall > $@ -- --gen_machinetabs_h_SOURCES = gen_tables.c gen_tables.h machinetab.h --gen_machinetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="machinetab.h"' --machinetabs.h: gen_machinetabs_h Makefile -- ./gen_machinetabs_h --duplicate-ints --lowercase --i2s --s2i machine \ -- > $@ -- --gen_msg_typetabs_h_SOURCES = gen_tables.c gen_tables.h msg_typetab.h --gen_msg_typetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="msg_typetab.h"' --msg_typetabs.h: gen_msg_typetabs_h Makefile -- ./gen_msg_typetabs_h --uppercase --i2s --s2i msg_type > $@ -- --gen_optabs_h_SOURCES = gen_tables.c gen_tables.h optab.h --gen_optabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="optab.h"' --optabs.h: gen_optabs_h Makefile -- ./gen_optabs_h --i2s op > $@ -- --gen_ppc_tables_h_SOURCES = gen_tables.c gen_tables.h ppc_table.h --gen_ppc_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ppc_table.h"' --ppc_tables.h: gen_ppc_tables_h Makefile -- ./gen_ppc_tables_h --lowercase --i2s --s2i ppc_syscall > $@ -- --gen_s390_tables_h_SOURCES = gen_tables.c gen_tables.h s390_table.h --gen_s390_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="s390_table.h"' --s390_tables.h: gen_s390_tables_h Makefile -- ./gen_s390_tables_h --lowercase --i2s --s2i s390_syscall > $@ -- --gen_s390x_tables_h_SOURCES = gen_tables.c gen_tables.h s390x_table.h --gen_s390x_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="s390x_table.h"' --s390x_tables.h: gen_s390x_tables_h Makefile -- ./gen_s390x_tables_h --lowercase --i2s --s2i s390x_syscall > $@ -- --gen_x86_64_tables_h_SOURCES = gen_tables.c gen_tables.h x86_64_table.h --gen_x86_64_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="x86_64_table.h"' --x86_64_tables.h: gen_x86_64_tables_h Makefile -- ./gen_x86_64_tables_h --lowercase --i2s --s2i x86_64_syscall > $@ -diff --git a/lib/actiontabs.h b/lib/actiontabs.h -new file mode 100644 -index 0000000..a7a9e62 ---- /dev/null -+++ b/lib/actiontabs.h -@@ -0,0 +1,26 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char action_strings[] = "always\0never\0possible"; -+static const unsigned action_s2i_s[] = { -+ 0,7,13, -+}; -+static const int action_s2i_i[] = { -+ 2,0,1, -+}; -+static int action_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; -+ } -+ copy[i] = 0; -+ return s2i__(action_strings, action_s2i_s, action_s2i_i, 3, copy, value); -+ } -+} -+static const unsigned action_i2s_direct[] = { -+ 7,13,0, -+}; -+static const char *action_i2s(int v) { -+ return i2s_direct__(action_strings, action_i2s_direct, 0, 2, v); -+} -diff --git a/lib/alpha_tables.h b/lib/alpha_tables.h -new file mode 100644 -index 0000000..da03f34 ---- /dev/null -+++ b/lib/alpha_tables.h -@@ -0,0 +1,196 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char alpha_syscall_strings[] = "_sysctl\0accept\0accept4\0access\0acct\0add_key\0adjtimex\0afs_syscall\0bdflush\0bind\0" -+ "brk\0capget\0capset\0chdir\0chmod\0chown\0chroot\0clock_adjtime\0clone\0close\0" -+ "connect\0create_module\0delete_module\0dipc\0dup\0dup2\0dup3\0epoll_create\0epoll_create1\0epoll_ctl\0" -+ "epoll_pwait\0epoll_wait\0eventfd\0eventfd2\0exec_with_loader\0execve\0exit\0exit_group\0faccessat\0fadvise64\0" -+ "fallocate\0fanotify_init\0fanotify_mark\0fchdir\0fchmod\0fchmodat\0fchown\0fchownat\0fcntl\0fdatasync\0" -+ "fgetxattr\0flistxattr\0flock\0fork\0fremovexattr\0fsetxattr\0fstat\0fstat64\0fstatat64\0fstatfs\0" -+ "fsync\0ftruncate\0futex\0futimesat\0get_kernel_syms\0get_mempolicy\0get_robust_list\0getcpu\0getcwd\0getdents\0" -+ "getdents64\0getdtablesize\0getgroups\0gethostname\0getitimer\0getpagesize\0getpeername\0getpgid\0getpgrp\0getpriority\0" -+ "getresgid\0getresuid\0getrlimit\0getrusage\0getsid\0getsockname\0getsockopt\0gettid\0gettimeofday\0getxattr\0" -+ "getxgid\0getxpid\0getxuid\0init_module\0inotify_add_watch\0inotify_init\0inotify_init1\0inotify_rm_watch\0io_cancel\0io_destroy\0" -+ "io_getevents\0io_setup\0io_submit\0ioctl\0ioprio_get\0ioprio_set\0kexec_load\0keyctl\0kill\0lchown\0" -+ "lgetxattr\0link\0linkat\0listen\0listxattr\0llistxattr\0lookup_dcookie\0lremovexattr\0lseek\0lsetxattr\0" -+ "lstat\0lstat64\0madvise\0mbind\0migrate_pages\0mincore\0mkdir\0mkdirat\0mknod\0mknodat\0" -+ "mlock\0mlockall\0mmap\0mount\0move_pages\0mprotect\0mq_getsetattr\0mq_notify\0mq_open\0mq_timedreceive\0" -+ "mq_timedsend\0mq_unlink\0mremap\0msgctl\0msgget\0msgrcv\0msgsnd\0msync\0munlock\0munlockall\0" -+ "munmap\0name_to_handle_at\0nanosleep\0nfsservctl\0old_adjtimex\0oldumount\0open\0open_by_handle_at\0openat\0osf_adjtime\0" -+ "osf_afs_syscall\0osf_alt_plock\0osf_alt_setsid\0osf_alt_sigpending\0osf_asynch_daemon\0osf_audcntl\0osf_audgen\0osf_chflags\0osf_execve\0osf_exportfs\0" -+ "osf_fchflags\0osf_fdatasync\0osf_fpathconf\0osf_fstatfs\0osf_fuser\0osf_getaddressconf\0osf_getdirentries\0osf_getdomainname\0osf_getfh\0osf_getfsstat\0" -+ "osf_gethostid\0osf_getitimer\0osf_getlogin\0osf_getmnt\0osf_getrusage\0osf_getsysinfo\0osf_gettimeofday\0osf_kloadcall\0osf_kmodcall\0osf_memcntl\0" -+ "osf_mincore\0osf_mount\0osf_mremap\0osf_msfs_syscall\0osf_msleep\0osf_mvalid\0osf_mwakeup\0osf_naccept\0osf_nfssvc\0osf_ngetpeername\0" -+ "osf_ngetsockname\0osf_nrecvfrom\0osf_nrecvmsg\0osf_nsendmsg\0osf_ntp_adjtime\0osf_ntp_gettime\0osf_old_creat\0osf_old_fstat\0osf_old_getpgrp\0osf_old_killpg\0" -+ "osf_old_lstat\0osf_old_open\0osf_old_sigaction\0osf_old_sigblock\0osf_old_sigreturn\0osf_old_sigsetmask\0osf_old_sigvec\0osf_old_stat\0osf_old_vadvise\0osf_old_vtrace\0" -+ "osf_old_wait\0osf_oldquota\0osf_pathconf\0osf_pid_block\0osf_pid_unblock\0osf_plock\0osf_priocntlset\0osf_profil\0osf_proplist_syscall\0osf_reboot\0" -+ "osf_revoke\0osf_sbrk\0osf_security\0osf_select\0osf_set_program_attributes\0osf_set_speculative\0osf_sethostid\0osf_setitimer\0osf_setlogin\0osf_setsysinfo\0" -+ "osf_settimeofday\0osf_shmat\0osf_signal\0osf_sigprocmask\0osf_sigsendset\0osf_sigstack\0osf_sigwaitprim\0osf_sstk\0osf_statfs\0osf_subsys_info\0" -+ "osf_swapctl\0osf_swapon\0osf_syscall\0osf_sysinfo\0osf_table\0osf_uadmin\0osf_usleep_thread\0osf_uswitch\0osf_utc_adjtime\0osf_utc_gettime\0" -+ "osf_utimes\0osf_utsname\0osf_wait4\0osf_waitid\0pciconfig_iobase\0pciconfig_read\0pciconfig_write\0perf_event_open\0personality\0pipe\0" -+ "pipe2\0pivot_root\0poll\0ppoll\0prctl\0pread\0preadv\0prlimit64\0pselect6\0ptrace\0" -+ "pwrite\0pwritev\0query_module\0quotactl\0read\0readahead\0readlink\0readlinkat\0readv\0reboot\0" -+ "recv\0recvfrom\0recvmmsg\0recvmsg\0remap_file_pages\0removexattr\0rename\0renameat\0request_key\0restart_syscall\0" -+ "rmdir\0rt_sigaction\0rt_sigpending\0rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0rt_sigtimedwait\0rt_tgsigqueueinfo\0sched_get_priority_max\0" -+ "sched_get_priority_min\0sched_getaffinity\0sched_getparam\0sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0sched_setscheduler\0sched_yield\0select\0" -+ "semctl\0semget\0semop\0send\0sendfile\0sendmmsg\0sendmsg\0sendto\0set_mempolicy\0set_robust_list\0" -+ "set_tid_address\0setdomainname\0setfsgid\0setfsuid\0setgid\0setgroups\0sethae\0sethostname\0setitimer\0setns\0" -+ "setpgid\0setpgrp\0setpriority\0setregid\0setresgid\0setresuid\0setreuid\0setrlimit\0setsid\0setsockopt\0" -+ "settimeofday\0setuid\0setxattr\0shmctl\0shmdt\0shmget\0shutdown\0sigaction\0sigaltstack\0signalfd\0" -+ "signalfd4\0sigpending\0sigreturn\0sigsuspend\0socket\0socketpair\0splice\0stat\0stat64\0statfs\0" -+ "swapoff\0swapon\0symlink\0symlinkat\0sync\0sync_file_range\0syncfs\0sysfs\0sysinfo\0syslog\0" -+ "tee\0tgkill\0timerfd\0timerfd_create\0timerfd_gettime\0timerfd_settime\0times\0tkill\0truncate\0tuxcall\0" -+ "umask\0umount\0uname\0unlink\0unlinkat\0unshare\0uselib\0ustat\0utimensat\0utimes\0" -+ "vfork\0vhangup\0vmsplice\0vserver\0wait4\0waitid\0write\0writev"; -+static const unsigned alpha_syscall_s2i_s[] = { -+ 0,8,15,23,30,35,43,52,64,72, -+ 77,81,88,95,101,107,113,120,134,140, -+ 146,154,168,182,187,191,196,201,214,228, -+ 238,250,261,269,278,295,302,307,318,328, -+ 338,348,362,376,383,390,399,406,415,421, -+ 431,441,452,458,463,476,486,492,500,510, -+ 518,524,534,540,550,566,580,596,603,610, -+ 619,630,644,654,666,676,688,700,708,716, -+ 728,738,748,758,768,775,787,798,805,818, -+ 827,835,843,851,863,881,894,908,925,935, -+ 946,959,968,978,984,995,1006,1017,1024,1029, -+ 1036,1046,1051,1058,1065,1075,1086,1101,1114,1120, -+ 1130,1136,1144,1152,1158,1172,1180,1186,1194,1200, -+ 1208,1214,1223,1228,1234,1245,1254,1268,1278,1286, -+ 1302,1315,1325,1332,1339,1346,1353,1360,1366,1374, -+ 1385,1392,1410,1420,1431,1444,1454,1459,1477,1484, -+ 1496,1512,1526,1541,1560,1578,1590,1601,1613,1624, -+ 1637,1650,1664,1678,1690,1700,1719,1737,1755,1765, -+ 1779,1793,1807,1820,1831,1845,1860,1877,1891,1904, -+ 1916,1928,1938,1949,1966,1977,1988,2000,2012,2023, -+ 2040,2057,2071,2084,2097,2113,2129,2143,2157,2173, -+ 2188,2202,2215,2233,2250,2268,2287,2302,2315,2331, -+ 2346,2359,2372,2385,2399,2415,2425,2441,2452,2473, -+ 2484,2495,2504,2517,2528,2555,2575,2589,2603,2616, -+ 2631,2648,2658,2669,2685,2700,2713,2729,2738,2749, -+ 2765,2777,2788,2800,2812,2822,2833,2851,2863,2879, -+ 2895,2906,2918,2928,2939,2956,2971,2987,3003,3015, -+ 3020,3026,3037,3042,3048,3054,3060,3067,3077,3086, -+ 3093,3100,3108,3121,3130,3135,3145,3154,3165,3171, -+ 3178,3183,3192,3201,3209,3226,3238,3245,3254,3266, -+ 3282,3288,3301,3315,3330,3346,3359,3373,3389,3407, -+ 3430,3453,3471,3486,3505,3527,3545,3560,3579,3591, -+ 3598,3605,3612,3618,3623,3632,3641,3649,3656,3670, -+ 3686,3702,3716,3725,3734,3741,3751,3758,3770,3780, -+ 3786,3794,3802,3814,3823,3833,3843,3852,3862,3869, -+ 3880,3893,3900,3909,3916,3922,3929,3938,3948,3960, -+ 3969,3979,3990,4000,4011,4018,4029,4036,4041,4048, -+ 4055,4063,4070,4078,4088,4093,4109,4116,4122,4130, -+ 4137,4141,4148,4156,4171,4187,4203,4209,4215,4224, -+ 4232,4238,4245,4251,4258,4267,4275,4282,4288,4298, -+ 4305,4311,4319,4328,4336,4342,4349,4355, -+}; -+static const int alpha_syscall_s2i_i[] = { -+ 319,99,502,33,51,439,366,338,300,104, -+ 17,368,369,12,15,16,61,499,312,6, -+ 98,306,308,373,41,90,487,407,486,408, -+ 474,409,478,485,25,59,1,405,462,413, -+ 480,494,495,13,124,461,123,453,92,447, -+ 387,390,131,2,393,384,91,427,455,329, -+ 95,130,394,454,309,430,467,473,367,305, -+ 377,89,79,87,361,64,141,233,63,100, -+ 372,344,144,364,234,150,118,378,359,385, -+ 47,20,24,307,445,444,489,446,402,399, -+ 400,398,401,54,443,442,448,441,37,208, -+ 386,9,458,106,388,389,406,392,19,383, -+ 68,426,75,429,449,375,136,451,14,452, -+ 314,316,71,302,472,74,437,436,432,435, -+ 434,433,341,200,201,202,203,217,315,317, -+ 73,497,340,342,303,321,45,498,450,140, -+ 258,181,188,187,163,252,253,34,11,169, -+ 35,261,248,161,243,214,159,165,164,18, -+ 142,86,49,184,117,256,116,223,77,260, -+ 78,21,65,240,215,213,216,30,158,31, -+ 32,29,27,28,245,246,8,62,81,146, -+ 40,5,46,109,139,110,108,38,72,115, -+ 84,149,247,153,154,107,237,44,244,55, -+ 56,69,222,93,43,239,143,83,50,257, -+ 122,209,218,48,238,112,157,70,160,255, -+ 259,199,0,241,85,242,251,250,220,219, -+ 138,207,7,236,376,345,346,493,324,42, -+ 488,374,94,464,348,349,490,496,463,26, -+ 350,491,347,148,3,379,58,460,120,311, -+ 102,125,479,113,410,391,128,457,440,412, -+ 137,352,354,353,356,351,357,355,492,335, -+ 336,396,331,333,337,395,330,332,334,358, -+ 204,205,206,101,370,503,114,133,431,466, -+ 411,166,326,325,132,80,301,88,362,501, -+ 39,82,96,127,371,343,126,145,147,105, -+ 360,23,382,210,211,212,134,156,235,476, -+ 484,52,103,111,97,135,468,67,425,328, -+ 304,322,57,459,36,469,500,254,318,310, -+ 470,424,477,481,483,482,323,381,129,397, -+ 60,22,339,10,456,465,313,327,475,363, -+ 66,76,471,428,365,438,4,121, -+}; -+static int alpha_syscall_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; -+ } -+ copy[i] = 0; -+ return s2i__(alpha_syscall_strings, alpha_syscall_s2i_s, alpha_syscall_s2i_i, 408, copy, value); -+ } -+} -+static const unsigned alpha_syscall_i2s_direct[] = { -+ 2788,302,458,3130,4349,2202,140,2918,2129,1046, -+ 4251,1613,95,376,1194,101,107,77,1765,1114, -+ 835,1928,4238,3893,843,278,3086,2071,2084,2057, -+ 2000,2023,2040,23,1601,1637,4088,1024,2302,3786, -+ 2188,187,3015,2528,2441,1454,2215,827,2669,1807, -+ 2603,30,3979,-1u,978,2473,2484,4070,3145,295, -+ 4232,113,2143,708,676,1938,4305,4036,1130,2495, -+ 2729,1223,2315,1385,1245,1144,4311,1891,1916,644, -+ 3741,2157,3794,2589,2346,2812,1793,654,3758,630, -+ 191,486,415,2517,3037,518,3802,4011,146,8, -+ 716,3618,3178,3990,72,3869,1058,2415,2287,2233, -+ 2268,4000,2700,3201,3641,2331,1860,1831,787,-1u, -+ 3165,4355,2631,399,383,3183,3843,3814,3238,4215, -+ 524,452,3734,3649,3929,4018,1180,3282,2895,2250, -+ 1484,688,1779,2575,748,3852,2173,3862,3121,2359, -+ 775,-1u,-1u,2385,2399,-1u,3938,2713,2012,1719, -+ 2738,1678,-1u,1560,1755,1737,3702,-1u,-1u,1624, -+ -1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u, -+ -1u,1512,-1u,-1u,1820,-1u,-1u,1541,1526,-1u, -+ -1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,2777, -+ 1332,1339,1346,1353,3598,3605,3612,2906,1029,2648, -+ 3909,3916,3922,1977,1700,1966,1988,1360,2658,2879, -+ 2863,-1u,2504,1877,-1u,-1u,-1u,-1u,-1u,-1u, -+ -1u,-1u,-1u,700,768,3948,2928,2425,2685,2555, -+ 1949,2800,2822,1690,2452,2097,2113,2372,1664,-1u, -+ 2851,2833,1578,1590,4116,2749,1845,2616,1496,2765, -+ 1904,1650,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u, -+ -1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u, -+ -1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u, -+ -1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u,-1u, -+ 64,3751,1228,1431,4055,610,154,851,168,550, -+ 4130,3171,134,4275,1208,1366,1214,1374,4122,0, -+ -1u,1444,4063,4203,3003,3725,3716,4282,4048,510, -+ 3545,3471,3560,3486,3579,3407,3430,3505,52,4245, -+ 1410,1325,1420,3833,738,2956,2971,3108,3048,3054, -+ 3093,3346,3288,3315,3301,3373,3330,3359,3591,805, -+ 3880,666,3770,4298,758,4336,43,603,81,88, -+ 3623,3823,728,182,3026,1172,2939,619,798,3135, -+ -1u,4209,3900,1120,476,818,1036,431,1065,1075, -+ 441,3226,1101,463,534,3527,3453,4224,959,935, -+ 946,968,925,-1u,-1u,307,1086,201,228,250, -+ 3209,3686,3266,328,-1u,-1u,-1u,-1u,-1u,-1u, -+ -1u,-1u,-1u,-1u,4141,4041,1136,492,4328,1152, -+ 566,3656,1278,1315,1302,1286,1268,1254,4342,35, -+ 3254,1017,995,984,881,863,908,421,1006,1158, -+ 1477,1186,1200,406,540,500,4258,3245,1051,4078, -+ 3154,390,318,3077,3042,4267,3670,580,4029,4093, -+ 4137,4319,1234,596,238,4288,3960,4148,261,3192, -+ 338,4156,4187,4171,3969,269,214,196,3020,894, -+ 3060,3100,3389,2987,348,362,3067,1392,1459,120, -+ 4109,3780,15,3632, -+}; -+static const char *alpha_syscall_i2s(int v) { -+ return i2s_direct__(alpha_syscall_strings, alpha_syscall_i2s_direct, 0, 503, v); -+} -diff --git a/lib/armeb_tables.h b/lib/armeb_tables.h -new file mode 100644 -index 0000000..5afe038 ---- /dev/null -+++ b/lib/armeb_tables.h -@@ -0,0 +1,165 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char armeb_syscall_strings[] = "accept\0accept4\0access\0acct\0add_key\0adjtimex\0alarm\0bdflush\0bind\0brk\0" -+ "capget\0capset\0chdir\0chmod\0chown\0chown32\0chroot\0clock_adjtime\0clock_getres\0clock_gettime\0" -+ "clock_nanosleep\0clock_settime\0clone\0close\0connect\0creat\0delete_module\0dup\0dup2\0dup3\0" -+ "epoll_create\0epoll_create1\0epoll_ctl\0epoll_wait\0eventfd\0eventfd2\0execve\0exit\0exit_group\0faccessat\0" -+ "fadvise64_64\0fallocate\0fanotify_init\0fanotify_mark\0fchdir\0fchmod\0fchmodat\0fchown\0fchown32\0fchownat\0" -+ "fcntl\0fcntl64\0fdatasync\0fgetxattr\0flistxattr\0flock\0fork\0fremovexattr\0fsetxattr\0fstat\0" -+ "fstat64\0fstatat64\0fstatfs\0fstatfs64\0fsync\0ftruncate\0ftruncate64\0futex\0futimesat\0get_mempolicy\0" -+ "get_robust_list\0getcpu\0getcwd\0getdents\0getdents64\0getegid\0getegid32\0geteuid\0geteuid32\0getgid\0" -+ "getgid32\0getgroups\0getgroups32\0getitimer\0getpeername\0getpgid\0getpgrp\0getpid\0getppid\0getpriority\0" -+ "getresgid\0getresgid32\0getresuid\0getresuid32\0getrlimit\0getrusage\0getsid\0getsockname\0getsockopt\0gettid\0" -+ "gettimeofday\0getuid\0getuid32\0getxattr\0init_module\0inotify_add_watch\0inotify_init\0inotify_init1\0inotify_rm_watch\0io_cancel\0" -+ "io_destroy\0io_getevents\0io_setup\0io_submit\0ioctl\0ioprio_get\0ioprio_set\0ipc\0kexec_load\0keyctl\0" -+ "kill\0lchown\0lchown32\0lgetxattr\0link\0linkat\0listen\0listxattr\0llistxattr\0llseek\0" -+ "lookup_dcookie\0lremovexattr\0lseek\0lsetxattr\0lstat\0lstat64\0madvise\0mbind\0mincore\0mkdir\0" -+ "mkdirat\0mknod\0mknodat\0mlock\0mlockall\0mmap\0mmap2\0mount\0move_pages\0mprotect\0" -+ "mq_getsetattr\0mq_notify\0mq_open\0mq_timedreceive\0mq_timedsend\0mq_unlink\0mremap\0msgctl\0msgget\0msgrcv\0" -+ "msgsnd\0msync\0munlock\0munlockall\0munmap\0name_to_handle_at\0nanosleep\0newselect\0nfsservctl\0nice\0" -+ "open\0open_by_handle_at\0openat\0pause\0pciconfig_iobase\0pciconfig_read\0pciconfig_write\0perf_event_open\0personality\0pipe\0" -+ "pipe2\0pivot_root\0poll\0prctl\0pread64\0preadv\0prlimit64\0process_vm_readv\0process_vm_writev\0ptrace\0" -+ "pwrite64\0pwritev\0quotactl\0read\0readahead\0readdir\0readlink\0readlinkat\0readv\0reboot\0" -+ "recv\0recvfrom\0recvmmsg\0recvmsg\0remap_file_pages\0removexattr\0rename\0renameat\0request_key\0restart_syscall\0" -+ "rmdir\0rt_sigaction\0rt_sigpending\0rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0rt_sigtimedwait\0rt_tgsigqueueinfo\0sched_get_priority_max\0" -+ "sched_get_priority_min\0sched_getaffinity\0sched_getparam\0sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0sched_setscheduler\0sched_yield\0select\0" -+ "semctl\0semget\0semop\0semtimedop\0send\0sendfile\0sendfile64\0sendmmsg\0sendmsg\0sendto\0" -+ "set_mempolicy\0set_robust_list\0set_tid_address\0setdomainname\0setfsgid\0setfsgid32\0setfsuid\0setfsuid32\0setgid\0setgid32\0" -+ "setgroups\0setgroups32\0sethostname\0setitimer\0setns\0setpgid\0setpriority\0setregid\0setregid32\0setresgid\0" -+ "setresgid32\0setresuid\0setresuid32\0setreuid\0setreuid32\0setrlimit\0setsid\0setsockopt\0settimeofday\0setuid\0" -+ "setuid32\0setxattr\0shmat\0shmctl\0shmdt\0shmget\0shutdown\0sigaction\0sigaltstack\0signalfd\0" -+ "signalfd4\0sigpending\0sigprocmask\0sigreturn\0sigsuspend\0socket\0socketcall\0socketpair\0splice\0stat\0" -+ "stat64\0statfs\0statfs64\0stime\0swapoff\0swapon\0symlink\0symlinkat\0sync\0sync_file_range\0" -+ "syncfs\0syscall\0sysctl\0sysfs\0sysinfo\0syslog\0tee\0tgkill\0time\0timer_create\0" -+ "timer_delete\0timer_getoverrun\0timer_gettime\0timer_settime\0timerfd_create\0timerfd_gettime\0timerfd_settime\0times\0tkill\0truncate\0" -+ "truncate64\0ugetrlimit\0umask\0umount\0umount2\0uname\0unlink\0unlinkat\0unshare\0uselib\0" -+ "ustat\0utime\0utimensat\0utimes\0vfork\0vhangup\0vmsplice\0vserver\0wait4\0waitid\0" -+ "write\0writev"; -+static const unsigned armeb_syscall_s2i_s[] = { -+ 0,7,15,22,27,35,44,50,58,63, -+ 67,74,81,87,93,99,107,114,128,141, -+ 155,171,185,191,197,205,211,225,229,234, -+ 239,252,266,276,287,295,304,311,316,327, -+ 337,350,360,374,388,395,402,411,418,427, -+ 436,442,450,460,470,481,487,492,505,515, -+ 521,529,539,547,557,563,573,585,591,601, -+ 615,631,638,645,654,665,673,683,691,701, -+ 708,717,727,739,749,761,769,777,784,792, -+ 804,814,826,836,848,858,868,875,887,898, -+ 905,918,925,934,943,955,973,986,1000,1017, -+ 1027,1038,1051,1060,1070,1076,1087,1098,1102,1113, -+ 1120,1125,1132,1141,1151,1156,1163,1170,1180,1191, -+ 1198,1213,1226,1232,1242,1248,1256,1264,1270,1278, -+ 1284,1292,1298,1306,1312,1321,1326,1332,1338,1349, -+ 1358,1372,1382,1390,1406,1419,1429,1436,1443,1450, -+ 1457,1464,1470,1478,1489,1496,1514,1524,1534,1545, -+ 1550,1555,1573,1580,1586,1603,1618,1634,1650,1662, -+ 1667,1673,1684,1689,1695,1703,1710,1720,1737,1755, -+ 1762,1771,1779,1788,1793,1803,1811,1820,1831,1837, -+ 1844,1849,1858,1867,1875,1892,1904,1911,1920,1932, -+ 1948,1954,1967,1981,1996,2012,2025,2039,2055,2073, -+ 2096,2119,2137,2152,2171,2193,2211,2226,2245,2257, -+ 2264,2271,2278,2284,2295,2300,2309,2320,2329,2337, -+ 2344,2358,2374,2390,2404,2413,2424,2433,2444,2451, -+ 2460,2470,2482,2494,2504,2510,2518,2530,2539,2550, -+ 2560,2572,2582,2594,2603,2614,2624,2631,2642,2655, -+ 2662,2671,2680,2686,2693,2699,2706,2715,2725,2737, -+ 2746,2756,2767,2779,2789,2800,2807,2818,2829,2836, -+ 2841,2848,2855,2864,2870,2878,2885,2893,2903,2908, -+ 2924,2931,2939,2946,2952,2960,2967,2971,2978,2983, -+ 2996,3009,3026,3040,3054,3069,3085,3101,3107,3113, -+ 3122,3133,3144,3150,3157,3165,3171,3178,3187,3195, -+ 3202,3208,3214,3224,3231,3237,3245,3254,3262,3268, -+ 3275,3281, -+}; -+static const int armeb_syscall_s2i_i[] = { -+ 285,366,33,51,309,124,27,134,282,45, -+ 184,185,12,15,182,212,61,372,264,263, -+ 265,262,120,6,283,8,129,41,63,358, -+ 250,357,251,252,351,356,11,1,248,334, -+ 270,352,367,368,133,94,333,95,207,325, -+ 55,221,148,231,234,143,2,237,228,108, -+ 197,327,100,267,118,93,194,240,326,320, -+ 339,345,183,141,217,50,202,49,201,47, -+ 200,80,205,105,287,132,65,20,64,96, -+ 171,211,165,209,76,77,147,286,295,224, -+ 78,24,199,229,128,317,316,360,318,247, -+ 244,245,243,246,54,315,314,117,347,311, -+ 37,16,198,230,9,330,284,232,233,140, -+ 249,236,19,227,107,196,220,319,219,39, -+ 323,14,324,150,152,90,192,21,344,125, -+ 279,278,274,277,276,275,163,304,303,302, -+ 301,144,151,153,91,370,162,142,169,34, -+ 5,371,322,29,271,272,273,364,136,42, -+ 359,218,168,172,180,361,369,376,377,26, -+ 181,362,131,3,225,89,85,332,145,88, -+ 291,292,365,297,253,235,38,329,310,0, -+ 40,174,176,175,178,173,179,177,363,159, -+ 160,242,155,157,161,241,154,156,158,82, -+ 300,299,298,312,289,187,239,374,296,290, -+ 321,338,256,121,139,216,138,215,46,214, -+ 81,206,74,104,375,57,97,71,204,170, -+ 210,164,208,70,203,75,66,294,79,23, -+ 213,226,305,308,306,307,293,67,186,349, -+ 355,73,126,119,72,281,102,288,340,106, -+ 195,99,266,25,115,87,83,331,36,341, -+ 373,113,149,135,116,103,342,268,13,257, -+ 261,260,259,258,350,354,353,43,238,92, -+ 193,191,60,22,52,122,10,328,337,86, -+ 62,30,348,269,190,111,343,313,114,280, -+ 4,146, -+}; -+static int armeb_syscall_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; -+ } -+ copy[i] = 0; -+ return s2i__(armeb_syscall_strings, armeb_syscall_s2i_s, armeb_syscall_s2i_i, 342, copy, value); -+ } -+} -+static const unsigned armeb_syscall_i2s_direct[] = { -+ 1932,311,487,1788,3275,1550,191,-1u,205,1151, -+ 3171,304,81,2978,1292,87,1125,-1u,-1u,1226, -+ 777,1332,3150,2655,918,2864,1755,44,-1u,1580, -+ 3208,-1u,-1u,15,1545,-1u,2903,1120,1904,1278, -+ 1948,225,1662,3101,-1u,63,2444,701,-1u,683, -+ 665,22,3157,-1u,1070,436,-1u,2510,-1u,-1u, -+ 3144,107,3202,229,784,769,2624,2715,-1u,-1u, -+ 2594,2530,2789,2756,2482,2614,848,858,905,2642, -+ 717,2460,2257,2885,-1u,1811,3195,2878,1837,1803, -+ 1321,1489,3113,563,395,411,792,2518,-1u,2848, -+ 539,-1u,2807,2960,2494,739,2836,1242,515,-1u, -+ -1u,3237,-1u,2931,3262,2870,2952,1098,557,2779, -+ 185,2390,3165,-1u,35,1349,2767,-1u,943,211, -+ -1u,1779,761,388,50,2946,1650,-1u,2424,2404, -+ 1191,645,1524,481,1464,1831,3281,868,450,2939, -+ 1306,1470,1312,1478,2211,2137,2226,2152,2245,2073, -+ 2096,2171,1514,1429,2572,826,-1u,-1u,1684,1534, -+ 2550,804,1689,2012,1954,1981,1967,2039,1996,2025, -+ 1695,1762,93,638,67,74,2725,2300,-1u,-1u, -+ 3231,3133,1326,3122,573,2841,1248,521,1132,925, -+ 708,691,673,2603,2539,727,2470,418,2582,836, -+ 2560,814,99,2662,2451,2433,2413,654,1673,1270, -+ 1256,442,-1u,-1u,898,1793,2671,1232,505,934, -+ 1141,460,1170,1180,470,1892,1213,492,3107,2309, -+ 585,2193,2119,1051,1027,1038,1060,1017,316,1198, -+ 239,266,276,1875,-1u,-1u,2374,2983,3040,3026, -+ 3009,2996,171,141,128,155,2855,547,2971,3224, -+ 337,1586,1603,1618,1382,1419,1406,1390,1372,1358, -+ 3268,2800,58,197,1163,0,875,749,2818,2295, -+ 2337,1844,1849,2706,2631,887,2329,1867,2278,2271, -+ 2264,1457,1450,1443,1436,2680,2693,2699,2686,27, -+ 1920,1113,2284,3254,1087,1076,973,955,1000,1264, -+ 601,2344,1573,1284,1298,427,591,529,3178,1911, -+ 1156,2893,1820,402,327,-1u,-1u,3187,2358,615, -+ 2829,2908,2967,3245,1338,631,-1u,1102,3214,2737, -+ 3054,287,350,3085,3069,2746,295,252,234,1667, -+ 986,1703,1771,2055,1634,1858,7,360,374,1710, -+ 1496,1555,114,2924,2320,2504,1720,1737, -+}; -+static const char *armeb_syscall_i2s(int v) { -+ return i2s_direct__(armeb_syscall_strings, armeb_syscall_i2s_direct, 0, 377, v); -+} -diff --git a/lib/errtabs.h b/lib/errtabs.h -new file mode 100644 -index 0000000..53deac2 ---- /dev/null -+++ b/lib/errtabs.h -@@ -0,0 +1,78 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char err_strings[] = "E2BIG\0EACCES\0EADDRINUSE\0EADDRNOTAVAIL\0EADV\0EAFNOSUPPORT\0EAGAIN\0EALREADY\0EBADE\0EBADF\0" -+ "EBADFD\0EBADMSG\0EBADR\0EBADRQC\0EBADSLT\0EBFONT\0EBUSY\0ECANCELED\0ECHILD\0ECHRNG\0" -+ "ECOMM\0ECONNABORTED\0ECONNREFUSED\0ECONNRESET\0EDEADLK\0EDEADLOCK\0EDESTADDRREQ\0EDOM\0EDOTDOT\0EDQUOT\0" -+ "EEXIST\0EFAULT\0EFBIG\0EHOSTDOWN\0EHOSTUNREACH\0EIDRM\0EILSEQ\0EINPROGRESS\0EINTR\0EINVAL\0" -+ "EIO\0EISCONN\0EISDIR\0EISNAM\0EKEYEXPIRED\0EKEYREJECTED\0EKEYREVOKED\0EL2HLT\0EL2NSYNC\0EL3HLT\0" -+ "EL3RST\0ELIBACC\0ELIBBAD\0ELIBEXEC\0ELIBMAX\0ELIBSCN\0ELNRNG\0ELOOP\0EMEDIUMTYPE\0EMFILE\0" -+ "EMLINK\0EMSGSIZE\0EMULTIHOP\0ENAMETOOLONG\0ENAVAIL\0ENETDOWN\0ENETRESET\0ENETUNREACH\0ENFILE\0ENOANO\0" -+ "ENOBUFS\0ENOCSI\0ENODATA\0ENODEV\0ENOENT\0ENOEXEC\0ENOKEY\0ENOLCK\0ENOLINK\0ENOMEDIUM\0" -+ "ENOMEM\0ENOMSG\0ENONET\0ENOPKG\0ENOPROTOOPT\0ENOSPC\0ENOSR\0ENOSTR\0ENOSYS\0ENOTBLK\0" -+ "ENOTCONN\0ENOTDIR\0ENOTEMPTY\0ENOTNAM\0ENOTRECOVERABLE\0ENOTSOCK\0ENOTTY\0ENOTUNIQ\0ENXIO\0EOPNOTSUPP\0" -+ "EOVERFLOW\0EOWNERDEAD\0EPERM\0EPFNOSUPPORT\0EPIPE\0EPROTO\0EPROTONOSUPPORT\0EPROTOTYPE\0ERANGE\0EREMCHG\0" -+ "EREMOTE\0EREMOTEIO\0ERESTART\0EROFS\0ESHUTDOWN\0ESOCKTNOSUPPORT\0ESPIPE\0ESRCH\0ESRMNT\0ESTALE\0" -+ "ESTRPIPE\0ETIME\0ETIMEDOUT\0ETOOMANYREFS\0ETXTBSY\0EUCLEAN\0EUNATCH\0EUSERS\0EWOULDBLOCK\0EXDEV\0" -+ "EXFULL"; -+static const unsigned err_s2i_s[] = { -+ 0,6,13,24,38,43,56,63,72,78, -+ 84,91,99,105,113,121,128,134,144,151, -+ 158,164,177,190,201,209,219,232,237,245, -+ 252,259,266,272,282,295,301,308,320,326, -+ 333,337,345,352,359,371,384,396,403,412, -+ 419,426,434,442,451,459,467,474,480,492, -+ 499,506,515,525,538,546,555,565,577,584, -+ 591,599,606,614,621,628,636,643,650,658, -+ 668,675,682,689,696,708,715,721,728,735, -+ 743,752,760,770,778,794,803,810,819,825, -+ 836,846,857,863,876,882,889,905,916,923, -+ 931,939,949,958,964,974,990,997,1003,1010, -+ 1017,1026,1032,1042,1055,1063,1071,1079,1086,1098, -+ 1104, -+}; -+static const int err_s2i_i[] = { -+ 7,13,98,99,68,97,11,114,52,9, -+ 77,74,53,56,57,59,16,125,10,44, -+ 70,103,111,104,35,35,89,33,73,122, -+ 17,14,27,112,113,43,84,115,4,22, -+ 5,106,21,120,127,129,128,51,45,46, -+ 47,79,80,83,82,81,48,40,124,24, -+ 31,90,72,36,119,100,102,101,23,55, -+ 105,50,61,19,2,8,126,37,67,123, -+ 12,42,64,65,92,28,63,60,38,15, -+ 107,20,39,118,131,88,25,76,6,95, -+ 75,130,1,96,32,71,93,91,34,78, -+ 66,121,85,30,108,94,29,3,69,116, -+ 86,62,110,109,26,117,49,87,11,18, -+ 54, -+}; -+static int err_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISLOWER(c) ? c - 'a' + 'A' : c; -+ } -+ copy[i] = 0; -+ return s2i__(err_strings, err_s2i_s, err_s2i_i, 131, copy, value); -+ } -+} -+static const unsigned err_i2s_direct[] = { -+ 857,621,997,320,333,819,0,628,78,144, -+ 56,668,6,259,735,128,252,1098,614,752, -+ 345,326,577,492,803,1055,266,708,990,958, -+ 499,876,232,916,201,525,643,728,760,474, -+ -1u,675,295,151,403,412,419,467,1071,599, -+ 396,72,99,1104,584,105,113,-1u,121,721, -+ 606,1026,715,682,689,931,650,38,1003,158, -+ 882,515,237,91,836,810,84,923,426,434, -+ 459,451,442,301,949,1017,1079,794,219,506, -+ 905,696,889,974,825,863,43,13,24,546, -+ 565,555,164,190,591,337,743,964,1042,1032, -+ 177,272,282,63,308,1010,1063,770,538,352, -+ 939,245,658,480,134,636,359,384,371,846, -+ 778, -+}; -+static const char *err_i2s(int v) { -+ return i2s_direct__(err_strings, err_i2s_direct, 1, 131, v); -+} -diff --git a/lib/fieldtabs.h b/lib/fieldtabs.h -new file mode 100644 -index 0000000..fb50e08 ---- /dev/null -+++ b/lib/fieldtabs.h -@@ -0,0 +1,49 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char field_strings[] = "a0\0a1\0a2\0a3\0arch\0auid\0devmajor\0devminor\0dir\0egid\0" -+ "euid\0exit\0field_compare\0filetype\0fsgid\0fsuid\0gid\0inode\0key\0loginuid\0" -+ "msgtype\0obj_gid\0obj_lev_high\0obj_lev_low\0obj_role\0obj_type\0obj_uid\0obj_user\0path\0perm\0" -+ "pers\0pid\0ppid\0sgid\0subj_clr\0subj_role\0subj_sen\0subj_type\0subj_user\0success\0" -+ "suid\0uid"; -+static const unsigned field_s2i_s[] = { -+ 0,3,6,9,12,17,22,31,40,44, -+ 49,54,59,73,82,88,94,98,104,108, -+ 117,125,133,146,158,167,176,184,193,198, -+ 203,208,212,217,222,231,241,250,260,270, -+ 278,283, -+}; -+static const int field_s2i_i[] = { -+ 200,201,202,203,11,9,100,101,107,6, -+ 2,103,111,108,8,4,5,102,210,9, -+ 12,110,23,22,20,21,109,19,105,106, -+ 10,0,18,7,17,14,16,15,13,104, -+ 3,1, -+}; -+static int field_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; -+ } -+ copy[i] = 0; -+ return s2i__(field_strings, field_s2i_s, field_s2i_i, 42, copy, value); -+ } -+} -+static const int field_i2s_i[] = { -+ 0,1,2,3,4,5,6,7,8,9, -+ 10,11,12,13,14,15,16,17,18,19, -+ 20,21,22,23,100,101,102,103,104,105, -+ 106,107,108,109,110,111,200,201,202,203, -+ 210, -+}; -+static const unsigned field_i2s_s[] = { -+ 208,283,49,278,88,94,44,217,82,17, -+ 203,12,117,260,231,250,241,222,212,184, -+ 158,167,146,133,22,31,98,54,270,193, -+ 198,40,73,176,125,59,0,3,6,9, -+ 104, -+}; -+static const char *field_i2s(int v) { -+ return i2s_bsearch__(field_strings, field_i2s_i, field_i2s_s, 41, v); -+} -diff --git a/lib/flagtabs.h b/lib/flagtabs.h -new file mode 100644 -index 0000000..e191db3 ---- /dev/null -+++ b/lib/flagtabs.h -@@ -0,0 +1,26 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char flag_strings[] = "entry\0exclude\0exit\0task\0user"; -+static const unsigned flag_s2i_s[] = { -+ 0,6,14,19,24, -+}; -+static const int flag_s2i_i[] = { -+ 2,5,4,1,0, -+}; -+static int flag_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; -+ } -+ copy[i] = 0; -+ return s2i__(flag_strings, flag_s2i_s, flag_s2i_i, 5, copy, value); -+ } -+} -+static const unsigned flag_i2s_direct[] = { -+ 24,19,0,-1u,14,6, -+}; -+static const char *flag_i2s(int v) { -+ return i2s_direct__(flag_strings, flag_i2s_direct, 0, 5, v); -+} -diff --git a/lib/ftypetabs.h b/lib/ftypetabs.h -new file mode 100644 -index 0000000..04aaa46 ---- /dev/null -+++ b/lib/ftypetabs.h -@@ -0,0 +1,29 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char ftype_strings[] = "block\0character\0dir\0fifo\0file\0link\0socket"; -+static const unsigned ftype_s2i_s[] = { -+ 0,6,16,20,25,30,35, -+}; -+static const int ftype_s2i_i[] = { -+ 24576,8192,16384,4096,32768,40960,49152, -+}; -+static int ftype_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; -+ } -+ copy[i] = 0; -+ return s2i__(ftype_strings, ftype_s2i_s, ftype_s2i_i, 7, copy, value); -+ } -+} -+static const int ftype_i2s_i[] = { -+ 4096,8192,16384,24576,32768,40960,49152, -+}; -+static const unsigned ftype_i2s_s[] = { -+ 20,6,16,0,25,30,35, -+}; -+static const char *ftype_i2s(int v) { -+ return i2s_bsearch__(ftype_strings, ftype_i2s_i, ftype_i2s_s, 7, v); -+} -diff --git a/lib/i386_tables.h b/lib/i386_tables.h -new file mode 100644 -index 0000000..59d458c ---- /dev/null -+++ b/lib/i386_tables.h -@@ -0,0 +1,162 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char i386_syscall_strings[] = "_llseek\0_newselect\0_sysctl\0access\0acct\0add_key\0adjtimex\0afs_syscall\0alarm\0bdflush\0" -+ "break\0brk\0capget\0capset\0chdir\0chmod\0chown\0chown32\0chroot\0clock_adjtime\0" -+ "clock_getres\0clock_gettime\0clock_nanosleep\0clock_settime\0clone\0close\0creat\0create_module\0delete_module\0dup\0" -+ "dup2\0dup3\0epoll_create\0epoll_create1\0epoll_ctl\0epoll_pwait\0epoll_wait\0eventfd\0eventfd2\0execve\0" -+ "exit\0exit_group\0faccessat\0fadvise64\0fadvise64_64\0fallocate\0fanotify_init\0fanotify_mark\0fchdir\0fchmod\0" -+ "fchmodat\0fchown\0fchown32\0fchownat\0fcntl\0fcntl64\0fdatasync\0fgetxattr\0flistxattr\0flock\0" -+ "fork\0fremovexattr\0fsetxattr\0fstat\0fstat64\0fstatat64\0fstatfs\0fstatfs64\0fsync\0ftime\0" -+ "ftruncate\0ftruncate64\0futex\0futimesat\0get_kernel_syms\0get_mempolicy\0get_robust_list\0get_thread_area\0getcpu\0getcwd\0" -+ "getdents\0getdents64\0getegid\0getegid32\0geteuid\0geteuid32\0getgid\0getgid32\0getgroups\0getgroups32\0" -+ "getitimer\0getpgid\0getpgrp\0getpid\0getpmsg\0getppid\0getpriority\0getresgid\0getresgid32\0getresuid\0" -+ "getresuid32\0getrlimit\0getrusage\0getsid\0gettid\0gettimeofday\0getuid\0getuid32\0getxattr\0gtty\0" -+ "idle\0init_module\0inotify_add_watch\0inotify_init\0inotify_init1\0inotify_rm_watch\0io_cancel\0io_destroy\0io_getevents\0io_setup\0" -+ "io_submit\0ioctl\0ioperm\0iopl\0ioprio_get\0ioprio_set\0ipc\0keyctl\0kill\0lchown\0" -+ "lchown32\0lgetxattr\0link\0linkat\0listxattr\0llistxattr\0lock\0lookup_dcookie\0lremovexattr\0lseek\0" -+ "lsetxattr\0lstat\0lstat64\0madvise\0madvise1\0mbind\0migrate_pages\0mincore\0mkdir\0mkdirat\0" -+ "mknod\0mknodat\0mlock\0mlockall\0mmap\0mmap2\0modify_ldt\0mount\0move_pages\0mprotect\0" -+ "mpx\0mq_getsetattr\0mq_notify\0mq_open\0mq_timedreceive\0mq_timedsend\0mq_unlink\0mremap\0msync\0munlock\0" -+ "munlockall\0munmap\0name_to_handle_at\0nanosleep\0nfsservctl\0nice\0oldfstat\0oldlstat\0oldolduname\0oldstat\0" -+ "olduname\0open\0open_by_handle_at\0openat\0pause\0perf_event_open\0personality\0pipe\0pipe2\0pivot_root\0" -+ "poll\0ppoll\0prctl\0pread64\0preadv\0prlimit64\0process_vm_readv\0process_vm_writev\0prof\0profil\0" -+ "pselect6\0ptrace\0putpmsg\0pwrite64\0pwritev\0query_module\0quotactl\0read\0readahead\0readdir\0" -+ "readlink\0readlinkat\0readv\0reboot\0recvmmsg\0remap_file_pages\0removexattr\0rename\0renameat\0request_key\0" -+ "restart_syscall\0rmdir\0rt_sigaction\0rt_sigpending\0rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0rt_sigtimedwait\0rt_tgsigqueueinfo\0" -+ "sched_get_priority_max\0sched_get_priority_min\0sched_getaffinity\0sched_getparam\0sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0sched_setscheduler\0sched_yield\0" -+ "select\0sendfile\0sendfile64\0sendmmsg\0set_mempolicy\0set_robust_list\0set_thread_area\0set_tid_address\0setdomainname\0setfsgid\0" -+ "setfsgid32\0setfsuid\0setfsuid32\0setgid\0setgid32\0setgroups\0setgroups32\0sethostname\0setitimer\0setns\0" -+ "setpgid\0setpriority\0setregid\0setregid32\0setresgid\0setresgid32\0setresuid\0setresuid32\0setreuid\0setreuid32\0" -+ "setrlimit\0setsid\0settimeofday\0setuid\0setuid32\0setxattr\0sgetmask\0sigaction\0sigaltstack\0signal\0" -+ "signalfd\0signalfd4\0sigpending\0sigprocmask\0sigreturn\0sigsuspend\0socketcall\0splice\0ssetmask\0stat\0" -+ "stat64\0statfs\0statfs64\0stime\0stty\0swapoff\0swapon\0symlink\0symlinkat\0sync\0" -+ "sync_file_range\0syncfs\0sys_kexec_load\0sysfs\0sysinfo\0syslog\0tee\0tgkill\0time\0timer_create\0" -+ "timer_delete\0timer_getoverrun\0timer_gettime\0timer_settime\0timerfd\0timerfd_gettime\0timerfd_settime\0times\0tkill\0truncate\0" -+ "truncate64\0ugetrlimit\0ulimit\0umask\0umount\0umount2\0uname\0unlink\0unlinkat\0unshare\0" -+ "uselib\0ustat\0utime\0utimensat\0utimes\0vfork\0vhangup\0vm86\0vm86old\0vmsplice\0" -+ "vserver\0wait4\0waitid\0waitpid\0write\0writev"; -+static const unsigned i386_syscall_s2i_s[] = { -+ 0,8,19,27,34,39,47,56,68,74, -+ 82,88,92,99,106,112,118,124,132,139, -+ 153,166,180,196,210,216,222,228,242,256, -+ 260,265,270,283,297,307,319,330,338,347, -+ 354,359,370,380,390,403,413,427,441,448, -+ 455,464,471,480,489,495,503,513,523,534, -+ 540,545,558,568,574,582,592,600,610,616, -+ 622,632,644,650,660,676,690,706,722,729, -+ 736,745,756,764,774,782,792,799,808,818, -+ 830,840,848,856,863,871,879,891,901,913, -+ 923,935,945,955,962,969,982,989,998,1007, -+ 1012,1017,1029,1047,1060,1074,1091,1101,1112,1125, -+ 1134,1144,1150,1157,1162,1173,1184,1188,1195,1200, -+ 1207,1216,1226,1231,1238,1248,1259,1264,1279,1292, -+ 1298,1308,1314,1322,1330,1339,1345,1359,1367,1373, -+ 1381,1387,1395,1401,1410,1415,1421,1432,1438,1449, -+ 1458,1462,1476,1486,1494,1510,1523,1533,1540,1546, -+ 1554,1565,1572,1590,1600,1611,1616,1625,1634,1646, -+ 1654,1663,1668,1686,1693,1699,1715,1727,1732,1738, -+ 1749,1754,1760,1766,1774,1781,1791,1808,1826,1831, -+ 1838,1847,1854,1862,1871,1879,1892,1901,1906,1916, -+ 1924,1933,1944,1950,1957,1966,1983,1995,2002,2011, -+ 2023,2039,2045,2058,2072,2087,2103,2116,2130,2146, -+ 2164,2187,2210,2228,2243,2262,2284,2302,2317,2336, -+ 2348,2355,2364,2375,2384,2398,2414,2430,2446,2460, -+ 2469,2480,2489,2500,2507,2516,2526,2538,2550,2560, -+ 2566,2574,2586,2595,2606,2616,2628,2638,2650,2659, -+ 2670,2680,2687,2700,2707,2716,2725,2734,2744,2756, -+ 2763,2772,2782,2793,2805,2815,2826,2837,2844,2853, -+ 2858,2865,2872,2881,2887,2892,2900,2907,2915,2925, -+ 2930,2946,2953,2968,2974,2982,2989,2993,3000,3005, -+ 3018,3031,3048,3062,3076,3084,3100,3116,3122,3128, -+ 3137,3148,3159,3166,3172,3179,3187,3193,3200,3209, -+ 3217,3224,3230,3236,3246,3253,3259,3267,3272,3280, -+ 3289,3297,3303,3310,3318,3324, -+}; -+static const int i386_syscall_s2i_i[] = { -+ 140,142,149,33,51,286,124,137,27,134, -+ 17,45,184,185,12,15,182,212,61,343, -+ 266,265,267,264,120,6,8,127,129,41, -+ 63,330,254,329,255,319,256,323,328,11, -+ 1,252,307,250,272,324,338,339,133,94, -+ 306,95,207,298,55,221,148,231,234,143, -+ 2,237,228,108,197,300,100,269,118,35, -+ 93,194,240,299,130,275,312,244,318,183, -+ 141,220,50,202,49,201,47,200,80,205, -+ 105,132,65,20,188,64,96,171,211,165, -+ 209,76,77,147,224,78,24,199,229,32, -+ 112,128,292,291,332,293,249,246,247,245, -+ 248,54,101,110,290,289,117,288,37,16, -+ 198,230,9,303,232,233,53,253,236,19, -+ 227,107,196,219,219,274,294,218,39,296, -+ 14,297,150,152,90,192,123,21,317,125, -+ 56,282,281,277,280,279,278,163,144,151, -+ 153,91,341,162,169,34,28,84,59,18, -+ 109,5,342,295,29,336,136,42,331,217, -+ 168,309,172,180,333,340,347,348,44,98, -+ 308,26,189,181,334,167,131,3,225,89, -+ 85,305,145,88,337,257,235,38,302,287, -+ 0,40,174,176,175,178,173,179,177,335, -+ 159,160,242,155,157,161,241,154,156,158, -+ 82,187,239,345,276,311,243,258,121,139, -+ 216,138,215,46,214,81,206,74,104,346, -+ 57,97,71,204,170,210,164,208,70,203, -+ 75,66,79,23,213,226,68,67,186,48, -+ 321,327,73,126,119,72,102,313,69,106, -+ 195,99,268,25,31,115,87,83,304,36, -+ 314,344,283,135,116,103,315,270,13,259, -+ 263,262,261,260,322,326,325,43,238,92, -+ 193,191,58,60,22,52,122,10,301,310, -+ 86,62,30,320,271,190,111,166,113,316, -+ 273,114,284,7,4,146, -+}; -+static int i386_syscall_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; -+ } -+ copy[i] = 0; -+ return s2i__(i386_syscall_strings, i386_syscall_s2i_s, i386_syscall_s2i_i, 346, copy, value); -+ } -+} -+static const unsigned i386_syscall_i2s_direct[] = { -+ 2023,354,540,1901,3318,1663,216,3310,222,1226, -+ 3193,347,106,3000,1381,112,1200,82,1646,1292, -+ 856,1432,3172,2700,982,2881,1847,68,1616,1693, -+ 3230,2887,1007,27,1611,616,2925,1195,1995,1367, -+ 2039,256,1727,3116,1826,88,2500,792,2756,774, -+ 756,34,3179,1259,1144,489,1458,2566,3159,1634, -+ 3166,132,3224,260,871,848,2680,2734,2725,2844, -+ 2650,2586,2815,2782,2538,2670,935,945,969,2687, -+ 808,2516,2348,2907,1625,1924,3217,2900,1950,1916, -+ 1410,1565,3128,622,448,464,879,2574,1831,2865, -+ 592,1150,2826,2982,2550,830,2853,1308,568,1654, -+ 1157,3259,1012,3272,3297,2892,2974,1184,610,2805, -+ 210,2446,3187,1421,47,1449,2793,228,1017,242, -+ 660,1892,840,441,74,2968,1715,56,2480,2460, -+ 0,736,8,534,1540,1944,3324,955,503,19, -+ 1395,1546,1401,1554,2302,2228,2317,2243,2336,2164, -+ 2187,2262,1590,1533,2628,913,3267,1879,1749,1600, -+ 2606,891,1760,2103,2045,2072,2058,2130,2087,2116, -+ 1766,1862,118,729,92,99,2744,2355,863,1854, -+ 3253,3148,1415,3137,632,2858,1314,574,1207,989, -+ 799,782,764,2659,2595,818,2526,471,2638,923, -+ 2616,901,124,2707,2507,2489,2469,1738,1359,1322, -+ 745,495,-1u,-1u,962,1906,2716,1298,558,998, -+ 1216,513,1238,1248,523,1983,1279,545,3122,2364, -+ 644,2284,2210,2414,706,1125,1101,1112,1134,1091, -+ 380,-1u,359,1264,270,297,319,1966,2430,3005, -+ 3062,3048,3031,3018,196,166,153,180,2872,600, -+ 2993,3246,390,3289,1339,676,2384,1486,1523,1510, -+ 1494,1476,1462,2953,3303,-1u,39,2011,1188,1173, -+ 1162,1047,1029,1074,1345,1686,1373,1387,480,650, -+ 582,3200,2002,1231,2915,1933,455,370,1838,1754, -+ 3209,2398,690,2837,2930,2989,3280,1438,722,307, -+ 3236,2763,3076,330,403,3100,3084,2772,338,283, -+ 265,1732,1060,1774,1871,2146,1699,1957,413,427, -+ 1781,1572,1668,139,2946,2375,2560,1791,1808, -+}; -+static const char *i386_syscall_i2s(int v) { -+ return i2s_direct__(i386_syscall_strings, i386_syscall_i2s_direct, 0, 348, v); -+} -diff --git a/lib/ia64_tables.h b/lib/ia64_tables.h -new file mode 100644 -index 0000000..504a90f ---- /dev/null -+++ b/lib/ia64_tables.h -@@ -0,0 +1,147 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char ia64_syscall_strings[] = "_sysctl\0accept\0accept4\0access\0acct\0add_key\0adjtimex\0afs_syscall\0bdflush\0bind\0" -+ "brk\0capget\0capset\0chdir\0chmod\0chown\0chroot\0clock_adjtime\0clock_getres\0clock_gettime\0" -+ "clock_nanosleep\0clock_settime\0clone\0clone2\0close\0connect\0creat\0delete_module\0dup\0dup2\0" -+ "dup3\0epoll_create\0epoll_create1\0epoll_ctl\0epoll_pwait\0epoll_wait\0eventfd\0eventfd2\0execve\0exit\0" -+ "exit_group\0faccessat\0fadvise64\0fallocate\0fanotify_init\0fanotify_mark\0fchdir\0fchmod\0fchmodat\0fchown\0" -+ "fchownat\0fcntl\0fdatasync\0fgetxattr\0flistxattr\0flock\0fremovexattr\0fsetxattr\0fstat\0fstatfs\0" -+ "fstatfs64\0fsync\0ftruncate\0futex\0futimesat\0get_mempolicy\0get_robust_list\0getcpu\0getcwd\0getdents\0" -+ "getdents64\0getegid\0geteuid\0getgid\0getgroups\0getitimer\0getpeername\0getpgid\0getpid\0getpmsg\0" -+ "getppid\0getpriority\0getresgid\0getresuid\0getrlimit\0getrusage\0getsid\0getsockname\0getsockopt\0gettid\0" -+ "gettimeofday\0getuid\0getunwind\0getxattr\0init_module\0inotify_add_watch\0inotify_init\0inotify_init1\0inotify_rm_watch\0io_cancel\0" -+ "io_destroy\0io_getevents\0io_setup\0io_submit\0ioctl\0ioprio_get\0ioprio_set\0kexec_load\0keyctl\0kill\0" -+ "lchown\0lgetxattr\0link\0linkat\0listen\0listxattr\0llistxattr\0lookup_dcookie\0lremovexattr\0lseek\0" -+ "lsetxattr\0lstat\0madvise\0mbind\0migrate_pages\0mincore\0mkdir\0mkdirat\0mknod\0mknodat\0" -+ "mlock\0mlockall\0mmap\0mmap2\0mount\0mprotect\0mq_getsetattr\0mq_notify\0mq_open\0mq_timedreceive\0" -+ "mq_timedsend\0mq_unlink\0mremap\0msgctl\0msgget\0msgrcv\0msgsnd\0msync\0munlock\0munlockall\0" -+ "munmap\0name_to_handle_at\0nanosleep\0newfstatat\0nfsservctl\0ni_syscall\0open\0open_by_handle_at\0openat\0pciconfig_read\0" -+ "pciconfig_write\0perfmonctl\0personality\0pipe\0pipe2\0pivot_root\0poll\0ppoll\0prctl\0pread64\0" -+ "preadv\0prlimit64\0process_vm_readv\0process_vm_writev\0pselect\0ptrace\0putpmsg\0pwrite64\0pwritev\0quotactl\0" -+ "read\0readahead\0readlink\0readlinkat\0readv\0reboot\0recv\0recvfrom\0recvmmsg\0recvmsg\0" -+ "remap_file_pages\0removexattr\0rename\0renameat\0request_key\0restart_syscall\0rmdir\0rt_sigaction\0rt_sigpending\0rt_sigprocmask\0" -+ "rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0rt_sigtimedwait\0rt_tgsigqueueinfo\0sched_get_priority_max\0sched_get_priority_min\0sched_getaffinity\0sched_getparam\0sched_getscheduler\0" -+ "sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0sched_setscheduler\0sched_yield\0select\0semctl\0semget\0semop\0semtimedop\0" -+ "send\0sendfile\0sendmmsg\0sendmsg\0sendto\0set_mempolicy\0set_robust_list\0set_tid_address\0set_zone_reclaim\0setdomainname\0" -+ "setfsgid\0setfsuid\0setgid\0setgroups\0sethostname\0setitimer\0setns\0setpgid\0setpriority\0setregid\0" -+ "setresgid\0setresuid\0setreuid\0setrlimit\0setsid\0setsockopt\0settimeofday\0setuid\0setxattr\0shmat\0" -+ "shmctl\0shmdt\0shmget\0shutdown\0sigaltstack\0signalfd\0signalfd4\0socket\0socketpair\0splice\0" -+ "stat\0statfs\0statfs64\0swapoff\0swapon\0symlink\0symlinkat\0sync\0sync_file_range\0syncfs\0" -+ "sysfs\0sysinfo\0syslog\0tee\0tgkill\0timer_create\0timer_delete\0timer_getoverrun\0timer_gettime\0timer_settime\0" -+ "timerfd\0timerfd_create\0timerfd_gettime\0timerfd_settime\0times\0tkill\0truncate\0tux\0umask\0umount\0" -+ "uname\0unlink\0unlinkat\0unshare\0uselib\0ustat\0utimensat\0utimes\0vhangup\0vmsplice\0" -+ "vserver\0wait4\0waitid\0write\0writev"; -+static const unsigned ia64_syscall_s2i_s[] = { -+ 0,8,15,23,30,35,43,52,64,72, -+ 77,81,88,95,101,107,113,120,134,147, -+ 161,177,191,197,204,210,218,224,238,242, -+ 247,252,265,279,289,301,312,320,329,336, -+ 341,352,362,372,382,396,410,417,424,433, -+ 440,449,455,465,475,486,492,505,515,521, -+ 529,539,545,555,561,571,585,601,608,615, -+ 624,635,643,651,658,668,678,690,698,705, -+ 713,721,733,743,753,763,773,780,792,803, -+ 810,823,830,840,849,861,879,892,906,923, -+ 933,944,957,966,976,982,993,1004,1015,1022, -+ 1027,1034,1044,1049,1056,1063,1073,1084,1099,1112, -+ 1118,1128,1134,1142,1148,1162,1170,1176,1184,1190, -+ 1198,1204,1213,1218,1224,1230,1239,1253,1263,1271, -+ 1287,1300,1310,1317,1324,1331,1338,1345,1351,1359, -+ 1370,1377,1395,1405,1416,1427,1438,1443,1461,1468, -+ 1483,1499,1510,1522,1527,1533,1544,1549,1555,1561, -+ 1569,1576,1586,1603,1621,1629,1636,1644,1653,1661, -+ 1670,1675,1685,1694,1705,1711,1718,1723,1732,1741, -+ 1749,1766,1778,1785,1794,1806,1822,1828,1841,1855, -+ 1870,1886,1899,1913,1929,1947,1970,1993,2011,2026, -+ 2045,2067,2085,2100,2119,2131,2138,2145,2152,2158, -+ 2169,2174,2183,2192,2200,2207,2221,2237,2253,2270, -+ 2284,2293,2302,2309,2319,2331,2341,2347,2355,2367, -+ 2376,2386,2396,2405,2415,2422,2433,2446,2453,2462, -+ 2468,2475,2481,2488,2497,2509,2518,2528,2535,2546, -+ 2553,2558,2565,2574,2582,2589,2597,2607,2612,2628, -+ 2635,2641,2649,2656,2660,2667,2680,2693,2710,2724, -+ 2738,2746,2761,2777,2793,2799,2805,2814,2818,2824, -+ 2831,2837,2844,2853,2861,2868,2874,2884,2891,2899, -+ 2908,2916,2922,2929,2935, -+}; -+static const int ia64_syscall_s2i_i[] = { -+ 1150,1194,1334,1049,1064,1271,1131,1141,1138,1191, -+ 1060,1185,1186,1034,1038,1039,1068,1328,1255,1254, -+ 1256,1253,1128,1213,1029,1192,1030,1134,1057,1070, -+ 1316,1243,1315,1244,1305,1245,1309,1314,1033,1025, -+ 1236,1293,1234,1303,1323,1324,1035,1099,1292,1100, -+ 1284,1066,1052,1222,1225,1145,1228,1219,1212,1104, -+ 1257,1051,1098,1230,1285,1260,1299,1304,1184,1144, -+ 1214,1063,1047,1062,1077,1119,1196,1079,1041,1188, -+ 1042,1101,1075,1073,1085,1086,1082,1195,1204,1105, -+ 1087,1046,1215,1220,1133,1278,1277,1318,1279,1242, -+ 1239,1240,1238,1241,1065,1275,1274,1268,1273,1053, -+ 1124,1221,1031,1289,1193,1223,1224,1237,1227,1040, -+ 1218,1211,1209,1259,1280,1208,1055,1282,1037,1283, -+ 1153,1154,1151,1172,1043,1155,1267,1266,1262,1265, -+ 1264,1263,1156,1112,1109,1111,1110,1157,1158,1159, -+ 1152,1326,1168,1286,1169,1024,1028,1327,1281,1173, -+ 1174,1175,1140,1058,1317,1207,1090,1295,1170,1148, -+ 1319,1325,1332,1333,1294,1048,1189,1149,1320,1137, -+ 1026,1216,1092,1291,1146,1096,1200,1201,1322,1206, -+ 1125,1226,1054,1288,1272,1246,1056,1177,1178,1179, -+ 1180,1181,1182,1183,1321,1165,1166,1232,1160,1162, -+ 1167,1231,1161,1163,1164,1089,1108,1106,1107,1247, -+ 1198,1187,1331,1205,1199,1261,1298,1233,1276,1129, -+ 1143,1142,1061,1078,1083,1118,1330,1080,1102,1072, -+ 1076,1074,1071,1084,1081,1203,1088,1045,1217,1114, -+ 1116,1115,1113,1202,1176,1307,1313,1190,1197,1297, -+ 1210,1103,1258,1095,1094,1091,1290,1050,1300,1329, -+ 1139,1127,1117,1301,1235,1248,1252,1251,1250,1249, -+ 1308,1310,1312,1311,1059,1229,1097,1120,1067,1044, -+ 1130,1032,1287,1296,1093,1069,1306,1036,1123,1302, -+ 1269,1126,1270,1027,1147, -+}; -+static int ia64_syscall_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; -+ } -+ copy[i] = 0; -+ return s2i__(ia64_syscall_strings, ia64_syscall_s2i_s, ia64_syscall_s2i_i, 305, copy, value); -+ } -+} -+static const unsigned ia64_syscall_i2s_direct[] = { -+ 1427,336,1670,2929,1438,204,218,1044,2837,329, -+ 95,410,2884,1184,101,107,1112,698,713,1224, -+ 2824,2446,823,643,1629,23,2607,539,455,1022, -+ 1778,1170,1822,238,1522,2793,77,2302,651,635, -+ 30,976,449,2818,113,2868,242,2396,2367,743, -+ 2386,733,2376,658,2309,690,2347,2415,773,2319, -+ 2405,753,763,810,2433,2131,1544,2589,1685,2861, -+ 2582,2574,1711,2805,545,417,433,721,2355,2558, -+ 521,803,2145,2152,2138,1324,1338,1331,1317,2481, -+ 2462,2475,2468,2649,2331,668,2814,-1u,-1u,2891, -+ 1027,1749,2916,2641,191,2270,2831,43,-1u,849, -+ 224,-1u,-1u,1661,64,2635,1510,52,2293,2284, -+ 615,486,1705,2935,1561,1644,0,1213,1370,1198, -+ 1204,1230,1310,1345,1351,1359,2011,2085,2026,2100, -+ 2119,1947,1970,2045,1395,1416,1555,-1u,1218,1468, -+ 1483,1499,2497,1828,1841,1855,1870,1886,1899,1913, -+ 608,81,88,2174,705,1636,2528,72,210,1056, -+ 8,780,678,2535,2169,2200,1718,1723,2488,2422, -+ 792,2192,1741,1533,1162,1134,2553,1128,515,197, -+ 624,830,1675,2453,1118,505,840,1034,465,1063, -+ 1073,475,1766,1099,492,2799,555,2067,1993,2237, -+ 362,2660,341,1084,957,933,944,966,923,252, -+ 279,301,1806,2158,2667,2724,2710,2693,2680,177, -+ 147,134,161,529,2565,1142,571,2207,1263,1300, -+ 1287,1271,1253,1239,1004,2908,2922,35,1794,1015, -+ 993,982,2253,879,861,906,1148,1461,1176,1190, -+ 440,561,1405,2844,1785,1049,2597,1694,424,352, -+ 1621,1549,2853,2546,2221,585,2612,2656,2899,372, -+ 601,289,2874,2509,2738,312,2746,2777,2761,2518, -+ 320,265,247,1527,892,1569,1653,1929,1732,382, -+ 396,1576,1377,1443,120,2628,2341,2183,1586,1603, -+ 15, -+}; -+static const char *ia64_syscall_i2s(int v) { -+ return i2s_direct__(ia64_syscall_strings, ia64_syscall_i2s_direct, 1024, 1334, v); -+} -diff --git a/lib/machinetabs.h b/lib/machinetabs.h -new file mode 100644 -index 0000000..ec2d033 ---- /dev/null -+++ b/lib/machinetabs.h -@@ -0,0 +1,26 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char machine_strings[] = "i386\0i486\0i586\0i686\0ia64\0ppc\0ppc64\0s390\0s390x\0x86_64"; -+static const unsigned machine_s2i_s[] = { -+ 0,5,10,15,20,25,29,35,40,46, -+}; -+static const int machine_s2i_i[] = { -+ 0,0,0,0,2,4,3,6,5,1, -+}; -+static int machine_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; -+ } -+ copy[i] = 0; -+ return s2i__(machine_strings, machine_s2i_s, machine_s2i_i, 10, copy, value); -+ } -+} -+static const unsigned machine_i2s_direct[] = { -+ 0,46,20,29,25,40,35, -+}; -+static const char *machine_i2s(int v) { -+ return i2s_direct__(machine_strings, machine_i2s_direct, 0, 6, v); -+} -diff --git a/lib/msg_typetabs.h b/lib/msg_typetabs.h -new file mode 100644 -index 0000000..d3f9b4d ---- /dev/null -+++ b/lib/msg_typetabs.h -@@ -0,0 +1,99 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char msg_type_strings[] = "ADD_GROUP\0ADD_USER\0ANOM_ABEND\0ANOM_ACCESS_FS\0ANOM_ADD_ACCT\0ANOM_AMTU_FAIL\0ANOM_CRYPTO_FAIL\0ANOM_DEL_ACCT\0ANOM_EXEC\0ANOM_LOGIN_ACCT\0" -+ "ANOM_LOGIN_FAILURES\0ANOM_LOGIN_LOCATION\0ANOM_LOGIN_SESSIONS\0ANOM_LOGIN_TIME\0ANOM_MAX_DAC\0ANOM_MAX_MAC\0ANOM_MK_EXEC\0ANOM_MOD_ACCT\0ANOM_PROMISCUOUS\0ANOM_RBAC_FAIL\0" -+ "ANOM_RBAC_INTEGRITY_FAIL\0ANOM_ROOT_TRANS\0AVC\0AVC_PATH\0BPRM_FCAPS\0CAPSET\0CHGRP_ID\0CHUSER_ID\0CONFIG_CHANGE\0CRED_ACQ\0" -+ "CRED_DISP\0CRED_REFR\0CRYPTO_FAILURE_USER\0CRYPTO_KEY_USER\0CRYPTO_LOGIN\0CRYPTO_LOGOUT\0CRYPTO_PARAM_CHANGE_USER\0CRYPTO_REPLAY_USER\0CRYPTO_SESSION\0CRYPTO_TEST_USER\0" -+ "CWD\0DAC_CHECK\0DAEMON_ABORT\0DAEMON_ACCEPT\0DAEMON_CLOSE\0DAEMON_CONFIG\0DAEMON_END\0DAEMON_RESUME\0DAEMON_ROTATE\0DAEMON_START\0" -+ "DEL_GROUP\0DEL_USER\0DEV_ALLOC\0DEV_DEALLOC\0EOE\0EXECVE\0FD_PAIR\0FS_RELABEL\0GRP_AUTH\0INTEGRITY_DATA\0" -+ "INTEGRITY_HASH\0INTEGRITY_METADATA\0INTEGRITY_PCR\0INTEGRITY_RULE\0INTEGRITY_STATUS\0IPC\0IPC_SET_PERM\0KERNEL\0KERNEL_OTHER\0LABEL_LEVEL_CHANGE\0" -+ "LABEL_OVERRIDE\0LIST_RULES\0LOGIN\0MAC_CIPSOV4_ADD\0MAC_CIPSOV4_DEL\0MAC_CONFIG_CHANGE\0MAC_IPSEC_ADDSA\0MAC_IPSEC_ADDSPD\0MAC_IPSEC_DELSA\0MAC_IPSEC_DELSPD\0" -+ "MAC_IPSEC_EVENT\0MAC_MAP_ADD\0MAC_MAP_DEL\0MAC_POLICY_LOAD\0MAC_STATUS\0MAC_UNLBL_ALLOW\0MAC_UNLBL_STCADD\0MAC_UNLBL_STCDEL\0MMAP\0MQ_GETSETATTR\0" -+ "MQ_NOTIFY\0MQ_OPEN\0MQ_SENDRECV\0NETFILTER_CFG\0NETFILTER_PKT\0OBJ_PID\0PATH\0RESP_ACCT_LOCK\0RESP_ACCT_LOCK_TIMED\0RESP_ACCT_REMOTE\0" -+ "RESP_ACCT_UNLOCK_TIMED\0RESP_ALERT\0RESP_ANOMALY\0RESP_EXEC\0RESP_HALT\0RESP_KILL_PROC\0RESP_SEBOOL\0RESP_SINGLE\0RESP_TERM_ACCESS\0RESP_TERM_LOCK\0" -+ "ROLE_ASSIGN\0ROLE_MODIFY\0ROLE_REMOVE\0SELINUX_ERR\0SERVICE_START\0SERVICE_STOP\0SOCKADDR\0SOCKETCALL\0SYSCALL\0SYSTEM_BOOT\0" -+ "SYSTEM_RUNLEVEL\0SYSTEM_SHUTDOWN\0TEST\0TRUSTED_APP\0TTY\0TTY_GET\0TTY_SET\0USER\0USER_ACCT\0USER_AUTH\0" -+ "USER_AVC\0USER_CHAUTHTOK\0USER_CMD\0USER_END\0USER_ERR\0USER_LABELED_EXPORT\0USER_LOGIN\0USER_LOGOUT\0USER_MAC_POLICY_LOAD\0USER_MGMT\0" -+ "USER_ROLE_CHANGE\0USER_SELINUX_ERR\0USER_START\0USER_TTY\0USER_UNLABELED_EXPORT\0USYS_CONFIG\0VIRT_CONTROL\0VIRT_MACHINE_ID\0VIRT_RESOURCE"; -+static const unsigned msg_type_s2i_s[] = { -+ 0,10,19,30,45,59,74,91,105,115, -+ 131,151,171,191,207,220,233,246,260,277, -+ 292,317,333,337,346,357,364,373,383,397, -+ 406,416,426,446,462,475,489,514,533,548, -+ 565,569,579,592,606,619,633,644,658,672, -+ 685,695,704,714,726,730,737,745,756,765, -+ 780,795,814,828,843,860,864,877,884,897, -+ 916,931,942,948,964,980,998,1014,1031,1047, -+ 1064,1080,1092,1104,1120,1131,1147,1164,1181,1186, -+ 1200,1210,1218,1230,1244,1258,1266,1271,1286,1307, -+ 1324,1347,1358,1371,1381,1391,1406,1418,1430,1447, -+ 1462,1474,1486,1498,1510,1524,1537,1546,1557,1565, -+ 1577,1593,1609,1614,1626,1630,1638,1646,1651,1661, -+ 1671,1680,1695,1704,1713,1722,1742,1753,1765,1786, -+ 1796,1813,1830,1841,1850,1872,1884,1897,1913, -+}; -+static const int msg_type_s2i_i[] = { -+ 1116,1114,1701,2111,2114,2107,2110,2115,2112,2103, -+ 2100,2104,2102,2101,2105,2106,2113,2116,1700,2108, -+ 2109,2117,1400,1402,1321,1322,1119,1125,1305,1103, -+ 1104,1110,2405,2404,2402,2403,2401,2406,2407,2400, -+ 1307,1118,1202,1207,1208,1203,1201,1206,1205,1200, -+ 1117,1115,2307,2308,1320,1309,1317,2309,1126,1800, -+ 1803,1801,1804,1805,1802,1303,1311,2000,1316,2304, -+ 2303,1013,1006,1407,1408,1405,1411,1413,1412,1414, -+ 1415,1409,1410,1403,1404,1406,1416,1417,1323,1315, -+ 1314,1312,1313,1325,1324,1318,1302,2207,2205,2204, -+ 2206,2201,2200,2210,2212,2202,2209,2211,2203,2208, -+ 2301,2311,2302,1401,1130,1131,1306,1304,1300,1127, -+ 1129,1128,1120,1121,1319,1016,1017,1005,1101,1100, -+ 1107,1108,1123,1106,1109,2305,1112,1113,2310,1102, -+ 2300,1122,1105,1124,2306,1111,2500,2502,2501, -+}; -+static int msg_type_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISLOWER(c) ? c - 'a' + 'A' : c; -+ } -+ copy[i] = 0; -+ return s2i__(msg_type_strings, msg_type_s2i_s, msg_type_s2i_i, 149, copy, value); -+ } -+} -+static const int msg_type_i2s_i[] = { -+ 1005,1006,1013,1016,1017,1100,1101,1102,1103,1104, -+ 1105,1106,1107,1108,1109,1110,1111,1112,1113,1114, -+ 1115,1116,1117,1118,1119,1120,1121,1122,1123,1124, -+ 1125,1126,1127,1128,1129,1130,1131,1200,1201,1202, -+ 1203,1205,1206,1207,1208,1300,1302,1303,1304,1305, -+ 1306,1307,1309,1311,1312,1313,1314,1315,1316,1317, -+ 1318,1319,1320,1321,1322,1323,1324,1325,1400,1401, -+ 1402,1403,1404,1405,1406,1407,1408,1409,1410,1411, -+ 1412,1413,1414,1415,1416,1417,1700,1701,1800,1801, -+ 1802,1803,1804,1805,2000,2100,2101,2102,2103,2104, -+ 2105,2106,2107,2108,2109,2110,2111,2112,2113,2114, -+ 2115,2116,2117,2200,2201,2202,2203,2204,2205,2206, -+ 2207,2208,2209,2210,2211,2212,2300,2301,2302,2303, -+ 2304,2305,2306,2307,2308,2309,2310,2311,2400,2401, -+ 2402,2403,2404,2405,2406,2407,2500,2501,2502, -+}; -+static const unsigned msg_type_i2s_s[] = { -+ 1646,942,931,1630,1638,1661,1651,1786,397,406, -+ 1830,1704,1671,1680,1713,416,1872,1742,1753,10, -+ 695,0,685,569,364,1609,1614,1813,1695,1841, -+ 373,756,1565,1593,1577,1510,1524,672,633,579, -+ 619,658,644,592,606,1557,1266,860,1546,383, -+ 1537,565,730,864,1210,1218,1200,1186,884,737, -+ 1258,1626,726,346,357,1181,1244,1230,333,1498, -+ 337,1104,1120,980,1131,948,964,1080,1092,998, -+ 1031,1014,1047,1064,1147,1164,260,19,765,795, -+ 843,780,814,828,877,131,191,171,115,151, -+ 207,220,59,277,292,74,30,105,233,45, -+ 91,246,317,1358,1347,1391,1430,1307,1286,1324, -+ 1271,1447,1406,1371,1418,1381,1796,1462,1486,916, -+ 897,1722,1850,704,714,745,1765,1474,548,489, -+ 462,475,446,426,514,533,1884,1913,1897, -+}; -+static const char *msg_type_i2s(int v) { -+ return i2s_bsearch__(msg_type_strings, msg_type_i2s_i, msg_type_i2s_s, 149, v); -+} -diff --git a/lib/optabs.h b/lib/optabs.h -new file mode 100644 -index 0000000..d79b665 ---- /dev/null -+++ b/lib/optabs.h -@@ -0,0 +1,11 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char op_strings[] = "!=\0&\0&=\0<\0<=\0=\0>\0>="; -+static const int op_i2s_i[] = { -+ 134217728,268435456,536870912,805306368,1073741824,1207959552,1342177280,1610612736, -+}; -+static const unsigned op_i2s_s[] = { -+ 3,8,15,0,13,5,10,17, -+}; -+static const char *op_i2s(int v) { -+ return i2s_bsearch__(op_strings, op_i2s_i, op_i2s_s, 8, v); -+} -diff --git a/lib/ppc_tables.h b/lib/ppc_tables.h -new file mode 100644 -index 0000000..f6346a8 ---- /dev/null -+++ b/lib/ppc_tables.h -@@ -0,0 +1,163 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char ppc_syscall_strings[] = "_llseek\0_newselect\0_sysctl\0accept\0accept4\0access\0acct\0add_key\0adjtimex\0afs_syscall\0" -+ "alarm\0bdflush\0bind\0break\0brk\0capget\0capset\0chdir\0chmod\0chown\0" -+ "chroot\0clock_adjtime\0clock_getres\0clock_gettime\0clock_nanosleep\0clock_settime\0clone\0close\0connect\0creat\0" -+ "create_module\0delete_module\0dup\0dup2\0dup3\0epoll_create\0epoll_create1\0epoll_ctl\0epoll_pwait\0epoll_wait\0" -+ "eventfd\0eventfd2\0execve\0exit\0exit_group\0faccessat\0fadvise64\0fadvise64_64\0fallocate\0fanotify_init\0" -+ "fanotify_mark\0fchdir\0fchmod\0fchmodat\0fchown\0fchownat\0fcntl\0fcntl64\0fdatasync\0fgetxattr\0" -+ "flistxattr\0flock\0fork\0fremovexattr\0fsetxattr\0fstat\0fstat64\0fstatat\0fstatfs\0fstatfs64\0" -+ "fsync\0ftime\0ftruncate\0ftruncate64\0futex\0futimesat\0get_kernel_syms\0get_robust_list\0getcpu\0getcwd\0" -+ "getdents\0getdents64\0getegid\0geteuid\0getgid\0getgroups\0getitimer\0getpeername\0getpgid\0getpgrp\0" -+ "getpid\0getpmsg\0getppid\0getpriority\0getresgid\0getresuid\0getrlimit\0getrusage\0getsid\0getsockname\0" -+ "getsockopt\0gettid\0gettimeofday\0getuid\0getxattr\0gtty\0idle\0init_module\0inotify_add_watch\0inotify_init\0" -+ "inotify_init1\0inotify_rm_watch\0io_cancel\0io_destroy\0io_getevents\0io_setup\0io_submit\0ioctl\0ioperm\0iopl\0" -+ "ioprio_get\0ioprio_set\0ipc\0kexec_load\0keyctl\0kill\0lchown\0lgetxattr\0link\0linkat\0" -+ "listen\0listxattr\0llistxattr\0lock\0lookup_dcookie\0lremovexattr\0lseek\0lsetxattr\0lstat\0lstat64\0" -+ "madvise\0mincore\0mkdir\0mkdirat\0mknod\0mknodat\0mlock\0mlockall\0mmap\0mmap2\0" -+ "modify_ldt\0mount\0move_pages\0mprotect\0mpx\0mq_getsetattr\0mq_notify\0mq_open\0mq_timedreceive\0mq_timedsend\0" -+ "mq_unlink\0mremap\0msync\0multiplexer\0munlock\0munlockall\0munmap\0name_to_handle_at\0nanosleep\0nfsservctl\0" -+ "nice\0oldfstat\0oldlstat\0oldolduname\0oldstat\0olduname\0open\0open_by_handle_at\0openat\0pause\0" -+ "pciconfig_iobase\0pciconfig_read\0pciconfig_write\0perf_counter_open\0personality\0pipe\0pipe2\0pivot_root\0poll\0ppoll\0" -+ "prctl\0pread\0preadv\0prlimit64\0process_vm_readv\0process_vm_writev\0prof\0profil\0pselect6\0ptrace\0" -+ "putpmsg\0pwrite\0pwritev\0query_module\0quotactl\0read\0readahead\0readdir\0readlink\0readlinkat\0" -+ "readv\0reboot\0recv\0recvfrom\0recvmmsg\0recvmsg\0remap_file_pages\0removexattr\0rename\0renameat\0" -+ "request_key\0rmdir\0rt_sigaction\0rt_sigpending\0rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0rt_sigtimedwait\0rt_tgsigqueueinfo\0" -+ "rtas\0sched_get_priority_max\0sched_get_priority_min\0sched_getaffinity\0sched_getparam\0sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0sched_setscheduler\0" -+ "sched_yield\0select\0send\0sendfile\0sendfile64\0sendmmsg\0sendmsg\0sendto\0set_robust_list\0set_tid_address\0" -+ "setdomainname\0setfsgid\0setfsuid\0setgid\0setgroups\0sethostname\0setitimer\0setns\0setpgid\0setpriority\0" -+ "setregid\0setresgid\0setresuid\0setreuid\0setrlimit\0setsid\0setsockopt\0settimeofday\0setuid\0setxattr\0" -+ "sgetmask\0shutdown\0sigaction\0sigaltstack\0signal\0signalfd\0signalfd4\0sigpending\0sigprocmask\0sigreturn\0" -+ "sigsuspend\0socket\0socketcall\0socketpair\0splice\0spu_create\0spu_run\0ssetmask\0stat\0stat64\0" -+ "statfs\0statfs64\0stime\0stty\0subpage_prot\0swapcontext\0swapoff\0swapon\0symlink\0symlinkat\0" -+ "sync\0sync_file_range2\0syncfs\0sysfs\0sysinfo\0syslog\0tee\0tgkill\0time\0timer_create\0" -+ "timer_delete\0timer_getoverrun\0timer_gettime\0timer_settime\0timerfd\0timerfd_gettime\0timerfd_settime\0times\0tkill\0truncate\0" -+ "truncate64\0tuxcall\0ugetrlimit\0ulimit\0umask\0umount\0umount2\0uname\0unlink\0unlinkat\0" -+ "unshare\0uselib\0ustat\0utime\0utimensat\0utimes\0vfork\0vhangup\0vm86\0vmsplice\0" -+ "wait4\0waitid\0waitpid\0write\0writev"; -+static const unsigned ppc_syscall_s2i_s[] = { -+ 0,8,19,27,34,42,49,54,62,71, -+ 83,89,97,102,108,112,119,126,132,138, -+ 144,151,165,178,192,208,222,228,234,242, -+ 248,262,276,280,285,290,303,317,327,339, -+ 350,358,367,374,379,390,400,410,423,433, -+ 447,461,468,475,484,491,500,506,514,524, -+ 534,545,551,556,569,579,585,593,601,609, -+ 619,625,631,641,653,659,669,685,701,708, -+ 715,724,735,743,751,758,768,778,790,798, -+ 806,813,821,829,841,851,861,871,881,888, -+ 900,911,918,931,938,947,952,957,969,987, -+ 1000,1014,1031,1041,1052,1065,1074,1084,1090,1097, -+ 1102,1113,1124,1128,1139,1146,1151,1158,1168,1173, -+ 1180,1187,1197,1208,1213,1228,1241,1247,1257,1263, -+ 1271,1279,1287,1293,1301,1307,1315,1321,1330,1335, -+ 1341,1352,1358,1369,1378,1382,1396,1406,1414,1430, -+ 1443,1453,1460,1466,1478,1486,1497,1504,1522,1532, -+ 1543,1548,1557,1566,1578,1586,1595,1600,1618,1625, -+ 1631,1648,1663,1679,1697,1709,1714,1720,1731,1736, -+ 1742,1748,1754,1761,1771,1788,1806,1811,1818,1827, -+ 1834,1842,1849,1857,1870,1879,1884,1894,1902,1911, -+ 1922,1928,1935,1940,1949,1958,1966,1983,1995,2002, -+ 2011,2023,2029,2042,2056,2071,2087,2100,2114,2130, -+ 2148,2153,2176,2199,2217,2232,2251,2273,2291,2306, -+ 2325,2337,2344,2349,2358,2369,2378,2386,2393,2409, -+ 2425,2439,2448,2457,2464,2474,2486,2496,2502,2510, -+ 2522,2531,2541,2551,2560,2570,2577,2588,2601,2608, -+ 2617,2626,2635,2645,2657,2664,2673,2683,2694,2706, -+ 2716,2727,2734,2745,2756,2763,2774,2782,2791,2796, -+ 2803,2810,2819,2825,2830,2843,2855,2863,2870,2878, -+ 2888,2893,2910,2917,2923,2931,2938,2942,2949,2954, -+ 2967,2980,2997,3011,3025,3033,3049,3065,3071,3077, -+ 3086,3097,3105,3116,3123,3129,3136,3144,3150,3157, -+ 3166,3174,3181,3187,3193,3203,3210,3216,3224,3229, -+ 3238,3244,3251,3259,3265, -+}; -+static const int ppc_syscall_s2i_i[] = { -+ 140,142,149,330,344,33,51,269,124,137, -+ 27,134,327,17,45,183,184,12,15,181, -+ 61,347,247,246,248,245,120,6,328,8, -+ 127,129,41,63,316,236,315,237,303,238, -+ 307,314,11,1,234,298,233,254,309,323, -+ 324,133,94,297,95,289,55,204,148,214, -+ 217,143,2,220,211,108,197,291,100,253, -+ 118,35,93,194,221,290,130,299,302,182, -+ 141,202,50,49,47,80,105,332,132,65, -+ 20,187,64,96,170,165,76,77,147,331, -+ 340,207,78,24,212,32,112,128,276,275, -+ 318,277,231,228,229,227,230,54,101,110, -+ 274,273,117,268,271,37,16,213,9,294, -+ 329,215,216,53,235,219,19,210,107,196, -+ 205,206,39,287,14,288,150,152,90,192, -+ 123,21,301,125,56,267,266,262,265,264, -+ 263,163,144,201,151,153,91,345,162,168, -+ 34,28,84,59,18,109,5,346,286,29, -+ 200,198,199,319,136,42,317,203,167,281, -+ 171,179,320,325,351,352,44,98,280,26, -+ 188,180,321,166,131,3,191,89,85,296, -+ 145,88,336,337,343,342,239,218,38,293, -+ 270,40,173,175,174,177,172,178,176,322, -+ 255,159,160,223,155,157,161,222,154,156, -+ 158,82,334,186,226,349,341,335,300,232, -+ 121,139,138,46,81,74,104,350,57,97, -+ 71,169,164,70,75,66,339,79,23,209, -+ 68,338,67,185,48,305,313,73,126,119, -+ 72,326,102,333,283,279,278,69,106,195, -+ 99,252,25,31,310,249,115,87,83,295, -+ 36,308,348,135,116,103,284,250,13,240, -+ 244,243,242,241,306,312,311,43,208,92, -+ 193,225,190,58,60,22,52,122,10,292, -+ 282,86,62,30,304,251,189,111,113,285, -+ 114,272,7,4,146, -+}; -+static int ppc_syscall_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; -+ } -+ copy[i] = 0; -+ return s2i__(ppc_syscall_strings, ppc_syscall_s2i_s, ppc_syscall_s2i_i, 345, copy, value); -+ } -+} -+static const unsigned ppc_syscall_i2s_direct[] = { -+ 374,551,1879,3259,1595,228,3251,242,1168,3150, -+ 367,126,2949,1301,132,1151,102,1578,1241,806, -+ 1352,3129,2601,931,2819,1827,83,1548,1625,3187, -+ 2825,947,42,1543,625,2888,1146,1995,1287,2023, -+ 276,1709,3065,1806,108,2457,751,2657,743,735, -+ 49,3136,1208,1084,500,1378,2502,3116,1566,3123, -+ 144,3181,280,821,798,2570,2635,2617,2782,2551, -+ 2522,2716,2683,2474,2560,861,871,918,2588,758, -+ 2464,2337,2870,1557,1902,3174,2863,1928,1894,1330, -+ 1497,3077,631,468,484,829,2510,1811,2803,601, -+ 1090,2734,2931,2486,768,2791,1257,579,1586,1097, -+ 3216,952,3224,3238,2855,2923,1124,619,2706,222, -+ 2425,3144,1341,62,1369,2694,248,957,262,669, -+ 1870,790,461,89,2917,1697,71,2448,2439,0, -+ 715,8,545,1460,1922,3265,881,514,19,1315, -+ 1478,1321,1486,2291,2217,2306,2232,2325,2153,2176, -+ 2251,1522,1453,2541,851,1857,1731,1532,2531,841, -+ 1742,2087,2029,2056,2042,2114,2071,2100,1748,1842, -+ 138,708,112,119,2645,2349,813,1834,3210,3105, -+ 1884,1335,3086,641,2796,1263,585,1648,1663,1631, -+ 1466,724,1720,506,1271,1279,911,3071,2608,1247, -+ 569,938,1158,524,1187,1197,534,1983,1228,556, -+ 653,2273,2199,-1u,3097,2358,1065,1041,1052,1074, -+ 1031,2409,400,379,1213,290,317,339,1966,2954, -+ 3011,2997,2980,2967,208,178,165,192,2843,2942, -+ 3203,2810,609,410,2148,-1u,-1u,-1u,-1u,-1u, -+ -1u,1406,1443,1430,1414,1396,1382,1128,54,2011, -+ 1139,3244,1113,1102,987,969,1014,2774,2763,1818, -+ 1736,3166,2756,2938,3229,1618,1293,1307,491,659, -+ 593,3157,2002,1173,2878,1911,475,390,685,2393, -+ 1358,701,327,3193,2664,3025,350,2893,423,2830, -+ 3049,3033,2673,358,303,285,1714,1000,1679,1754, -+ 1849,2130,433,447,1761,2727,97,234,1180,27, -+ 888,778,2745,2344,2386,1935,1940,2626,2577,900, -+ 2378,1958,1949,34,1504,1600,151,2910,2369,2496, -+ 1771,1788, -+}; -+static const char *ppc_syscall_i2s(int v) { -+ return i2s_direct__(ppc_syscall_strings, ppc_syscall_i2s_direct, 1, 352, v); -+} -diff --git a/lib/s390_tables.h b/lib/s390_tables.h -new file mode 100644 -index 0000000..09ad437 ---- /dev/null -+++ b/lib/s390_tables.h -@@ -0,0 +1,153 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char s390_syscall_strings[] = "_llseek\0_newselect\0_sysctl\0access\0acct\0add_key\0adjtimex\0afs_syscall\0alarm\0bdflush\0" -+ "brk\0capget\0capset\0chdir\0chmod\0chown\0chown32\0chroot\0clock_adjtime\0clock_getres\0" -+ "clock_gettime\0clock_nanosleep\0clock_settime\0clone\0close\0creat\0create_module\0delete_module\0dup\0dup2\0" -+ "dup3\0epoll_create\0epoll_create1\0epoll_ctl\0epoll_pwait\0epoll_wait\0eventfd\0eventfd2\0execve\0exit\0" -+ "exit_group\0faccessat\0fadvise64\0fadvise64_64\0fallocate\0fanotify_init\0fanotify_mark\0fchdir\0fchmod\0fchmodat\0" -+ "fchown\0fchown32\0fchownat\0fcntl\0fcntl64\0fdatasync\0fgetxattr\0flistxattr\0flock\0fork\0" -+ "fremovexattr\0fsetxattr\0fstat\0fstat64\0fstatat\0fstatfs\0fstatfs64\0fsync\0ftruncate\0ftruncate64\0" -+ "futex\0futimesat\0get_kernel_syms\0get_robust_list\0getcpu\0getcwd\0getdents\0getdents64\0getegid\0getegid32\0" -+ "geteuid\0geteuid32\0getgid\0getgid32\0getgroups\0getgroups32\0getitimer\0getpgid\0getpgrp\0getpid\0" -+ "getpmsg\0getppid\0getpriority\0getresgid\0getresgid32\0getresuid\0getresuid32\0getrlimit\0getrusage\0getsid\0" -+ "gettid\0gettimeofday\0getuid\0getuid32\0getxattr\0idle\0init_module\0inotify_add_watch\0inotify_init\0inotify_init1\0" -+ "inotify_rm_watch\0io_cancel\0io_destroy\0io_getevents\0io_setup\0io_submit\0ioctl\0ioperm\0ioprio_get\0ioprio_set\0" -+ "ipc\0kexec_load\0keyctl\0kill\0lchown\0lchown32\0lgetxattr\0link\0linkat\0listxattr\0" -+ "llistxattr\0lremovexattr\0lseek\0lsetxattr\0lstat\0lstat64\0madvise\0mincore\0mkdir\0mkdirat\0" -+ "mknod\0mknodat\0mlock\0mlockall\0mmap\0mmap2\0mount\0mprotect\0mq_getsetattr\0mq_notify\0" -+ "mq_open\0mq_timedreceive\0mq_timedsend\0mq_unlink\0mremap\0msync\0munlock\0munlockall\0munmap\0name_to_handle_at\0" -+ "nanosleep\0nfsservctl\0nice\0open\0open_by_handle_at\0openat\0pause\0perf_event_open\0personality\0pipe\0" -+ "pipe2\0pivot_root\0poll\0ppoll\0prctl\0pread\0preadv\0prlimit64\0process_vm_readv\0process_vm_writev\0" -+ "pselect6\0ptrace\0putpmsg\0pwrite\0pwritev\0query_module\0quotactl\0read\0readahead\0readdir\0" -+ "readlink\0readlinkat\0readv\0reboot\0remap_file_pages\0removexattr\0rename\0renameat\0request_key\0rmdir\0" -+ "rt_sigaction\0rt_sigpending\0rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0rt_sigtimedwait\0rt_tgsigqueueinfo\0sched_get_priority_max\0sched_get_priority_min\0" -+ "sched_getaffinity\0sched_getparam\0sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0sched_setscheduler\0sched_yield\0sendfile\0sendfile64\0" -+ "set_robust_list\0set_tid_address\0setdomainname\0setfsgid\0setfsgid32\0setfsuid\0setfsuid32\0setgid\0setgid32\0setgroups\0" -+ "setgroups32\0sethostname\0setitimer\0setns\0setpgid\0setpriority\0setregid\0setregid32\0setresgid\0setresgid32\0" -+ "setresuid\0setresuid32\0setreuid\0setreuid32\0setrlimit\0setsid\0settimeofday\0setuid\0setuid32\0setxattr\0" -+ "sigaction\0sigaltstack\0signal\0signalfd\0signalfd4\0sigpending\0sigprocmask\0sigreturn\0sigsuspend\0socketcall\0" -+ "splice\0stat\0stat64\0statfs\0statfs64\0stime\0swapoff\0swapon\0symlink\0symlinkat\0" -+ "sync\0sync_file_range\0syncfs\0sysfs\0sysinfo\0syslog\0tee\0tgkill\0time\0timer_create\0" -+ "timer_delete\0timer_getoverrun\0timer_gettime\0timer_settime\0timerfd\0timerfd_create\0timerfd_gettime\0timerfd_settime\0times\0tkill\0" -+ "truncate\0truncate64\0ugetrlimit\0umask\0umount\0umount2\0uname\0unlink\0unlinkat\0unshare\0" -+ "uselib\0ustat\0utime\0utimensat\0utimes\0vfork\0vhangup\0vmsplice\0wait4\0waitid\0" -+ "write\0writev"; -+static const unsigned s390_syscall_s2i_s[] = { -+ 0,8,19,27,34,39,47,56,68,74, -+ 82,86,93,100,106,112,118,126,133,147, -+ 160,174,190,204,210,216,222,236,250,254, -+ 259,264,277,291,301,313,324,332,341,348, -+ 353,364,374,384,397,407,421,435,442,449, -+ 458,465,474,483,489,497,507,517,528,534, -+ 539,552,562,568,576,584,592,602,608,618, -+ 630,636,646,662,678,685,692,701,712,720, -+ 730,738,748,755,764,774,786,796,804,812, -+ 819,827,835,847,857,869,879,891,901,911, -+ 918,925,938,945,954,963,968,980,998,1011, -+ 1025,1042,1052,1063,1076,1085,1095,1101,1108,1119, -+ 1130,1134,1145,1152,1157,1164,1173,1183,1188,1195, -+ 1205,1216,1229,1235,1245,1251,1259,1267,1275,1281, -+ 1289,1295,1303,1309,1318,1323,1329,1335,1344,1358, -+ 1368,1376,1392,1405,1415,1422,1428,1436,1447,1454, -+ 1472,1482,1493,1498,1503,1521,1528,1534,1550,1562, -+ 1567,1573,1584,1589,1595,1601,1607,1614,1624,1641, -+ 1659,1668,1675,1683,1690,1698,1711,1720,1725,1735, -+ 1743,1752,1763,1769,1776,1793,1805,1812,1821,1833, -+ 1839,1852,1866,1881,1897,1910,1924,1940,1958,1981, -+ 2004,2022,2037,2056,2078,2096,2111,2130,2142,2151, -+ 2162,2178,2194,2208,2217,2228,2237,2248,2255,2264, -+ 2274,2286,2298,2308,2314,2322,2334,2343,2354,2364, -+ 2376,2386,2398,2407,2418,2428,2435,2448,2455,2464, -+ 2473,2483,2495,2502,2511,2521,2532,2544,2554,2565, -+ 2576,2583,2588,2595,2602,2611,2617,2625,2632,2640, -+ 2650,2655,2671,2678,2684,2692,2699,2703,2710,2715, -+ 2728,2741,2758,2772,2786,2794,2809,2825,2841,2847, -+ 2853,2862,2873,2884,2890,2897,2905,2911,2918,2927, -+ 2935,2942,2948,2954,2964,2971,2977,2985,2994,3000, -+ 3007,3013, -+}; -+static const int s390_syscall_s2i_i[] = { -+ 140,142,149,33,51,278,124,137,27,134, -+ 45,184,185,12,15,182,212,61,337,261, -+ 260,262,259,120,6,8,127,129,41,63, -+ 326,249,327,250,312,251,318,323,11,1, -+ 248,300,253,264,314,332,333,133,94,299, -+ 95,207,291,55,221,148,229,232,143,2, -+ 235,226,108,197,293,100,266,118,93,194, -+ 238,292,130,305,311,183,141,220,50,202, -+ 49,201,47,200,80,205,105,132,65,20, -+ 188,64,96,171,211,165,209,76,77,147, -+ 236,78,24,199,227,112,128,285,284,324, -+ 286,247,244,245,243,246,54,101,283,282, -+ 117,277,280,37,16,198,228,9,296,230, -+ 231,234,19,225,107,196,219,218,39,289, -+ 14,290,150,152,90,192,21,125,276,275, -+ 271,274,273,272,163,144,151,153,91,335, -+ 162,169,34,5,336,288,29,331,136,42, -+ 325,217,168,302,172,180,328,334,340,341, -+ 301,26,189,181,329,167,131,3,222,89, -+ 85,298,145,88,267,233,38,295,279,40, -+ 174,176,175,178,173,179,177,330,159,160, -+ 240,155,157,161,239,154,156,158,187,223, -+ 304,252,121,139,216,138,215,46,214,81, -+ 206,74,104,339,57,97,71,204,170,210, -+ 164,208,70,203,75,66,79,23,213,224, -+ 67,186,48,316,322,73,126,119,72,102, -+ 306,106,195,99,265,25,115,87,83,297, -+ 36,307,338,135,116,103,308,241,13,254, -+ 258,257,256,255,317,319,321,320,43,237, -+ 92,193,191,60,22,52,122,10,294,303, -+ 86,62,30,315,313,190,111,309,114,281, -+ 4,146, -+}; -+static int s390_syscall_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; -+ } -+ copy[i] = 0; -+ return s2i__(s390_syscall_strings, s390_syscall_s2i_s, s390_syscall_s2i_i, 312, copy, value); -+ } -+} -+static const unsigned s390_syscall_i2s_direct[] = { -+ 348,534,1720,3007,1498,210,-1u,216,1183,2911, -+ 341,100,2710,1289,106,1157,-1u,-1u,1229,812, -+ 1329,2890,2448,938,2611,1668,68,-1u,1528,2948, -+ -1u,-1u,27,1493,-1u,2650,1152,1805,1275,1833, -+ 250,1562,2841,-1u,82,2248,748,2495,730,712, -+ 34,2897,-1u,1095,483,-1u,2314,-1u,-1u,2884, -+ 126,2942,254,827,804,2428,2473,-1u,-1u,2398, -+ 2334,2554,2521,2286,2418,891,901,925,2435,764, -+ 2264,-1u,2632,-1u,1743,2935,2625,1769,1735,1318, -+ 1447,2853,608,442,458,835,2322,-1u,2595,584, -+ 1101,2565,2692,2298,786,2583,1245,562,-1u,-1u, -+ 2977,963,-1u,2994,2617,2684,1130,602,2544,204, -+ 2194,2905,-1u,47,1335,2532,222,968,236,646, -+ 1711,796,435,74,2678,1550,56,2228,2208,0, -+ 692,8,528,1422,1763,3013,911,497,19,1303, -+ 1428,1309,1436,2096,2022,2111,2037,2130,1958,1981, -+ 2056,1472,1415,2376,869,-1u,1698,1584,1482,2354, -+ 847,1595,1897,1839,1866,1852,1924,1881,1910,1601, -+ 1683,112,685,86,93,2483,2142,819,1675,2971, -+ 2873,1323,2862,618,2588,1251,568,1164,945,755, -+ 738,720,2407,2343,774,2274,465,2386,879,2364, -+ 857,118,2455,2255,2237,2217,1573,1267,1259,701, -+ 489,1725,2151,2464,1235,552,954,1173,507,1195, -+ 1205,517,1793,1216,539,918,2847,630,2078,2004, -+ 2703,-1u,1076,1052,1063,1085,1042,353,264,291, -+ 313,2178,374,2715,2772,2758,2741,2728,190,160, -+ 147,174,-1u,384,2602,592,1776,-1u,-1u,-1u, -+ 1368,1405,1392,1376,1358,1344,1134,39,1821,1145, -+ 3000,1119,1108,998,980,1025,-1u,1521,1281,1295, -+ 474,636,576,2918,1812,1188,2640,1752,449,364, -+ 1659,1589,2927,2162,662,2576,2655,2699,2985,-1u, -+ 678,301,2964,397,2954,2502,2786,324,2794,2825, -+ 2809,2511,332,1011,1567,259,277,1607,1690,1940, -+ 1534,407,421,1614,1454,1503,133,2671,2308,1624, -+ 1641, -+}; -+static const char *s390_syscall_i2s(int v) { -+ return i2s_direct__(s390_syscall_strings, s390_syscall_i2s_direct, 1, 341, v); -+} -diff --git a/lib/s390x_tables.h b/lib/s390x_tables.h -new file mode 100644 -index 0000000..6e50cb7 ---- /dev/null -+++ b/lib/s390x_tables.h -@@ -0,0 +1,141 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char s390x_syscall_strings[] = "_sysctl\0access\0acct\0add_key\0adjtimex\0afs_syscall\0alarm\0bdflush\0brk\0capget\0" -+ "capset\0chdir\0chmod\0chown\0chroot\0clock_adjtime\0clock_getres\0clock_gettime\0clock_nanosleep\0clock_settime\0" -+ "clone\0close\0creat\0create_module\0delete_module\0dup\0dup2\0dup3\0epoll_create\0epoll_create1\0" -+ "epoll_ctl\0epoll_pwait\0epoll_wait\0eventfd\0eventfd2\0execve\0exit\0exit_group\0faccessat\0fadvise64\0" -+ "fallocate\0fanotify_init\0fanotify_mark\0fchdir\0fchmod\0fchmodat\0fchown\0fchownat\0fcntl\0fdatasync\0" -+ "fgetxattr\0flistxattr\0flock\0fork\0fremovexattr\0fsetxattr\0fstat\0fstatfs\0fstatfs64\0fsync\0" -+ "ftruncate\0futex\0futimesat\0get_kernel_syms\0get_robust_list\0getcpu\0getcwd\0getdents\0getegid\0geteuid\0" -+ "getgid\0getgroups\0getitimer\0getpgid\0getpgrp\0getpid\0getpmsg\0getppid\0getpriority\0getresgid\0" -+ "getresuid\0getrlimit\0getrusage\0getsid\0gettid\0gettimeofday\0getuid\0getxattr\0idle\0init_module\0" -+ "inotify_add_watch\0inotify_init\0inotify_init1\0inotify_rm_watch\0io_cancel\0io_destroy\0io_getevents\0io_setup\0io_submit\0ioctl\0" -+ "ioprio_get\0ioprio_set\0ipc\0kexec_load\0keyctl\0kill\0lchown\0lgetxattr\0link\0linkat\0" -+ "listxattr\0llistxattr\0lremovexattr\0lseek\0lsetxattr\0lstat\0madvise\0mincore\0mkdir\0mkdirat\0" -+ "mknod\0mknodat\0mlock\0mlockall\0mmap\0mount\0mprotect\0mq_getsetattr\0mq_notify\0mq_open\0" -+ "mq_timedreceive\0mq_timedsend\0mq_unlink\0mremap\0msync\0munlock\0munlockall\0munmap\0name_to_handle_at\0nanosleep\0" -+ "newfstatat\0nfsservctl\0nice\0open\0open_by_handle_at\0openat\0pause\0perf_event_open\0personality\0pipe\0" -+ "pipe2\0pivot_root\0poll\0ppoll\0prctl\0pread\0preadv\0prlimit64\0process_vm_readv\0process_vm_writev\0" -+ "pselect6\0ptrace\0putpmsg\0pwrite\0pwritev\0query_module\0quotactl\0read\0readahead\0readdir\0" -+ "readlink\0readlinkat\0readv\0reboot\0remap_file_pages\0removexattr\0rename\0renameat\0request_key\0rmdir\0" -+ "rt_sigaction\0rt_sigpending\0rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0rt_sigtimedwait\0rt_tgsigqueueinfo\0sched_get_priority_max\0sched_get_priority_min\0" -+ "sched_getaffinity\0sched_getparam\0sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0sched_setscheduler\0sched_yield\0select\0sendfile\0" -+ "set_robust_list\0set_tid_address\0setdomainname\0setfsgid\0setfsuid\0setgid\0setgroups\0sethostname\0setitimer\0setns\0" -+ "setpgid\0setpriority\0setregid\0setresgid\0setresuid\0setreuid\0setrlimit\0setsid\0settimeofday\0setuid\0" -+ "setxattr\0sigaction\0sigaltstack\0signal\0signalfd\0signalfd4\0sigpending\0sigprocmask\0sigreturn\0sigsuspend\0" -+ "socketcall\0splice\0stat\0statfs\0statfs64\0swapoff\0swapon\0symlink\0symlinkat\0sync\0" -+ "sync_file_range\0syncfs\0sysfs\0sysinfo\0syslog\0tee\0tgkill\0timer_create\0timer_delete\0timer_getoverrun\0" -+ "timer_gettime\0timer_settime\0timerfd\0timerfd_create\0timerfd_gettime\0timerfd_settime\0times\0tkill\0truncate\0umask\0" -+ "umount\0umount2\0uname\0unlink\0unlinkat\0unshare\0uselib\0ustat\0utime\0utimensat\0" -+ "utimes\0vfork\0vhangup\0vmsplice\0wait4\0waitid\0write\0writev"; -+static const unsigned s390x_syscall_s2i_s[] = { -+ 0,8,15,20,28,37,49,55,63,67, -+ 74,81,87,93,99,106,120,133,147,163, -+ 177,183,189,195,209,223,227,232,237,250, -+ 264,274,286,297,305,314,321,326,337,347, -+ 357,367,381,395,402,409,418,425,434,440, -+ 450,460,471,477,482,495,505,511,519,529, -+ 535,545,551,561,577,593,600,607,616,624, -+ 632,639,649,659,667,675,682,690,698,710, -+ 720,730,740,750,757,764,777,784,793,798, -+ 810,828,841,855,872,882,893,906,915,925, -+ 931,942,953,957,968,975,980,987,997,1002, -+ 1009,1019,1030,1043,1049,1059,1065,1073,1081,1087, -+ 1095,1101,1109,1115,1124,1129,1135,1144,1158,1168, -+ 1176,1192,1205,1215,1222,1228,1236,1247,1254,1272, -+ 1282,1293,1304,1309,1314,1332,1339,1345,1361,1373, -+ 1378,1384,1395,1400,1406,1412,1418,1425,1435,1452, -+ 1470,1479,1486,1494,1501,1509,1522,1531,1536,1546, -+ 1554,1563,1574,1580,1587,1604,1616,1623,1632,1644, -+ 1650,1663,1677,1692,1708,1721,1735,1751,1769,1792, -+ 1815,1833,1848,1867,1889,1907,1922,1941,1953,1960, -+ 1969,1985,2001,2015,2024,2033,2040,2050,2062,2072, -+ 2078,2086,2098,2107,2117,2127,2136,2146,2153,2166, -+ 2173,2182,2192,2204,2211,2220,2230,2241,2253,2263, -+ 2274,2285,2292,2297,2304,2313,2321,2328,2336,2346, -+ 2351,2367,2374,2380,2388,2395,2399,2406,2419,2432, -+ 2449,2463,2477,2485,2500,2516,2532,2538,2544,2553, -+ 2559,2566,2574,2580,2587,2596,2604,2611,2617,2623, -+ 2633,2640,2646,2654,2663,2669,2676,2682, -+}; -+static const int s390x_syscall_s2i_i[] = { -+ 149,33,51,278,124,137,27,134,45,184, -+ 185,12,15,212,61,337,261,260,262,259, -+ 120,6,8,127,129,41,63,326,249,327, -+ 250,312,251,318,323,11,1,248,300,253, -+ 314,332,333,133,94,299,207,291,55,148, -+ 229,232,143,2,235,226,108,100,266,118, -+ 93,238,292,130,305,311,183,141,202,201, -+ 200,205,105,132,65,20,188,64,96,211, -+ 209,191,77,147,236,78,199,227,112,128, -+ 285,284,324,286,247,244,245,243,246,54, -+ 283,282,117,277,280,37,198,228,9,296, -+ 230,231,234,19,225,107,219,218,39,289, -+ 14,290,150,152,90,21,125,276,275,271, -+ 274,273,272,163,144,151,153,91,335,162, -+ 293,169,34,5,336,288,29,331,136,42, -+ 325,217,168,302,172,180,328,334,340,341, -+ 301,26,189,181,329,167,131,3,222,89, -+ 85,298,145,88,267,233,38,295,279,40, -+ 174,176,175,178,173,179,177,330,159,160, -+ 240,155,157,161,239,154,156,158,142,187, -+ 304,252,121,216,215,214,206,74,104,339, -+ 57,97,204,210,208,203,75,66,79,213, -+ 224,67,186,48,316,322,73,126,119,72, -+ 102,306,106,99,265,115,87,83,297,36, -+ 307,338,135,116,103,308,241,254,258,257, -+ 256,255,317,319,321,320,43,237,92,60, -+ 22,52,122,10,294,303,86,62,30,315, -+ 313,190,111,309,114,281,4,146, -+}; -+static int s390x_syscall_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; -+ } -+ copy[i] = 0; -+ return s2i__(s390x_syscall_strings, s390x_syscall_s2i_s, s390x_syscall_s2i_i, 278, copy, value); -+ } -+} -+static const unsigned s390x_syscall_i2s_direct[] = { -+ 321,477,1531,2676,1309,183,-1u,189,997,2580, -+ 314,81,-1u,1095,87,-1u,-1u,-1u,1043,675, -+ 1129,2559,-1u,-1u,-1u,1479,49,-1u,1339,2617, -+ -1u,-1u,8,1304,-1u,2346,975,1616,1081,1644, -+ 223,1373,2532,-1u,63,-1u,-1u,2204,-1u,-1u, -+ 15,2566,-1u,925,434,-1u,2078,-1u,-1u,2553, -+ 99,2611,227,690,667,2146,2182,-1u,-1u,-1u, -+ -1u,2263,2230,2050,2136,-1u,740,764,2153,-1u, -+ -1u,-1u,2328,-1u,1554,2604,2321,1580,1546,1124, -+ 1247,2544,535,402,-1u,698,2086,-1u,2297,511, -+ -1u,2274,2388,2062,649,2292,1059,505,-1u,-1u, -+ 2646,793,-1u,2663,2313,2380,953,529,2253,177, -+ 2001,2574,-1u,28,1135,2241,195,798,209,561, -+ 1522,659,395,55,2374,1361,37,-1u,-1u,-1u, -+ 607,1953,471,1222,1574,2682,750,440,0,1109, -+ 1228,1115,1236,1907,1833,1922,1848,1941,1769,1792, -+ 1867,1272,1215,-1u,-1u,-1u,1509,1395,1293,-1u, -+ -1u,1406,1708,1650,1677,1663,1735,1692,1721,1412, -+ 1494,-1u,600,67,74,2192,1960,682,1486,2640, -+ 730,-1u,-1u,-1u,-1u,-1u,-1u,980,777,632, -+ 624,616,2127,2098,639,2040,418,2117,720,2107, -+ 710,93,2166,2033,2024,2015,1384,1073,1065,-1u, -+ -1u,1536,-1u,2173,1049,495,784,987,450,1009, -+ 1019,460,1604,1030,482,757,2538,545,1889,1815, -+ 2399,-1u,906,882,893,915,872,326,237,264, -+ 286,1985,347,2406,2463,2449,2432,2419,163,133, -+ 120,147,-1u,-1u,2304,519,1587,-1u,-1u,-1u, -+ 1168,1205,1192,1176,1158,1144,957,20,1632,968, -+ 2669,942,931,828,810,855,-1u,1332,1087,1101, -+ 425,551,1282,2587,1623,1002,2336,1563,409,337, -+ 1470,1400,2596,1969,577,2285,2351,2395,2654,-1u, -+ 593,274,2633,357,2623,2211,2477,297,2485,2516, -+ 2500,2220,305,841,1378,232,250,1418,1501,1751, -+ 1345,367,381,1425,1254,1314,106,2367,2072,1435, -+ 1452, -+}; -+static const char *s390x_syscall_i2s(int v) { -+ return i2s_direct__(s390x_syscall_strings, s390x_syscall_i2s_direct, 1, 341, v); -+} -diff --git a/lib/x86_64_tables.h b/lib/x86_64_tables.h -new file mode 100644 -index 0000000..15fb26b ---- /dev/null -+++ b/lib/x86_64_tables.h -@@ -0,0 +1,150 @@ -+/* This is a generated file, see Makefile.am for its inputs. */ -+static const char x86_64_syscall_strings[] = "_sysctl\0accept\0accept4\0access\0acct\0add_key\0adjtimex\0afs_syscall\0alarm\0arch_prctl\0" -+ "bind\0brk\0capget\0capset\0chdir\0chmod\0chown\0chroot\0clock_adjtime\0clock_getres\0" -+ "clock_gettime\0clock_nanosleep\0clock_settime\0clone\0close\0connect\0creat\0create_module\0delete_module\0dup\0" -+ "dup2\0dup3\0epoll_create\0epoll_create1\0epoll_ctl\0epoll_ctl_old\0epoll_pwait\0epoll_wait\0epoll_wait_old\0eventfd\0" -+ "eventfd2\0execve\0exit\0exit_group\0faccessat\0fadvise64\0fallocate\0fanotify_init\0fanotify_mark\0fchdir\0" -+ "fchmod\0fchmodat\0fchown\0fchownat\0fcntl\0fdatasync\0fgetxattr\0flistxattr\0flock\0fork\0" -+ "fremovexattr\0fsetxattr\0fstat\0fstatfs\0fsync\0ftruncate\0futex\0futimesat\0get_kernel_syms\0get_mempolicy\0" -+ "get_robust_list\0get_thread_area\0getcpu\0getcwd\0getdents\0getdents64\0getegid\0geteuid\0getgid\0getgroups\0" -+ "getitimer\0getpeername\0getpgid\0getpgrp\0getpid\0getpmsg\0getppid\0getpriority\0getresgid\0getresuid\0" -+ "getrlimit\0getrusage\0getsid\0getsockname\0getsockopt\0gettid\0gettimeofday\0getuid\0getxattr\0init_module\0" -+ "inotify_add_watch\0inotify_init\0inotify_init1\0inotify_rm_watch\0io_cancel\0io_destroy\0io_getevents\0io_setup\0io_submit\0ioctl\0" -+ "ioperm\0iopl\0ioprio_get\0ioprio_set\0kexec_load\0keyctl\0kill\0lchown\0lgetxattr\0link\0" -+ "linkat\0listen\0listxattr\0llistxattr\0lookup_dcookie\0lremovexattr\0lseek\0lsetxattr\0lstat\0madvise\0" -+ "mbind\0migrate_pages\0mincore\0mkdir\0mkdirat\0mknod\0mknodat\0mlock\0mlockall\0mmap\0" -+ "modify_ldt\0mount\0move_pages\0mprotect\0mq_getsetattr\0mq_notify\0mq_open\0mq_timedreceive\0mq_timedsend\0mq_unlink\0" -+ "mremap\0msgctl\0msgget\0msgrcv\0msgsnd\0msync\0munlock\0munlockall\0munmap\0name_to_handle_at\0" -+ "nanosleep\0newfstatat\0nfsservctl\0open\0open_by_handle_at\0openat\0pause\0perf_event_open\0personality\0pipe\0" -+ "pipe2\0pivot_root\0poll\0ppoll\0prctl\0pread\0preadv\0prlimit64\0process_vm_readv\0process_vm_writev\0" -+ "pselect6\0ptrace\0putpmsg\0pwrite\0pwritev\0query_module\0quotactl\0read\0readahead\0readlink\0" -+ "readlinkat\0readv\0reboot\0recvfrom\0recvmmsg\0recvmsg\0remap_file_pages\0removexattr\0rename\0renameat\0" -+ "request_key\0restart_syscall\0rmdir\0rt_sigaction\0rt_sigpending\0rt_sigprocmask\0rt_sigqueueinfo\0rt_sigreturn\0rt_sigsuspend\0rt_sigtimedwait\0" -+ "rt_tgsigqueueinfo\0sched_get_priority_max\0sched_get_priority_min\0sched_getaffinity\0sched_getparam\0sched_getscheduler\0sched_rr_get_interval\0sched_setaffinity\0sched_setparam\0sched_setscheduler\0" -+ "sched_yield\0security\0select\0semctl\0semget\0semop\0semtimedop\0sendfile\0sendmmsg\0sendmsg\0" -+ "sendto\0set_mempolicy\0set_robust_list\0set_thread_area\0set_tid_address\0setdomainname\0setfsgid\0setfsuid\0setgid\0setgroups\0" -+ "sethostname\0setitimer\0setns\0setpgid\0setpriority\0setregid\0setresgid\0setresuid\0setreuid\0setrlimit\0" -+ "setsid\0setsockopt\0settimeofday\0setuid\0setxattr\0shmat\0shmctl\0shmdt\0shmget\0shutdown\0" -+ "sigaltstack\0signalfd\0signalfd4\0socket\0socketpair\0splice\0stat\0statfs\0swapoff\0swapon\0" -+ "symlink\0symlinkat\0sync\0sync_file_range\0syncfs\0sysfs\0sysinfo\0syslog\0tee\0tgkill\0" -+ "time\0timer_create\0timer_delete\0timer_getoverrun\0timer_gettime\0timer_settime\0timerfd\0timerfd_gettime\0timerfd_settime\0times\0" -+ "tkill\0truncate\0tuxcall\0umask\0umount2\0uname\0unlink\0unlinkat\0unshare\0uselib\0" -+ "ustat\0utime\0utimensat\0utimes\0vfork\0vhangup\0vmsplice\0vserver\0wait4\0waitid\0" -+ "write\0writev"; -+static const unsigned x86_64_syscall_s2i_s[] = { -+ 0,8,15,23,30,35,43,52,64,70, -+ 81,86,90,97,104,110,116,122,129,143, -+ 156,170,186,200,206,212,220,226,240,254, -+ 258,263,268,281,295,305,319,331,342,357, -+ 365,374,381,386,397,407,417,427,441,455, -+ 462,469,478,485,494,500,510,520,531,537, -+ 542,555,565,571,579,585,595,601,611,627, -+ 641,657,673,680,687,696,707,715,723,730, -+ 740,750,762,770,778,785,793,801,813,823, -+ 833,843,853,860,872,883,890,903,910,919, -+ 931,949,962,976,993,1003,1014,1027,1036,1046, -+ 1052,1059,1064,1075,1086,1097,1104,1109,1116,1126, -+ 1131,1138,1145,1155,1166,1181,1194,1200,1210,1216, -+ 1224,1230,1244,1252,1258,1266,1272,1280,1286,1295, -+ 1300,1311,1317,1328,1337,1351,1361,1369,1385,1398, -+ 1408,1415,1422,1429,1436,1443,1449,1457,1468,1475, -+ 1493,1503,1514,1525,1530,1548,1555,1561,1577,1589, -+ 1594,1600,1611,1616,1622,1628,1634,1641,1651,1668, -+ 1686,1695,1702,1710,1717,1725,1738,1747,1752,1762, -+ 1771,1782,1788,1795,1804,1813,1821,1838,1850,1857, -+ 1866,1878,1894,1900,1913,1927,1942,1958,1971,1985, -+ 2001,2019,2042,2065,2083,2098,2117,2139,2157,2172, -+ 2191,2203,2212,2219,2226,2233,2239,2250,2259,2268, -+ 2276,2283,2297,2313,2329,2345,2359,2368,2377,2384, -+ 2394,2406,2416,2422,2430,2442,2451,2461,2471,2480, -+ 2490,2497,2508,2521,2528,2537,2543,2550,2556,2563, -+ 2572,2584,2593,2603,2610,2621,2628,2633,2640,2648, -+ 2655,2663,2673,2678,2694,2701,2707,2715,2722,2726, -+ 2733,2738,2751,2764,2781,2795,2809,2817,2833,2849, -+ 2855,2861,2870,2878,2884,2892,2898,2905,2914,2922, -+ 2929,2935,2941,2951,2958,2964,2972,2981,2989,2995, -+ 3002,3008, -+}; -+static const int x86_64_syscall_s2i_i[] = { -+ 156,43,288,21,163,248,159,183,37,158, -+ 49,12,125,126,80,90,92,161,305,229, -+ 228,230,227,56,3,42,85,174,176,32, -+ 33,292,213,291,233,214,281,232,215,284, -+ 290,59,60,231,269,221,285,300,301,81, -+ 91,268,93,260,72,75,193,196,73,57, -+ 199,190,5,138,74,77,202,261,177,239, -+ 274,211,309,79,78,217,108,107,104,115, -+ 36,52,121,111,39,181,110,140,120,118, -+ 97,98,124,51,55,186,96,102,191,175, -+ 254,253,294,255,210,207,208,206,209,16, -+ 173,172,252,251,246,250,62,94,192,86, -+ 265,50,194,195,212,198,8,189,6,28, -+ 237,256,27,83,258,133,259,149,151,9, -+ 154,165,279,10,245,244,240,243,242,241, -+ 25,71,68,70,69,26,150,152,11,303, -+ 35,262,180,2,304,257,34,298,135,22, -+ 293,155,7,271,157,17,295,302,310,311, -+ 270,101,182,18,296,178,179,0,187,89, -+ 267,19,169,45,299,47,216,197,82,264, -+ 249,219,84,13,127,14,129,15,130,128, -+ 297,146,147,204,143,145,148,203,142,144, -+ 24,185,23,66,64,65,220,40,307,46, -+ 44,238,273,205,218,171,123,122,106,116, -+ 170,38,308,109,141,114,119,117,113,160, -+ 112,54,164,105,188,30,31,67,29,48, -+ 131,282,289,41,53,275,4,137,168,167, -+ 88,266,162,277,306,139,99,103,276,234, -+ 201,222,226,225,224,223,283,287,286,100, -+ 200,76,184,95,166,63,87,263,272,134, -+ 136,132,280,235,58,153,278,236,61,247, -+ 1,20, -+}; -+static int x86_64_syscall_s2i(const char *s, int *value) { -+ size_t len, i; -+ len = strlen(s); -+ { char copy[len + 1]; -+ for (i = 0; i < len; i++) { -+ char c = s[i]; -+ copy[i] = GT_ISUPPER(c) ? c - 'A' + 'a' : c; -+ } -+ copy[i] = 0; -+ return s2i__(x86_64_syscall_strings, x86_64_syscall_s2i_s, x86_64_syscall_s2i_i, 312, copy, value); -+ } -+} -+static const unsigned x86_64_syscall_i2s_direct[] = { -+ 1747,3002,1525,206,2628,565,1210,1611,1194,1295, -+ 1328,1468,86,1900,1927,1958,1046,1628,1710,1782, -+ 3008,23,1589,2212,2191,1408,1443,1244,1216,2556, -+ 2537,2543,254,258,1555,1493,740,64,2406,778, -+ 2250,2603,212,8,2276,1795,2268,1813,2563,81, -+ 1138,860,750,2610,2497,872,200,537,2958,374, -+ 381,2989,1104,2892,2226,2233,2219,2550,1422,1436, -+ 1429,1415,494,531,579,500,2861,585,687,680, -+ 104,455,1850,1252,1894,220,1126,2898,2655,1762, -+ 110,462,116,478,1109,2878,890,833,843,2707, -+ 2849,1695,903,2715,723,2521,2377,715,707,2422, -+ 793,770,2490,2471,2442,730,2384,2461,823,2451, -+ 813,762,2368,2359,853,90,97,1913,1985,1942, -+ 1971,2572,2935,1266,2922,1577,2929,2633,571,2701, -+ 801,2430,2157,2083,2172,2098,2019,2042,2117,1280, -+ 1449,1286,1457,2964,1300,1600,0,1622,70,43, -+ 2480,122,2673,30,2508,1311,2884,2648,2640,1788, -+ 2394,2345,1059,1052,226,919,240,611,1725,1738, -+ 1514,785,1702,52,2870,2203,883,1752,2528,1200, -+ 555,910,1116,510,1145,1155,520,1838,1181,542, -+ 2855,2733,595,2139,2065,2313,1027,1003,1014,1036, -+ 993,657,1166,268,305,342,1821,696,2329,1878, -+ 2239,407,2738,2795,2781,2764,2751,186,156,143, -+ 170,386,331,295,2726,2951,2981,1224,2283,627, -+ 1361,1398,1385,1369,1351,1337,1086,2995,35,1866, -+ 1097,1075,1064,949,931,976,1230,1548,1258,1272, -+ 485,601,1503,2905,1857,1131,2663,1771,469,397, -+ 1686,1616,2914,2297,641,2621,2722,2678,2972,1317, -+ 2941,319,2584,2809,357,417,2833,2817,15,2593, -+ 365,281,263,1594,962,1634,1717,2001,1561,1804, -+ 427,441,1641,1475,1530,129,2694,2259,2416,673, -+ 1651,1668, -+}; -+static const char *x86_64_syscall_i2s(int v) { -+ return i2s_direct__(x86_64_syscall_strings, x86_64_syscall_i2s_direct, 0, 311, v); -+} --- -1.7.11.7 - diff --git a/recipes-security/audit/audit-2.2.1/auditd b/recipes-security/audit/audit-2.2.1/auditd deleted file mode 100755 index fcd96c9..0000000 --- a/recipes-security/audit/audit-2.2.1/auditd +++ /dev/null @@ -1,153 +0,0 @@ -#! /bin/sh -### BEGIN INIT INFO -# Provides: auditd -# Required-Start: $local_fs -# Required-Stop: $local_fs -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Audit Daemon -# Description: Collects audit information from Linux 2.6 Kernels. -### END INIT INFO - -# Author: Philipp Matthias Hahn -# Based on Debians /etc/init.d/skeleton and Auditds init.d/auditd.init - -# June, 2012: Adopted for yocto - -# PATH should only include /usr/* if it runs after the mountnfs.sh script -PATH=/sbin:/bin:/usr/sbin:/usr/bin -DESC="audit daemon" -NAME=auditd -DAEMON=/sbin/auditd -PIDFILE=/var/run/"$NAME".pid -SCRIPTNAME=/etc/init.d/"$NAME" - -# Exit if the package is not installed -[ -x "$DAEMON" ] || exit 0 - -# Read configuration variable file if it is present -[ -r /etc/default/"$NAME" ] && . /etc/default/"$NAME" - -. /etc/default/rcS - -. /etc/init.d/functions - -# -# Function that starts the daemon/service -# -do_start() -{ - # Return - # 0 if daemon has been started - # 1 if daemon was already running - # 2 if daemon could not be started - start-stop-daemon -S --quiet --pidfile "$PIDFILE" --exec "$DAEMON" --test > /dev/null \ - || return 1 - start-stop-daemon -S --quiet --pidfile "$PIDFILE" --exec "$DAEMON" -- \ - $EXTRAOPTIONS \ - || return 2 - if [ -f /etc/audit/audit.rules ] - then - /sbin/auditctl -R /etc/audit/audit.rules >/dev/null - fi -} - -# -# Function that stops the daemon/service -# -do_stop() -{ - # Return - # 0 if daemon has been stopped - # 1 if daemon was already stopped - # 2 if daemon could not be stopped - # other if a failure occurred - start-stop-daemon -K --quiet --pidfile "$PIDFILE" --name "$NAME" - RETVAL="$?" - [ "$RETVAL" = 2 ] && return 2 - # Many daemons don't delete their pidfiles when they exit. - rm -f "$PIDFILE" - rm -f /var/run/audit_events - # Remove watches so shutdown works cleanly - case "$AUDITD_CLEAN_STOP" in - no|NO) ;; - *) /sbin/auditctl -D >/dev/null ;; - esac - return "$RETVAL" -} - -# -# Function that sends a SIGHUP to the daemon/service -# -do_reload() { - start-stop-daemon -K --signal HUP --quiet --pidfile $PIDFILE --name $NAME - return 0 -} - -if [ ! -e /var/log/audit ]; then - mkdir -p /var/log/audit - [ -x /sbin/restorecon ] && /sbin/restorecon -F /var/log/audit -fi - -case "$1" in - start) - [ "$VERBOSE" != no ] && echo "Starting $DESC" "$NAME" - do_start - case "$?" in - 0|1) [ "$VERBOSE" != no ] && echo 0 ;; - 2) [ "$VERBOSE" != no ] && echo 1 ;; - esac - ;; - stop) - [ "$VERBOSE" != no ] && echo "Stopping $DESC" "$NAME" - do_stop - case "$?" in - 0|1) [ "$VERBOSE" != no ] && echo 0 ;; - 2) [ "$VERBOSE" != no ] && echo 1 ;; - esac - ;; - reload|force-reload) - echo "Reloading $DESC" "$NAME" - do_reload - echo $? - ;; - restart) - echo "Restarting $DESC" "$NAME" - do_stop - case "$?" in - 0|1) - do_start - case "$?" in - 0) echo 0 ;; - 1) echo 1 ;; # Old process is still running - *) echo 1 ;; # Failed to start - esac - ;; - *) - # Failed to stop - echo 1 - ;; - esac - ;; - rotate) - echo "Rotating $DESC logs" "$NAME" - start-stop-daemon -K --signal USR1 --quiet --pidfile "$PIDFILE" --name "$NAME" - echo $? - ;; - status) - pidofproc "$DAEMON" >/dev/null - status=$? - if [ $status -eq 0 ]; then - echo "$NAME is running." - else - echo "$NAME is not running." - fi - exit $status - ;; - *) - echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|rotate|status}" >&2 - exit 3 - ;; -esac - -: diff --git a/recipes-security/audit/audit/audit-for-cross-compiling.patch b/recipes-security/audit/audit/audit-for-cross-compiling.patch index 812fdf7..9a62488 100644 --- a/recipes-security/audit/audit/audit-for-cross-compiling.patch +++ b/recipes-security/audit/audit/audit-for-cross-compiling.patch @@ -1,19 +1,22 @@ -From d4535ddce48f821a05cfa1409b7ff4611a09e84a Mon Sep 17 00:00:00 2001 -From: builder -Date: Wed, 21 Mar 2012 14:56:32 +0800 -Subject: [PATCH] audit: for cross-compiling. +Make dynamically generated files able to be generated in a cross environment ---- - auparse/Makefile.am | 26 ++++++++++++++++++++++++++ - configure.ac | 9 +++++++++ - lib/Makefile.am | 32 ++++++++++++++++++++++++++++++++ - 3 files changed, 67 insertions(+), 0 deletions(-) +We define a way to generate the specific files in a cross compile friendly +way. -diff --git a/auparse/Makefile.am b/auparse/Makefile.am -index ea2360d..eabaacf 100644 ---- a/auparse/Makefile.am -+++ b/auparse/Makefile.am -@@ -54,69 +54,95 @@ noinst_PROGRAMS = gen_captabs_h gen_clone-flagtabs_h gen_epoll_ctls_h \ +Signed-off-by: Mark Hatle + +Index: audit-2.3.2/auparse/Makefile.am +=================================================================== +--- audit-2.3.2.orig/auparse/Makefile.am ++++ audit-2.3.2/auparse/Makefile.am +@@ -71,185 +71,257 @@ noinst_PROGRAMS = gen_accesstabs_h gen_c + + gen_accesstabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h accesstab.h + gen_accesstabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="accesstab.h"' ++gen_accesstabs_h: $(gen_accesstabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_accesstabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + accesstabs.h: gen_accesstabs_h Makefile + ./gen_accesstabs_h --i2s-transtab access > $@ gen_captabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h captab.h gen_captabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="captab.h"' @@ -22,6 +25,13 @@ index ea2360d..eabaacf 100644 captabs.h: gen_captabs_h Makefile ./gen_captabs_h --i2s cap > $@ + gen_clock_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h clocktab.h + gen_clock_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="clocktab.h"' ++gen_clock_h: $(gen_clock_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_clock_h_CFLAGS) $(LDFLAGS) -o $@ $< + clocktabs.h: gen_clock_h Makefile + ./gen_clock_h --i2s clock > $@ + gen_clone_flagtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h \ clone-flagtab.h gen_clone_flagtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="clone-flagtab.h"' @@ -74,6 +84,41 @@ index ea2360d..eabaacf 100644 ipctabs.h: gen_ipctabs_h Makefile ./gen_ipctabs_h --i2s ipc > $@ + gen_ipccmdtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ipccmdtab.h + gen_ipccmdtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ipccmdtab.h"' ++gen_ipccmdtabs_h: $(gen_ipccmdtabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_ipccmdtabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + ipccmdtabs.h: gen_ipccmdtabs_h Makefile + ./gen_ipccmdtabs_h --i2s-transtab ipccmd > $@ + + gen_ipoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ipoptnametab.h + gen_ipoptnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ipoptnametab.h"' ++gen_ipoptnametabs_h: $(gen_ipoptnametabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_ipoptnametabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + ipoptnametabs.h: gen_ipoptnametabs_h Makefile + ./gen_ipoptnametabs_h --i2s ipoptname > $@ + + gen_ip6optnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ip6optnametab.h + gen_ip6optnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ip6optnametab.h"' ++gen_ip6optnametabs_h: $(gen_ip6optnametabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_ip6optnametabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + ip6optnametabs.h: gen_ip6optnametabs_h Makefile + ./gen_ip6optnametabs_h --i2s ip6optname > $@ + + gen_mmaptabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h mmaptab.h + gen_mmaptabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="mmaptab.h"' ++gen_mmaptabs_h: $(gen_mmaptabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_mmaptabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + mmaptabs.h: gen_mmaptabs_h Makefile + ./gen_mmaptabs_h --i2s-transtab mmap > $@ + + gen_mounttabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h mounttab.h + gen_mounttabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="mounttab.h"' ++gen_mounttabs_h: $(gen_mounttabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_mounttabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + mounttabs.h: gen_mounttabs_h Makefile + ./gen_mounttabs_h --i2s-transtab mount > $@ + gen_nfprototabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h nfprototab.h gen_nfprototabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="nfprototab.h"' +gen_nfprototabs_h: $(gen_nfprototabs_h_SOURCES) @@ -89,12 +134,103 @@ index ea2360d..eabaacf 100644 open-flagtabs.h: gen_open-flagtabs_h Makefile ./gen_open-flagtabs_h --i2s-transtab open_flag > $@ - gen_seeks_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h seek.h - gen_seeks_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="seek.h"' -+gen_seeks_h: $(gen_seeks_h_SOURCES) -+ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_seeks_h_CFLAGS) $(LDFLAGS) -o $@ $< - seeks.h: gen_seeks_h Makefile - ./gen_seeks_h --i2s seek > $@ + gen_persontabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h persontab.h + gen_persontabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="persontab.h"' ++gen_persontabs_h: $(gen_persontabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_persontabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + persontabs.h: gen_persontabs_h Makefile + ./gen_persontabs_h --i2s person > $@ + + gen_ptracetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ptracetab.h + gen_ptracetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="ptracetab.h"' ++gen_ptracetabs_h: $(gen_ptracetabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_ptracetabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + ptracetabs.h: gen_ptracetabs_h Makefile + ./gen_ptracetabs_h --i2s ptrace > $@ + + gen_prctl_opttabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h prctl-opt-tab.h + gen_prctl_opttabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="prctl-opt-tab.h"' ++gen_prctl_opttabs_h: $(gen_prctl_opttabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_prctl_opttabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + prctl_opttabs.h: gen_prctl_opttabs_h Makefile + ./gen_prctl_opttabs_h --i2s prctl_opt > $@ + + gen_pktoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h pktoptnametab.h + gen_pktoptnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="pktoptnametab.h"' ++gen_pktoptnametabs_h: $(gen_pktoptnametabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_pktoptnametabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + pktoptnametabs.h: gen_pktoptnametabs_h Makefile + ./gen_pktoptnametabs_h --i2s pktoptname > $@ + + gen_prottabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h prottab.h + gen_prottabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="prottab.h"' ++gen_prottabs_h: $(gen_prottabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_prottabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + prottabs.h: gen_prottabs_h Makefile + ./gen_prottabs_h --i2s-transtab prot > $@ + + gen_recvtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h recvtab.h + gen_recvtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="recvtab.h"' ++gen_recvtabs_h: $(gen_recvtabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_recvtabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + recvtabs.h: gen_recvtabs_h Makefile + ./gen_recvtabs_h --i2s-transtab recv > $@ + + gen_rlimit_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h rlimittab.h + gen_rlimit_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="rlimittab.h"' ++gen_rlimit_h: $(gen_rlimit_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_rlimit_h_CFLAGS) $(LDFLAGS) -o $@ $< + rlimittabs.h: gen_rlimit_h Makefile + ./gen_rlimit_h --i2s rlimit > $@ + + gen_schedtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h schedtab.h + gen_schedtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="schedtab.h"' ++gen_schedtabs_h: $(gen_schedtabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_schedtabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + schedtabs.h: gen_schedtabs_h Makefile + ./gen_schedtabs_h --i2s sched > $@ + + gen_seccomptabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h seccomptab.h + gen_seccomptabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="seccomptab.h"' ++gen_seccomptabs_h: $(gen_seccomptabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_seccomptabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + seccomptabs.h: gen_seccomptabs_h Makefile + ./gen_seccomptabs_h --i2s seccomp > $@ + + gen_seektabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h seektab.h + gen_seektabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="seektab.h"' ++gen_seektabs_h: $(gen_seektabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_seektabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + seektabs.h: gen_seektabs_h Makefile + ./gen_seektabs_h --i2s seek > $@ + + gen_shm_modetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h shm_modetab.h + gen_shm_modetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="shm_modetab.h"' ++gen_shm_modetabs_h: $(gen_shm_modetabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_shm_modetabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + shm_modetabs.h: gen_shm_modetabs_h Makefile + ./gen_shm_modetabs_h --i2s-transtab shm_mode > $@ + + gen_signals_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h signaltab.h + gen_signals_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="signaltab.h"' ++gen_signals_h: $(gen_signals_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_signals_h_CFLAGS) $(LDFLAGS) -o $@ $< + signaltabs.h: gen_signals_h Makefile + ./gen_signals_h --i2s signal > $@ + + gen_sockleveltabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h sockleveltab.h + gen_sockleveltabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="sockleveltab.h"' ++gen_sockleveltabs_h: $(gen_sockleveltabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_sockleveltabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + sockleveltabs.h: gen_sockleveltabs_h Makefile + ./gen_sockleveltabs_h --i2s socklevel > $@ + + gen_sockoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h sockoptnametab.h + gen_sockoptnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="sockoptnametab.h"' ++gen_sockoptnametabs_h: $(gen_sockoptnametabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_sockoptnametabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + sockoptnametabs.h: gen_sockoptnametabs_h Makefile + ./gen_sockoptnametabs_h --i2s sockoptname > $@ gen_socktabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h socktab.h gen_socktabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="socktab.h"' @@ -103,37 +239,39 @@ index ea2360d..eabaacf 100644 socktabs.h: gen_socktabs_h Makefile ./gen_socktabs_h --i2s sock > $@ + gen_socktypetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h socktypetab.h + gen_socktypetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="socktypetab.h"' ++gen_socktypetabs_h: $(gen_socktypetabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_socktypetabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + socktypetabs.h: gen_socktypetabs_h Makefile + ./gen_socktypetabs_h --i2s sock_type > $@ + + gen_tcpoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h tcpoptnametab.h + gen_tcpoptnametabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="tcpoptnametab.h"' ++gen_tcpoptnametabs_h: $(gen_tcpoptnametabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_tcpoptnametabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + tcpoptnametabs.h: gen_tcpoptnametabs_h Makefile + ./gen_tcpoptnametabs_h --i2s tcpoptname > $@ + gen_typetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h typetab.h gen_typetabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="typetab.h"' +gen_typetabs_h: $(gen_typetabs_h_SOURCES) + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_typetabs_h_CFLAGS) $(LDFLAGS) -o $@ $< typetabs.h: gen_typetabs_h Makefile ./gen_typetabs_h --s2i type > $@ -diff --git a/configure.ac b/configure.ac -index 3c2efb1..23a7d02 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -79,6 +79,15 @@ if test x"$GCC" = x"yes"; then - esac - fi -+if test -z "$CC_FOR_BUILD"; then -+ if test "x$cross_compiling" = "xno"; then -+ CC_FOR_BUILD='$(CC)' -+ else -+ CC_FOR_BUILD=gcc -+ fi -+fi -+AC_SUBST(CC_FOR_BUILD) -+ - #gssapi - AC_ARG_ENABLE(gssapi_krb5, - [AS_HELP_STRING([--enable-gssapi-krb5],[Enable GSSAPI Kerberos 5 support @<:@default=no@:>@])], -diff --git a/lib/Makefile.am b/lib/Makefile.am -index c5952f9..ad744c2 100644 ---- a/lib/Makefile.am -+++ b/lib/Makefile.am -@@ -60,12 +60,16 @@ noinst_PROGRAMS += gen_armeb_tables_h + gen_umounttabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h umounttab.h + gen_umounttabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="umounttab.h"' ++gen_umounttabs_h: $(gen_umounttabs_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../lib $(gen_umounttabs_h_CFLAGS) $(LDFLAGS) -o $@ $< + umounttabs.h: gen_umounttabs_h Makefile + ./gen_umounttabs_h --i2s-transtab umount > $@ + +Index: audit-2.3.2/lib/Makefile.am +=================================================================== +--- audit-2.3.2.orig/lib/Makefile.am ++++ audit-2.3.2/lib/Makefile.am +@@ -66,12 +66,16 @@ noinst_PROGRAMS += gen_aarch64_tables_h endif gen_actiontabs_h_SOURCES = gen_tables.c gen_tables.h actiontab.h gen_actiontabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="actiontab.h"' @@ -150,7 +288,7 @@ index c5952f9..ad744c2 100644 alpha_tables.h: gen_alpha_tables_h Makefile ./gen_alpha_tables_h --lowercase --i2s --s2i alpha_syscall > $@ endif -@@ -73,73 +77,101 @@ endif +@@ -79,6 +83,8 @@ endif if USE_ARMEB gen_armeb_tables_h_SOURCES = gen_tables.c gen_tables.h armeb_table.h gen_armeb_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="armeb_table.h"' @@ -159,6 +297,15 @@ index c5952f9..ad744c2 100644 armeb_tables.h: gen_armeb_tables_h Makefile ./gen_armeb_tables_h --lowercase --i2s --s2i armeb_syscall > $@ endif +@@ -86,73 +92,101 @@ endif + if USE_AARCH64 + gen_aarch64_tables_h_SOURCES = gen_tables.c gen_tables.h aarch64_table.h + gen_aarch64_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="aarch64_table.h"' ++gen_aarch64_tables_h: $(gen_aarch64_tables_h_SOURCES) ++ $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_aarch64_tables_h_CFLAGS) $(LDFLAGS) -o $@ $< + aarch64_tables.h: gen_aarch64_tables_h Makefile + ./gen_aarch64_tables_h --lowercase --i2s --s2i aarch64_syscall > $@ + endif gen_errtabs_h_SOURCES = gen_tables.c gen_tables.h errtab.h gen_errtabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="errtab.h"' @@ -252,6 +399,23 @@ index c5952f9..ad744c2 100644 + $(CC_FOR_BUILD) -DHAVE_CONFIG_H -I. -I.. -I../auparse $(gen_x86_64_tables_h_CFLAGS) $(LDFLAGS) -o $@ $< x86_64_tables.h: gen_x86_64_tables_h Makefile ./gen_x86_64_tables_h --lowercase --i2s --s2i x86_64_syscall > $@ --- -1.7.5.4 - +Index: audit-2.3.2/configure.ac +=================================================================== +--- audit-2.3.2.orig/configure.ac ++++ audit-2.3.2/configure.ac +@@ -79,6 +79,15 @@ if test x"$GCC" = x"yes"; then + esac + fi + ++if test -z "$CC_FOR_BUILD"; then ++ if test "x$cross_compiling" = "xno"; then ++ CC_FOR_BUILD='$(CC)' ++ else ++ CC_FOR_BUILD=gcc ++ fi ++fi ++AC_SUBST(CC_FOR_BUILD) ++ + AC_MSG_CHECKING(whether to create python bindings) + AC_ARG_WITH(python, + AS_HELP_STRING([--with-python],[enable building python bindings]), diff --git a/recipes-security/audit/audit/auditd b/recipes-security/audit/audit/auditd new file mode 100755 index 0000000..fcd96c9 --- /dev/null +++ b/recipes-security/audit/audit/auditd @@ -0,0 +1,153 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: auditd +# Required-Start: $local_fs +# Required-Stop: $local_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Audit Daemon +# Description: Collects audit information from Linux 2.6 Kernels. +### END INIT INFO + +# Author: Philipp Matthias Hahn +# Based on Debians /etc/init.d/skeleton and Auditds init.d/auditd.init + +# June, 2012: Adopted for yocto + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DESC="audit daemon" +NAME=auditd +DAEMON=/sbin/auditd +PIDFILE=/var/run/"$NAME".pid +SCRIPTNAME=/etc/init.d/"$NAME" + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/"$NAME" ] && . /etc/default/"$NAME" + +. /etc/default/rcS + +. /etc/init.d/functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon -S --quiet --pidfile "$PIDFILE" --exec "$DAEMON" --test > /dev/null \ + || return 1 + start-stop-daemon -S --quiet --pidfile "$PIDFILE" --exec "$DAEMON" -- \ + $EXTRAOPTIONS \ + || return 2 + if [ -f /etc/audit/audit.rules ] + then + /sbin/auditctl -R /etc/audit/audit.rules >/dev/null + fi +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon -K --quiet --pidfile "$PIDFILE" --name "$NAME" + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f "$PIDFILE" + rm -f /var/run/audit_events + # Remove watches so shutdown works cleanly + case "$AUDITD_CLEAN_STOP" in + no|NO) ;; + *) /sbin/auditctl -D >/dev/null ;; + esac + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + start-stop-daemon -K --signal HUP --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +if [ ! -e /var/log/audit ]; then + mkdir -p /var/log/audit + [ -x /sbin/restorecon ] && /sbin/restorecon -F /var/log/audit +fi + +case "$1" in + start) + [ "$VERBOSE" != no ] && echo "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && echo 0 ;; + 2) [ "$VERBOSE" != no ] && echo 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && echo "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && echo 0 ;; + 2) [ "$VERBOSE" != no ] && echo 1 ;; + esac + ;; + reload|force-reload) + echo "Reloading $DESC" "$NAME" + do_reload + echo $? + ;; + restart) + echo "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) echo 0 ;; + 1) echo 1 ;; # Old process is still running + *) echo 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + echo 1 + ;; + esac + ;; + rotate) + echo "Rotating $DESC logs" "$NAME" + start-stop-daemon -K --signal USR1 --quiet --pidfile "$PIDFILE" --name "$NAME" + echo $? + ;; + status) + pidofproc "$DAEMON" >/dev/null + status=$? + if [ $status -eq 0 ]; then + echo "$NAME is running." + else + echo "$NAME is not running." + fi + exit $status + ;; + *) + echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|rotate|status}" >&2 + exit 3 + ;; +esac + +: diff --git a/recipes-security/audit/audit/disable-ldap.patch b/recipes-security/audit/audit/disable-ldap.patch index a1b0b93..1d683c2 100644 --- a/recipes-security/audit/audit/disable-ldap.patch +++ b/recipes-security/audit/audit/disable-ldap.patch @@ -6,9 +6,10 @@ Disable LDAP support Signed-off-by: Mark Hatle -diff -ur audit-2.1.3.orig/audisp/plugins/Makefile.am audit-2.1.3/audisp/plugins/Makefile.am ---- audit-2.1.3.orig/audisp/plugins/Makefile.am 2011-08-15 12:30:59.000000000 -0500 -+++ audit-2.1.3/audisp/plugins/Makefile.am 2012-01-30 12:04:19.986834936 -0600 +Index: audit-2.3.2/audisp/plugins/Makefile.am +=================================================================== +--- audit-2.3.2.orig/audisp/plugins/Makefile.am ++++ audit-2.3.2/audisp/plugins/Makefile.am @@ -22,8 +22,10 @@ CONFIG_CLEAN_FILES = *.loT *.rej *.orig @@ -22,10 +23,11 @@ diff -ur audit-2.1.3.orig/audisp/plugins/Makefile.am audit-2.1.3/audisp/plugins/ if HAVE_PRELUDE SUBDIRS += prelude endif -diff -ur audit-2.1.3.orig/configure.ac audit-2.1.3/configure.ac ---- audit-2.1.3.orig/configure.ac 2011-08-15 12:30:58.000000000 -0500 -+++ audit-2.1.3/configure.ac 2012-01-30 12:09:54.933961471 -0600 -@@ -181,6 +181,12 @@ +Index: audit-2.3.2/configure.ac +=================================================================== +--- audit-2.3.2.orig/configure.ac ++++ audit-2.3.2/configure.ac +@@ -241,6 +241,12 @@ else fi AM_CONDITIONAL(HAVE_PRELUDE, test x$have_prelude = xyes) @@ -38,17 +40,20 @@ diff -ur audit-2.1.3.orig/configure.ac audit-2.1.3/configure.ac AC_MSG_CHECKING(whether to use libwrap) AC_ARG_WITH(libwrap, [ --with-libwrap[=PATH] Compile in libwrap (tcp_wrappers) support.], -diff -ur audit-2.1.3.orig/docs/Makefile.am audit-2.1.3/docs/Makefile.am ---- audit-2.1.3.orig/docs/Makefile.am 2011-08-15 12:31:01.000000000 -0500 -+++ audit-2.1.3/docs/Makefile.am 2012-01-30 12:05:49.352834294 -0600 -@@ -53,6 +53,8 @@ +Index: audit-2.3.2/docs/Makefile.am +=================================================================== +--- audit-2.3.2.orig/docs/Makefile.am ++++ audit-2.3.2/docs/Makefile.am +@@ -53,7 +53,9 @@ ausearch_add_expression.3 ausearch_add_t ausearch_clear.3 \ ausearch_next_event.3 ausearch_set_stop.3 \ autrace.8 get_auditfail_action.3 set_aumessage_mode.3 \ -audispd.8 audispd.conf.5 audispd-zos-remote.8 libaudit.conf.5 \ +-augenrules.8 \ -zos-remote.conf.5 -+audispd.8 audispd.conf.5 libaudit.conf.5 ++audispd.8 audispd.conf.5 libaudit.conf.5 \ ++augenrules.8 +if HAVE_LDAP -+man_MANS += audispd-zos-remote.8 zos-remote.conf.5 ++man_MANS += audispd-zos-remote.8 zos-remote.conf.5 +endif diff --git a/recipes-security/audit/audit_2.1.3.bb b/recipes-security/audit/audit_2.1.3.bb deleted file mode 100644 index 4cd7554..0000000 --- a/recipes-security/audit/audit_2.1.3.bb +++ /dev/null @@ -1,58 +0,0 @@ -SUMMARY = "User space tools for kernel auditing" -DESCRIPTION = "The audit package contains the user space utilities for \ -storing and searching the audit records generated by the audit subsystem \ -in the Linux kernel." -HOMEPAGE = "http://people.redhat.com/sgrubb/audit/" -SECTION = "base" -PR = "r2" -LICENSE = "GPLv2+ & LGPLv2+" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" - -SRC_URI = "http://people.redhat.com/sgrubb/audit/audit-2.1.3.tar.gz \ - file://disable-ldap.patch \ - file://audit-python.patch" - -SRC_URI += "file://audit-for-cross-compiling.patch \ - file://fix-swig-host-contamination.patch" - -inherit autotools pythonnative - -SRC_URI[md5sum] = "abf26e3ac09f666905c5636dd24611fa" -SRC_URI[sha256sum] = "1c61858d8ed299128aa6bd8e85bac758bfe33e61358d259e52acb7d961fee90e" - -DEPENDS += "python tcp-wrappers libcap-ng linux-libc-headers (>= 2.6.30)" - -EXTRA_OECONF += "--without-prelude --with-libwrap --enable-gssapi-krb5=no --disable-ldap --with-libcap-ng=yes" - -EXTRA_OEMAKE += "PYLIBVER='python${PYTHON_BASEVERSION}' PYINC='${STAGING_INCDIR}/$(PYLIBVER)' STDINC='${STAGING_INCDIR}'" - -SUMMARY_audispd-plugins = "Plugins for the audit event dispatcher" -DESCRIPTION_audispd-plugins = "The audispd-plugins package provides plugins for the real-time \ -interface to the audit system, audispd. These plugins can do things \ -like relay events to remote machines or analyze events for suspicious \ -behavior." - -PACKAGES =+ "audispd-plugins ${PN}-libs" -PACKAGES += "${PN}-python" - -FILES_${PN}-libs += "${sysconfdir}/libaudit.conf ${libdir}/libaudit.so.1* ${libdir}/libauparse.so.*" -FILES_${PN} += "${bindir} ${sbindir}" -FILES_audispd-plugins += "${sysconfdir}/audisp ${sbindir}/audisp*" -FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug" -FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}" - - -# The executables in lib/, which are named as gen_*_h, will run on the hosts to create -# *_tables.h/*tabs.h header files for the targets. -# In some old hosts, build will fail because audit.h in the old linux-libc-headers (<= 2.6.29) -# has a incomplete netlink message list for the audit system. -do_compile_prepend() { - mkdir -p ${S}/lib/linux - cp -f ${STAGING_INCDIR}/linux/audit.h ${S}/lib/linux/ - cp -f ${STAGING_INCDIR}/linux/elf-em.h ${S}/lib/linux/ -} - -do_install_append() { - rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.a - rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.la -} diff --git a/recipes-security/audit/audit_2.2.1.bb b/recipes-security/audit/audit_2.2.1.bb deleted file mode 100644 index 0bce60b..0000000 --- a/recipes-security/audit/audit_2.2.1.bb +++ /dev/null @@ -1,79 +0,0 @@ -SUMMARY = "User space tools for kernel auditing" -DESCRIPTION = "The audit package contains the user space utilities for \ -storing and searching the audit records generated by the audit subsystem \ -in the Linux kernel." -HOMEPAGE = "http://people.redhat.com/sgrubb/audit/" -SECTION = "base" -PR = "r8" -LICENSE = "GPLv2+ & LGPLv2+" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" - -SRC_URI = "http://people.redhat.com/sgrubb/audit/audit-${PV}.tar.gz \ - file://disable-ldap.patch \ - file://audit-python.patch" - -SRC_URI += "\ - file://audit-python-configure.patch \ - file://audit-cross-compiling.patch \ - file://auditd \ - file://fix-swig-host-contamination.patch" - -inherit autotools pythonnative update-rc.d - -UPDATERCPN = "auditd" -INITSCRIPT_NAME = "auditd" -INITSCRIPT_PARAMS = "defaults" - -SRC_URI[md5sum] = "dc099fcb2f9242d47ecc35b46d71dfd1" -SRC_URI[sha256sum] = "9865ca89f5b975ccf25441ddf45a874448f2bba944005aa8cd5e3c3148713a63" - -DEPENDS += "python tcp-wrappers libcap-ng linux-libc-headers (>= 2.6.30)" - -EXTRA_OECONF += "--without-prelude \ - --with-libwrap \ - --enable-gssapi-krb5=no \ - --disable-ldap \ - --with-libcap-ng=yes \ - --with-python=yes \ - --libdir=${base_libdir} \ - --sbindir=${base_sbindir} \ - " - -EXTRA_OEMAKE += "PYLIBVER='python${PYTHON_BASEVERSION}' \ - PYINC='${STAGING_INCDIR}/$(PYLIBVER)' \ - pyexecdir=${libdir}/python${PYTHON_BASEVERSION}/site-packages \ - STDINC='${STAGING_INCDIR}' \ - " - -SUMMARY_audispd-plugins = "Plugins for the audit event dispatcher" -DESCRIPTION_audispd-plugins = "The audispd-plugins package provides plugins for the real-time \ -interface to the audit system, audispd. These plugins can do things \ -like relay events to remote machines or analyze events for suspicious \ -behavior." - -PACKAGES =+ "audispd-plugins" -PACKAGES += "auditd ${PN}-python" - -FILES_${PN} = "${sysconfdir}/libaudit.conf ${base_libdir}/libaudit.so.1* ${base_libdir}/libauparse.so.*" -FILES_auditd += "${bindir}/* ${base_sbindir}/* ${sysconfdir}/*" -FILES_audispd-plugins += "${sysconfdir}/audisp/audisp-remote.conf \ - ${sysconfdir}/audisp/plugins.d/au-remote.conf \ - ${sbindir}/audisp-remote ${localstatedir}/spool/audit \ - " -FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug" -FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}" -FILES_${PN}-dev += "${base_libdir}/*.so ${base_libdir}/*.la" - -do_install_append() { - rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.a - rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.la - - # reuse auditd config - [ ! -e ${D}/etc/default ] && mkdir ${D}/etc/default - mv ${D}/etc/sysconfig/auditd ${D}/etc/default - rmdir ${D}/etc/sysconfig/ - - # replace init.d - install -D -m 0755 ${S}/../auditd ${D}/etc/init.d/auditd - rm -rf ${D}/etc/rc.d -} diff --git a/recipes-security/audit/audit_2.3.2.bb b/recipes-security/audit/audit_2.3.2.bb new file mode 100644 index 0000000..bd7b4eb --- /dev/null +++ b/recipes-security/audit/audit_2.3.2.bb @@ -0,0 +1,77 @@ +SUMMARY = "User space tools for kernel auditing" +DESCRIPTION = "The audit package contains the user space utilities for \ +storing and searching the audit records generated by the audit subsystem \ +in the Linux kernel." +HOMEPAGE = "http://people.redhat.com/sgrubb/audit/" +SECTION = "base" +PR = "r8" +LICENSE = "GPLv2+ & LGPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" + +SRC_URI = "http://people.redhat.com/sgrubb/audit/audit-${PV}.tar.gz \ + file://disable-ldap.patch \ + file://audit-python.patch \ + file://audit-python-configure.patch \ + file://audit-for-cross-compiling.patch \ + file://auditd \ + file://fix-swig-host-contamination.patch" + +inherit autotools pythonnative update-rc.d + +UPDATERCPN = "auditd" +INITSCRIPT_NAME = "auditd" +INITSCRIPT_PARAMS = "defaults" + +SRC_URI[md5sum] = "4e8d065b5cc16b77b9b61e93a9ed160e" +SRC_URI[sha256sum] = "8872e0b5392888789061db8034164305ef0e1b34543e1e7004d275f039081d29" + +DEPENDS += "python tcp-wrappers libcap-ng linux-libc-headers (>= 2.6.30)" + +EXTRA_OECONF += "--without-prelude \ + --with-libwrap \ + --enable-gssapi-krb5=no \ + --disable-ldap \ + --with-libcap-ng=yes \ + --with-python=yes \ + --libdir=${base_libdir} \ + --sbindir=${base_sbindir} \ + " + +EXTRA_OEMAKE += "PYLIBVER='python${PYTHON_BASEVERSION}' \ + PYINC='${STAGING_INCDIR}/$(PYLIBVER)' \ + pyexecdir=${libdir}/python${PYTHON_BASEVERSION}/site-packages \ + STDINC='${STAGING_INCDIR}' \ + " + +SUMMARY_audispd-plugins = "Plugins for the audit event dispatcher" +DESCRIPTION_audispd-plugins = "The audispd-plugins package provides plugins for the real-time \ +interface to the audit system, audispd. These plugins can do things \ +like relay events to remote machines or analyze events for suspicious \ +behavior." + +PACKAGES =+ "audispd-plugins" +PACKAGES += "auditd ${PN}-python" + +FILES_${PN} = "${sysconfdir}/libaudit.conf ${base_libdir}/libaudit.so.1* ${base_libdir}/libauparse.so.*" +FILES_auditd += "${bindir}/* ${base_sbindir}/* ${sysconfdir}/*" +FILES_audispd-plugins += "${sysconfdir}/audisp/audisp-remote.conf \ + ${sysconfdir}/audisp/plugins.d/au-remote.conf \ + ${sbindir}/audisp-remote ${localstatedir}/spool/audit \ + " +FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug" +FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}" +FILES_${PN}-dev += "${base_libdir}/*.so ${base_libdir}/*.la" + +do_install_append() { + rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.a + rm -f ${D}/${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.la + + # reuse auditd config + [ ! -e ${D}/etc/default ] && mkdir ${D}/etc/default + mv ${D}/etc/sysconfig/auditd ${D}/etc/default + rmdir ${D}/etc/sysconfig/ + + # replace init.d + install -D -m 0755 ${S}/../auditd ${D}/etc/init.d/auditd + rm -rf ${D}/etc/rc.d +} -- cgit v1.2.3-54-g00ecf