diff options
author | Armin Kuster <akuster808@gmail.com> | 2022-06-04 09:40:04 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2022-06-07 16:58:24 -0700 |
commit | 2a90888cfd2bc194725da57010ec9050fcc227b1 (patch) | |
tree | 6c9817b5ed012fce157455013b73236ce16a2d8c | |
parent | 5bdb7a35c1385d389826047f92627a3dc8c00c6b (diff) | |
download | meta-security-2a90888cfd2bc194725da57010ec9050fcc227b1.tar.gz |
chkrootkit: Fix missing includes for musl
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-scanners/rootkits/chkrootkit_0.55.bb | 3 | ||||
-rw-r--r-- | recipes-scanners/rootkits/files/musl_fix.patch | 58 |
2 files changed, 60 insertions, 1 deletions
diff --git a/recipes-scanners/rootkits/chkrootkit_0.55.bb b/recipes-scanners/rootkits/chkrootkit_0.55.bb index 4293aec..fe0e989 100644 --- a/recipes-scanners/rootkits/chkrootkit_0.55.bb +++ b/recipes-scanners/rootkits/chkrootkit_0.55.bb | |||
@@ -5,7 +5,8 @@ SECTION = "security" | |||
5 | LICENSE = "BSD-2-Clause" | 5 | LICENSE = "BSD-2-Clause" |
6 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fdbe53788f7081c63387d8087273f5ff" | 6 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fdbe53788f7081c63387d8087273f5ff" |
7 | 7 | ||
8 | SRC_URI = "http://archive.ubuntu.com/ubuntu/pool/universe/c/${BPN}/${BPN}_${PV}.orig.tar.gz" | 8 | SRC_URI = "http://archive.ubuntu.com/ubuntu/pool/universe/c/${BPN}/${BPN}_${PV}.orig.tar.gz \ |
9 | file://musl_fix.patch" | ||
9 | SRC_URI[sha256sum] = "a81c0286ec449313f953701202a00e81b204fc2cf43e278585a11c12a5e0258b" | 10 | SRC_URI[sha256sum] = "a81c0286ec449313f953701202a00e81b204fc2cf43e278585a11c12a5e0258b" |
10 | 11 | ||
11 | inherit autotools-brokensep | 12 | inherit autotools-brokensep |
diff --git a/recipes-scanners/rootkits/files/musl_fix.patch b/recipes-scanners/rootkits/files/musl_fix.patch new file mode 100644 index 0000000..a33523b --- /dev/null +++ b/recipes-scanners/rootkits/files/musl_fix.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | chkrootkit: Fix missing includes for musl | ||
2 | |||
3 | |||
4 | Upstream-Status: Backport | ||
5 | https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07737b95af2452c0055e1ed0660590c1487befdb | ||
6 | https://bugs.gentoo.org/715552 | ||
7 | |||
8 | Signed-off-by: Armin Kuster <akuster808@gamil.com> | ||
9 | |||
10 | Index: chkrootkit-0.55/chkdirs.c | ||
11 | =================================================================== | ||
12 | --- chkrootkit-0.55.orig/chkdirs.c | ||
13 | +++ chkrootkit-0.55/chkdirs.c | ||
14 | @@ -33,7 +33,7 @@ | ||
15 | #elif defined(__APPLE__) && defined(__MACH__) | ||
16 | #include <sys/syslimits.h> | ||
17 | #endif | ||
18 | - | ||
19 | +#include <limits.h> | ||
20 | #include <stdio.h> | ||
21 | #include <stdlib.h> | ||
22 | #include <sys/types.h> | ||
23 | Index: chkrootkit-0.55/chklastlog.c | ||
24 | =================================================================== | ||
25 | --- chkrootkit-0.55.orig/chklastlog.c | ||
26 | +++ chkrootkit-0.55/chklastlog.c | ||
27 | @@ -41,6 +41,7 @@ int main () { return 0; } | ||
28 | #include <stdlib.h> | ||
29 | #endif | ||
30 | #include <sys/stat.h> | ||
31 | +#include <fcntl.h> | ||
32 | #include <unistd.h> | ||
33 | #include <string.h> | ||
34 | #include <signal.h> | ||
35 | Index: chkrootkit-0.55/chkproc.c | ||
36 | =================================================================== | ||
37 | --- chkrootkit-0.55.orig/chkproc.c | ||
38 | +++ chkrootkit-0.55/chkproc.c | ||
39 | @@ -65,6 +65,7 @@ int main (){ return 0; } | ||
40 | #include <string.h> | ||
41 | #include <errno.h> | ||
42 | #include <sys/types.h> | ||
43 | +#include <fcntl.h> | ||
44 | #include <dirent.h> | ||
45 | #include <ctype.h> | ||
46 | #include <stdlib.h> | ||
47 | Index: chkrootkit-0.55/chkwtmp.c | ||
48 | =================================================================== | ||
49 | --- chkrootkit-0.55.orig/chkwtmp.c | ||
50 | +++ chkrootkit-0.55/chkwtmp.c | ||
51 | @@ -25,6 +25,7 @@ int main () { return 0; } | ||
52 | #include <stdio.h> | ||
53 | #include <stdlib.h> | ||
54 | #include <unistd.h> | ||
55 | +#include <fcntl.h> | ||
56 | #include <string.h> | ||
57 | #include <utmp.h> | ||
58 | #include <time.h> | ||