@@ -162,7 +162,7 @@
#undef WITH_APPARMOR
/* Define if you want to enable Arm eabi processor support. */
-#undef WITH_ARMEB
+#undef WITH_ARM
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
@@ -642,8 +642,8 @@ HAVE_PRELUDE_FALSE
HAVE_PRELUDE_TRUE
USE_AARCH64_FALSE
USE_AARCH64_TRUE
-USE_ARMEB_FALSE
-USE_ARMEB_TRUE
+USE_ARM_FALSE
+USE_ARM_TRUE
USE_ALPHA_FALSE
USE_ALPHA_TRUE
DEBUG_FALSE
@@ -13614,15 +13614,15 @@ fi
if test x$use_armeb != xno ; then
-$as_echo "#define WITH_ARMEB 1" >>confdefs.h
+$as_echo "#define WITH_ARM 1" >>confdefs.h
fi
if test x$use_armeb = xyes; then
- USE_ARMEB_TRUE=
- USE_ARMEB_FALSE='#'
+ USE_ARM_TRUE=
+ USE_ARM_FALSE='#'
else
- USE_ARMEB_TRUE='#'
- USE_ARMEB_FALSE=
+ USE_ARM_TRUE='#'
+ USE_ARM_FALSE=
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_armeb" >&5
@@ -14258,8 +14258,8 @@ if test -z "${USE_ALPHA_TRUE}" && test -z "${USE_ALPHA_FALSE}"; then
as_fn_error $? "conditional \"USE_ALPHA\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
-if test -z "${USE_ARMEB_TRUE}" && test -z "${USE_ARMEB_FALSE}"; then
- as_fn_error $? "conditional \"USE_ARMEB\" was never defined.
+if test -z "${USE_ARM_TRUE}" && test -z "${USE_ARM_FALSE}"; then
+ as_fn_error $? "conditional \"USE_ARM\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_AARCH64_TRUE}" && test -z "${USE_AARCH64_FALSE}"; then
@@ -196,9 +196,9 @@ AS_HELP_STRING([--with-armeb],[enable Arm eabi processor support]),
use_armeb=$withval,
use_armeb=no)
if test x$use_armeb != xno ; then
- AC_DEFINE(WITH_ARMEB,1,[Define if you want to enable Arm eabi processor support.])
+ AC_DEFINE(WITH_ARM,1,[Define if you want to enable Arm eabi processor support.])
fi
-AM_CONDITIONAL(USE_ARMEB, test x$use_armeb = xyes)
+AM_CONDITIONAL(USE_ARM, test x$use_armeb = xyes)
AC_MSG_RESULT($use_armeb)
AC_MSG_CHECKING(whether to include aarch64 processor support)
@@ -49,7 +49,7 @@ BUILT_SOURCES = actiontabs.h errtabs.h fieldtabs.h flagtabs.h \
if USE_ALPHA
BUILT_SOURCES += alpha_tables.h gen_alpha_tables_h
endif
-if USE_ARMEB
+if USE_ARM
BUILT_SOURCES += armeb_tables.h gen_armeb_tables_h
endif
if USE_AARCH64
@@ -68,7 +68,7 @@ alpha_tables.h: gen_alpha_tables_h Makefile
$(PYTHON) gen_tables.py --lowercase --i2s --s2i alpha_syscall gen_alpha_tables_h $@
endif
-if USE_ARMEB
+if USE_ARM
gen_armeb_tables_h: gen_tables.c gen_tables.h armeb_table.h
$(CC) $(INCLUDES) $(AM_CFLAGS) $(CFLAGS) -DTABLE_H=\"armeb_table.h\" -E -o $@ gen_tables.c
armeb_tables.h: gen_armeb_tables_h Makefile
@@ -104,7 +104,7 @@ build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
@USE_ALPHA_TRUE@am__append_1 = alpha_tables.h
-@USE_ARMEB_TRUE@am__append_2 = armeb_tables.h
+@USE_ARM_TRUE@am__append_2 = armeb_tables.h
@USE_AARCH64_TRUE@am__append_3 = aarch64_tables.h
noinst_PROGRAMS = gen_actiontabs_h$(EXEEXT) gen_errtabs_h$(EXEEXT) \
gen_fieldtabs_h$(EXEEXT) gen_flagtabs_h$(EXEEXT) \
@@ -115,7 +115,7 @@ noinst_PROGRAMS = gen_actiontabs_h$(EXEEXT) gen_errtabs_h$(EXEEXT) \
gen_s390x_tables_h$(EXEEXT) gen_x86_64_tables_h$(EXEEXT) \
$(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3)
@USE_ALPHA_TRUE@am__append_4 = gen_alpha_tables_h
-@USE_ARMEB_TRUE@am__append_5 = gen_armeb_tables_h
+@USE_ARM_TRUE@am__append_5 = gen_armeb_tables_h
@USE_AARCH64_TRUE@am__append_6 = gen_aarch64_tables_h
subdir = lib
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
@@ -175,7 +175,7 @@ libaudit_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(libaudit_la_LDFLAGS) $(LDFLAGS) -o $@
@USE_ALPHA_TRUE@am__EXEEXT_1 = gen_alpha_tables_h$(EXEEXT)
-@USE_ARMEB_TRUE@am__EXEEXT_2 = gen_armeb_tables_h$(EXEEXT)
+@USE_ARM_TRUE@am__EXEEXT_2 = gen_armeb_tables_h$(EXEEXT)
@USE_AARCH64_TRUE@am__EXEEXT_3 = gen_aarch64_tables_h$(EXEEXT)
PROGRAMS = $(noinst_PROGRAMS)
am__gen_aarch64_tables_h_SOURCES_DIST = gen_tables.c gen_tables.h \
@@ -207,8 +207,8 @@ gen_alpha_tables_h_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
$(LDFLAGS) -o $@
am__gen_armeb_tables_h_SOURCES_DIST = gen_tables.c gen_tables.h \
armeb_table.h
-@USE_ARMEB_TRUE@am_gen_armeb_tables_h_OBJECTS = \
-@USE_ARMEB_TRUE@ gen_armeb_tables_h-gen_tables.$(OBJEXT)
+@USE_ARM_TRUE@am_gen_armeb_tables_h_OBJECTS = \
+@USE_ARM_TRUE@ gen_armeb_tables_h-gen_tables.$(OBJEXT)
gen_armeb_tables_h_OBJECTS = $(am_gen_armeb_tables_h_OBJECTS)
gen_armeb_tables_h_LDADD = $(LDADD)
gen_armeb_tables_h_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
@@ -591,8 +591,8 @@ gen_actiontabs_h_SOURCES = gen_tables.c gen_tables.h actiontab.h
gen_actiontabs_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="actiontab.h"'
@USE_ALPHA_TRUE@gen_alpha_tables_h_SOURCES = gen_tables.c gen_tables.h alpha_table.h
@USE_ALPHA_TRUE@gen_alpha_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="alpha_table.h"'
-@USE_ARMEB_TRUE@gen_armeb_tables_h_SOURCES = gen_tables.c gen_tables.h armeb_table.h
-@USE_ARMEB_TRUE@gen_armeb_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="armeb_table.h"'
+@USE_ARM_TRUE@gen_armeb_tables_h_SOURCES = gen_tables.c gen_tables.h armeb_table.h
+@USE_ARM_TRUE@gen_armeb_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="armeb_table.h"'
@USE_AARCH64_TRUE@gen_aarch64_tables_h_SOURCES = gen_tables.c gen_tables.h aarch64_table.h
@USE_AARCH64_TRUE@gen_aarch64_tables_h_CFLAGS = $(AM_CFLAGS) '-DTABLE_H="aarch64_table.h"'
gen_errtabs_h_SOURCES = gen_tables.c gen_tables.h errtab.h
@@ -1379,8 +1379,8 @@ actiontabs.h: gen_actiontabs_h Makefile
./gen_actiontabs_h --lowercase --i2s --s2i action > $@
@USE_ALPHA_TRUE@alpha_tables.h: gen_alpha_tables_h Makefile
@USE_ALPHA_TRUE@ ./gen_alpha_tables_h --lowercase --i2s --s2i alpha_syscall > $@
-@USE_ARMEB_TRUE@armeb_tables.h: gen_armeb_tables_h Makefile
-@USE_ARMEB_TRUE@ ./gen_armeb_tables_h --lowercase --i2s --s2i armeb_syscall > $@
+@USE_ARM_TRUE@armeb_tables.h: gen_armeb_tables_h Makefile
+@USE_ARM_TRUE@ ./gen_armeb_tables_h --lowercase --i2s --s2i armeb_syscall > $@
@USE_AARCH64_TRUE@aarch64_tables.h: gen_aarch64_tables_h Makefile
@USE_AARCH64_TRUE@ ./gen_aarch64_tables_h --lowercase --i2s --s2i aarch64_syscall > $@
errtabs.h: gen_errtabs_h Makefile
@@ -1328,8 +1328,8 @@ int audit_rule_fieldpair_data(struct audit_rule_data **rulep, const char *pair,
if (bits == __AUDIT_ARCH_64BIT)
return -6;
break;
-#ifdef WITH_ARMEB
- case MACH_ARMEB:
+#ifdef WITH_ARM
+ case MACH_ARM:
if (bits == __AUDIT_ARCH_64BIT)
return -6;
break;
@@ -416,7 +416,7 @@ typedef enum {
MACH_S390X,
MACH_S390,
MACH_ALPHA,
- MACH_ARMEB,
+ MACH_ARM,
MACH_AARCH64
} machine_t;
@@ -38,7 +38,7 @@
#ifdef WITH_ALPHA
#include "alpha_tables.h"
#endif
-#ifdef WITH_ARMEB
+#ifdef WITH_ARM
#include "armeb_tables.h"
#endif
#ifdef WITH_AARCH64
@@ -76,8 +76,8 @@ static const struct int_transtab elftab[] = {
#ifdef WITH_ALPHA
{ MACH_ALPHA, AUDIT_ARCH_ALPHA },
#endif
-#ifdef WITH_ARMEB
- { MACH_ARMEB, AUDIT_ARCH_ARMEB },
+#ifdef WITH_ARM
+ { MACH_ARM, AUDIT_ARCH_ARM },
#endif
#ifdef WITH_AARCH64
{ MACH_AARCH64, AUDIT_ARCH_AARCH64},
@@ -137,8 +137,8 @@ int audit_name_to_syscall(const char *sc, int machine)
found = alpha_syscall_s2i(sc, &res);
break;
#endif
-#ifdef WITH_ARMEB
- case MACH_ARMEB:
+#ifdef WITH_ARM
+ case MACH_ARM:
found = armeb_syscall_s2i(sc, &res);
break;
#endif
@@ -179,8 +179,8 @@ const char *audit_syscall_to_name(int sc, int machine)
case MACH_ALPHA:
return alpha_syscall_i2s(sc);
#endif
-#ifdef WITH_ARMEB
- case MACH_ARMEB:
+#ifdef WITH_ARM
+ case MACH_ARM:
return armeb_syscall_i2s(sc);
#endif
#ifdef WITH_AARCH64
@@ -33,12 +33,12 @@ _S(MACH_S390, "s390" )
#ifdef WITH_ALPHA
_S(MACH_ALPHA, "alpha" )
#endif
-#ifdef WITH_ARMEB
-_S(MACH_ARMEB, "armeb" )
-_S(MACH_ARMEB, "armv5tejl")
-_S(MACH_ARMEB, "armv5tel")
-_S(MACH_ARMEB, "armv6l")
-_S(MACH_ARMEB, "armv7l")
+#ifdef WITH_ARM
+_S(MACH_ARM, "armeb" )
+_S(MACH_ARM, "armv5tejl")
+_S(MACH_ARM, "armv5tel")
+_S(MACH_ARM, "armv6l")
+_S(MACH_ARM, "armv7l")
#endif
#ifdef WITH_AARCH64
_S(MACH_AARCH64, "aarch64" )
@@ -137,7 +137,7 @@ test_alpha_table(void)
}
#endif
-#ifdef WITH_ARMEB
+#ifdef WITH_ARM
static void
test_armeb_table(void)
{
@@ -146,8 +146,8 @@ test_armeb_table(void)
};
printf("Testing armeb_table...\n");
-#define I2S(I) audit_syscall_to_name((I), MACH_ARMEB)
-#define S2I(S) audit_name_to_syscall((S), MACH_ARMEB)
+#define I2S(I) audit_syscall_to_name((I), MACH_ARM)
+#define S2I(S) audit_name_to_syscall((S), MACH_ARM)
TEST_I2S(0);
TEST_S2I(-1);
#undef I2S
@@ -406,7 +406,7 @@ main(void)
#ifdef WITH_ALPHA
test_alpha_table();
#endif
-#ifdef WITH_ARMEB
+#ifdef WITH_ARM
test_armeb_table();
#endif
#ifdef WITH_AARCH64
@@ -695,7 +695,7 @@ MACH_PPC = _audit.MACH_PPC
MACH_S390X = _audit.MACH_S390X
MACH_S390 = _audit.MACH_S390
MACH_ALPHA = _audit.MACH_ALPHA
-MACH_ARMEB = _audit.MACH_ARMEB
+MACH_ARM = _audit.MACH_ARM
MACH_AARCH64 = _audit.MACH_AARCH64
FAIL_IGNORE = _audit.FAIL_IGNORE
FAIL_LOG = _audit.FAIL_LOG
@@ -71,7 +71,7 @@ int main(int argc, char *argv[])
stderr);
exit(1);
#endif
-#ifndef WITH_ARMEB
+#ifndef WITH_ARM
} else if (strcmp("armeb", argv[i]) == 0) {
fputs("Arm eabi processor support is not enabled\n",
stderr);
On ARM, endianness doesn't make any differences on auditing. See: http://permalink.gmane.org/gmane.linux.ports.arm.kernel/165266 Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- config.h.in | 2 +- configure | 18 +++++++++--------- configure.ac | 4 ++-- lib/Makefile.am | 4 ++-- lib/Makefile.in | 18 +++++++++--------- lib/libaudit.c | 4 ++-- lib/libaudit.h | 2 +- lib/lookup_table.c | 14 +++++++------- lib/machinetab.h | 12 ++++++------ lib/test/lookup_test.c | 8 ++++---- swig/audit.py | 2 +- tools/ausyscall/ausyscall.c | 2 +- 12 files changed, 45 insertions(+), 45 deletions(-)