AUDIT=y build failure on ARM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I get the build failure below with AUDIT=y on ARM.  The problem is
that lib/audit.c includes asm-generic/audit_dir_write.h which lists a
number of syscalls that are not defined on ARM (and some other platforms).

What's the right fix for this?  I don't think I saw this problem with
2.6.18-rc7 but on the other hand I cannot see any relevant changes
since then.

The failure is:

  CC      lib/audit.o
In file included from lib/audit.c:7:
include/asm-generic/audit_dir_write.h:9: error: '__NR_mkdirat' undeclared here (not in a function)
include/asm-generic/audit_dir_write.h:10: error: '__NR_mknodat' undeclared here (not in a function)
include/asm-generic/audit_dir_write.h:11: error: '__NR_unlinkat' undeclared here (not in a function)
include/asm-generic/audit_dir_write.h:12: error: '__NR_renameat' undeclared here (not in a function)
include/asm-generic/audit_dir_write.h:13: error: '__NR_linkat' undeclared here (not in a function)
include/asm-generic/audit_dir_write.h:14: error: '__NR_symlinkat' undeclared here (not in a function)
...
In file included from lib/audit.c:22:
include/asm-generic/audit_change_attr.h:12: error: '__NR_fchownat' undeclared here (not in a function)
include/asm-generic/audit_change_attr.h:12: error: initializer element is not constant
include/asm-generic/audit_change_attr.h:12: error: (near initialization for 'chattr_class[11]')
include/asm-generic/audit_change_attr.h:13: error: '__NR_fchmodat' undeclared here (not in a function)
include/asm-generic/audit_change_attr.h:13: error: initializer element is not constant
include/asm-generic/audit_change_attr.h:13: error: (near initialization for 'chattr_class[12]')
lib/audit.c: In function 'audit_classify_syscall':
lib/audit.c:31: error: '__NR_openat' undeclared (first use in this function)
lib/audit.c:31: error: (Each undeclared identifier is reported only once
lib/audit.c:31: error: for each function it appears in.)
make[5]: *** [lib/audit.o] Error 1

-- 
Martin Michlmayr
http://www.cyrius.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux