1 Index: dnsmasq-2.42/src/dnsmasq.c
2 ===================================================================
3 --- dnsmasq-2.42.orig/src/dnsmasq.c 2008-06-28 23:37:18.000000000 +0200
4 +++ dnsmasq-2.42/src/dnsmasq.c 2008-06-28 23:37:20.000000000 +0200
7 if (hdr->version != LINUX_CAPABILITY_VERSION_1)
9 - /* if not version 1, use version 2 */
10 - hdr->version = LINUX_CAPABILITY_VERSION_2;
11 + /* if unknown version, use largest supported version (3)
12 + * backported fix from 2.43 to suppress kernel warning
14 + if (hdr->version != LINUX_CAPABILITY_VERSION_2)
15 + hdr->version = LINUX_CAPABILITY_VERSION_3;
18 hdr->pid = 0; /* this process */
19 Index: dnsmasq-2.42/src/dnsmasq.h
20 ===================================================================
21 --- dnsmasq-2.42.orig/src/dnsmasq.h 2008-06-28 23:37:48.000000000 +0200
22 +++ dnsmasq-2.42/src/dnsmasq.h 2008-06-28 23:37:55.000000000 +0200
24 extern int capget(cap_user_header_t header, cap_user_data_t data);
25 #define LINUX_CAPABILITY_VERSION_1 0x19980330
26 #define LINUX_CAPABILITY_VERSION_2 0x20071026
27 +#define LINUX_CAPABILITY_VERSION_3 0x20080522
29 #include <sys/prctl.h>
30 #elif defined(HAVE_SOLARIS_PRIVS)