]>
Commit | Line | Data |
---|---|---|
1dc8b4bb MK |
1 | diff -ur audit-2.8.5.orig/auparse/interpret.c audit-2.8.5/auparse/interpret.c |
2 | --- audit-2.8.5.orig/auparse/interpret.c 2019-03-01 21:19:13.000000000 +0100 | |
3 | +++ audit-2.8.5/auparse/interpret.c 2022-04-02 20:34:04.713548373 +0200 | |
4 | @@ -44,8 +44,10 @@ | |
5 | #include <linux/ax25.h> | |
6 | #include <linux/atm.h> | |
7 | #include <linux/x25.h> | |
8 | -#include <linux/if.h> // FIXME: remove when ipx.h is fixed | |
9 | -#include <linux/ipx.h> | |
10 | +#ifdef HAVE_IPX_HEADERS | |
11 | + #include <linux/if.h> // FIXME: remove when ipx.h is fixed | |
12 | + #include <linux/ipx.h> | |
13 | +#endif | |
14 | #include <linux/capability.h> | |
15 | #include <sys/personality.h> | |
16 | #include <sys/prctl.h> | |
17 | @@ -1151,6 +1153,7 @@ | |
18 | x->sax25_call.ax25_call[6]); | |
19 | } | |
20 | break; | |
21 | +#ifdef HAVE_IPX_HEADERS | |
22 | case AF_IPX: | |
23 | { | |
24 | const struct sockaddr_ipx *ip = | |
25 | @@ -1160,6 +1163,7 @@ | |
26 | str, ip->sipx_port, ip->sipx_network); | |
27 | } | |
28 | break; | |
29 | +#endif | |
30 | case AF_ATMPVC: | |
31 | { | |
32 | const struct sockaddr_atmpvc* at = | |
33 | diff -ur audit-2.8.5.orig/configure.ac audit-2.8.5/configure.ac | |
34 | --- audit-2.8.5.orig/configure.ac 2022-04-02 20:33:47.114507326 +0200 | |
35 | +++ audit-2.8.5/configure.ac 2022-04-02 20:34:04.713548373 +0200 | |
36 | @@ -398,6 +398,12 @@ | |
37 | AC_DEFINE_UNQUOTED(HAVE_LIBWRAP, [], Define if tcp_wrappers support is enabled ) | |
38 | fi | |
39 | ||
40 | +# linux/ipx.h - deprecated in 2018 | |
41 | +AC_CHECK_HEADER(linux/ipx.h, ipx_headers=yes, ipx_headers=no) | |
42 | +if test $ipx_headers = yes ; then | |
43 | + AC_DEFINE(HAVE_IPX_HEADERS,1,[IPX packet interpretation]) | |
44 | +fi | |
45 | + | |
46 | # See if we want to support lower capabilities for plugins | |
47 | LIBCAP_NG_PATH | |
48 |