diff options
| author | Cynthia Revstrom <me@cynthia.re> | 2018-12-25 17:38:47 +0100 |
|---|---|---|
| committer | Cynthia Revstrom <me@cynthia.re> | 2018-12-25 17:39:03 +0100 |
| commit | 762bfd8fed2ba8add3166e771a393835381d8520 (patch) | |
| tree | 02f8922d701464eaf000f0a40be00ebec0d2a13a /main.c | |
| parent | d35f600ca86e3709123829827450387de24dd4ea (diff) | |
| parent | dce3e15c94d79aae009dfbc17d2d83cd254ea98c (diff) | |
Merge branch 'caRJ33-master'
Signed-off-by: Cynthia Revstrom <me@cynthia.re>
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -57,7 +57,7 @@ void check_flags(int taintval) { check_taint_flag(taintval, TAINT_AUX, "AUX", "Auxiliary taint, defined and used by distros"); check_taint_flag(taintval, TAINT_STRUCT_RANDOM, "STRUCT_RANDOM", "The kernel was built with the struct randomization plugin"); } else { - printf("Kernel is not tainted :)"); + printf("Kernel is not tainted :)\n"); } } @@ -68,6 +68,10 @@ void check_proc() { // Read /proc/sys/kernel/tainted fh = fopen("/proc/sys/kernel/tainted", "r"); + if (fh == NULL) { + printf("No kernel taint file found :(\n"); + exit(EXIT_FAILURE); + } size = fread(&buf, 1, sizeof(buf), fh); fclose(fh); |
