|
1 |
| -/* $Id: tainted.c,v 1.13 2023/02/15 13:23:03 ralph Exp $ |
| 1 | +/* $Id: tainted.c,v 1.15 2024/05/01 15:53:55 ralph Exp $ |
2 | 2 | * vim:set fileencoding=utf8 fileformat=unix filetype=c tabstop=2 noexpandtab:
|
3 | 3 | *
|
4 | 4 | * Tainted: Tool to get the current taint value and print each set bit in
|
5 | 5 | * human readable format
|
6 | 6 | *
|
7 | 7 | * (C) 2014 - Nikolay Aleksandrov <nikolay@redhat.com> - https://github.com/NikAleksandrov/tainted
|
8 |
| - * (c) 2022 - Ralph Roth - enhancements and fixes for SLES 12, 15, openSUSE - https://github.com/roseswe/tainted |
| 8 | + * (c) 2022, 2024 - Ralph Roth - enhancements and fixes for SLES 12, 15, openSUSE - https://github.com/roseswe/tainted |
9 | 9 | *
|
10 | 10 | * Compile with:
|
11 | 11 | * gcc -O2 -o tainted tainted.c
|
|
24 | 24 | #define PROC_TAINTED "/proc/sys/kernel/tainted"
|
25 | 25 |
|
26 | 26 | // we try to align the version number with the CVS commit :-)
|
27 |
| -#define HELP_FMT "%s [-?hix value] Version 2.0.8 (%s)\nWithout command-line options this tool will print the\n" \ |
| 27 | +#define HELP_FMT "%s [-?hix value] Version 2.0.9 (%s)\nWithout command-line options this tool will print the\n" \ |
28 | 28 | "current taint value (from proc FS) with information about each set bit.\n" \
|
29 | 29 | "-h -? - this help\n" \
|
30 | 30 | "-i -l - print information about the different taint bits (list)\n" \
|
@@ -75,7 +75,7 @@ static const char *szKernelTaintDescription[] = {
|
75 | 75 | [TAINT_WARN] = "A kernel warning has occurred",
|
76 | 76 | [TAINT_CRAP] = "A module from drivers/staging was loaded",
|
77 | 77 | [TAINT_FIRMWARE_WORKAROUND] = "The system is working around a severe firmware bug",
|
78 |
| - [TAINT_OOT_MODULE] = "An out-of-tree module has been loaded", |
| 78 | + [TAINT_OOT_MODULE] = "An out-of-tree module has been loaded (not shipped with Kernel)", |
79 | 79 | [TAINT_UNSIGNED_MODULE] = "An unsigned module has been loaded in a kernel supporting\n module signature",
|
80 | 80 | [TAINT_SOFTLOCKUP] = "A soft lockup has previously occurred on the system",
|
81 | 81 | [TAINT_LIVEPATCH] = "The kernel has been live patched", /* 0x8000 - 15 new stuff follows */
|
|
0 commit comments