Linux host2.homegym.sg 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
Apache
Server IP : 159.223.38.192 & Your IP : 159.223.38.192
Domains : 20 Domain
User : eachadea
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
usr /
src /
file_protector-1.1-1583 /
Delete
Unzip
Name
Size
Permission
Date
Action
common
[ DIR ]
drwxr-xr-x
2025-10-28 18:03
ftrace_hooks
[ DIR ]
drwxr-xr-x
2025-10-28 18:03
lsm_hooks
[ DIR ]
drwxr-xr-x
2025-10-28 18:03
syscall_hooks
[ DIR ]
drwxr-xr-x
2025-10-28 18:03
transport
[ DIR ]
drwxr-xr-x
2025-10-28 18:03
Kbuild
10.29
KB
-rw-r--r--
2025-10-28 18:03
Makefile
2.23
KB
-rw-r--r--
2025-10-28 18:03
compat.c
8.42
KB
-rw-r--r--
2025-10-28 18:03
compat.h
11.98
KB
-rw-r--r--
2025-10-28 18:03
debug.h
3.56
KB
-rw-r--r--
2025-10-28 18:03
dkms.conf
146
B
-rw-r--r--
2025-10-28 18:03
file_contexts.c
60.43
KB
-rw-r--r--
2025-10-28 18:03
file_contexts.h
6.21
KB
-rw-r--r--
2025-10-28 18:03
file_contexts_priv.h
5.48
KB
-rw-r--r--
2025-10-28 18:03
file_handle_tools.h
2.53
KB
-rw-r--r--
2025-10-28 18:03
file_key_tools.h
950
B
-rw-r--r--
2025-10-28 18:03
file_path_tools.h
2.09
KB
-rw-r--r--
2025-10-28 18:03
hashtable_compat.h
2.73
KB
-rw-r--r--
2025-10-28 18:03
hook_trampoline_common.h
4.29
KB
-rw-r--r--
2025-10-28 18:03
interval_tree.h
779
B
-rw-r--r--
2025-10-28 18:03
memory.c
3.31
KB
-rw-r--r--
2025-10-28 18:03
memory.h
2.99
KB
-rw-r--r--
2025-10-28 18:03
module.c
2.67
KB
-rw-r--r--
2025-10-28 18:03
module_ref.h
421
B
-rw-r--r--
2025-10-28 18:03
module_rundown_protection.c
3.64
KB
-rw-r--r--
2025-10-28 18:03
module_rundown_protection.h
743
B
-rw-r--r--
2025-10-28 18:03
path_tools.h
6.06
KB
-rw-r--r--
2025-10-28 18:03
rundown_protection.c
4.2
KB
-rw-r--r--
2025-10-28 18:03
rundown_protection.h
2.83
KB
-rw-r--r--
2025-10-28 18:03
safe_kobject.h
1.28
KB
-rw-r--r--
2025-10-28 18:03
si_common.h
4.3
KB
-rw-r--r--
2025-10-28 18:03
si_fp_properties.h
858
B
-rw-r--r--
2025-10-28 18:03
si_fp_properties_x.h
18.53
KB
-rw-r--r--
2025-10-28 18:03
si_fp_value_types.h
515
B
-rw-r--r--
2025-10-28 18:03
si_fp_value_types_x.h
1.25
KB
-rw-r--r--
2025-10-28 18:03
si_size.h
4.26
KB
-rw-r--r--
2025-10-28 18:03
si_templates.h
2.99
KB
-rw-r--r--
2025-10-28 18:03
si_writer.h
7.52
KB
-rw-r--r--
2025-10-28 18:03
si_writer_common.h
14.63
KB
-rw-r--r--
2025-10-28 18:03
stringify.h
261
B
-rw-r--r--
2025-10-28 18:03
task_info_map.c
17.1
KB
-rw-r--r--
2025-10-28 18:03
task_info_map.h
6.33
KB
-rw-r--r--
2025-10-28 18:03
task_tools.h
1.34
KB
-rw-r--r--
2025-10-28 18:03
tracepoints.c
3.58
KB
-rw-r--r--
2025-10-28 18:03
tracepoints.h
299
B
-rw-r--r--
2025-10-28 18:03
write_protection.h
2.2
KB
-rw-r--r--
2025-10-28 18:03
Save
Rename
/** @file @brief Linux kernel memory management interface wrapper @details Copyright (c) 2017-2018 Acronis International GmbH @author Mikhail Krivtsov (mikhail.krivtsov@acronis.com) @since $Id: $ */ #pragma once #ifndef BPF_PROGRAM #include <linux/mm.h> // is_vmalloc_addr() #include <linux/slab.h> // kmalloc(), kzalloc(), kfree() #include <linux/vmalloc.h> // vmalloc(), vfree() #include "safe_kobject.h" #define mem_flags(nowait) ((nowait) ? (GFP_ATOMIC) : (GFP_KERNEL)) #define mem_alloc_with_alloc_flags(size, nowait) kmalloc(size, mem_flags(nowait)) #define mem_alloc0_with_alloc_flags(size, nowait) kzalloc(size, mem_flags(nowait)) #define mem_alloc(size) mem_alloc_with_alloc_flags(size, false) #define mem_alloc0(size) mem_alloc0_with_alloc_flags(size, false) #define mem_alloc_nowait(size) mem_alloc_with_alloc_flags(size, true) #define mem_alloc0_nowait(size) mem_alloc0_with_alloc_flags(size, true) #define mem_free(p) kfree(p) static inline void *kvmalloc_compat(size_t size, gfp_t flags) { void *ret; ret = kmalloc(size, flags | __GFP_NOWARN); if (ret) { return ret; } return vmalloc(size); } static inline void kvfree_compat(void *addr) { if (is_vmalloc_addr(addr)) vfree(addr); else kfree(addr); } #define large_mem_alloc(size) kvmalloc_compat(size, GFP_KERNEL) #define large_mem_free(p) kvfree_compat(p) #define vmem_alloc(size) vmalloc(size) #define vmem_free(p) vfree(p) // kmem_cache used to make semantics like 'new' or 'delete' #define KMEM_STRUCT_CACHE_NAME(__struct) g_##__struct##_new_cache #define KMEM_STRUCT_CACHE_DECLARE(__struct) struct kmem_cache* KMEM_STRUCT_CACHE_NAME(__struct) #define KMEM_STRUCT_CACHE_INIT(__struct, flags, ctor) (KMEM_STRUCT_CACHE_NAME(__struct) = kmem_cache_create("fileprotector_" #__struct, sizeof(__struct##_t), __alignof__(__struct##_t), flags, ctor)) #define KMEM_STRUCT_CACHE_DEINIT(__struct) do{ if (KMEM_STRUCT_CACHE_NAME(__struct)) kmem_cache_destroy(KMEM_STRUCT_CACHE_NAME(__struct)); }while(0) #define KMEM_NEW_WITH_ALLOC_FLAGS(__struct, nowait) (__struct##_t*) kmem_cache_alloc(KMEM_STRUCT_CACHE_NAME(__struct), mem_flags(nowait)) #define KMEM_NEW(__struct) (__struct##_t*) KMEM_NEW_WITH_ALLOC_FLAGS(__struct, false) #define KMEM_NEW0_WITH_ALLOC_FLAGS(__struct, nowait) (__struct##_t*) kmem_cache_zalloc(KMEM_STRUCT_CACHE_NAME(__struct), mem_flags(nowait)) #define KMEM_NEW0(__struct) (__struct##_t*) KMEM_NEW0_WITH_ALLOC_FLAGS(__struct, false) #define KMEM_DELETE(__struct, ptr) kmem_cache_free(KMEM_STRUCT_CACHE_NAME(__struct), ptr) extern struct kmem_cache *g_handles_cache; int memory_init(void); void memory_deinit(void); typedef struct memory_metrics_s { safe_kobject_t skobj; atomic64_t total_file_contexts_tables; atomic64_t total_transports; atomic64_t total_transport_events; atomic64_t total_msgs; atomic64_t total_msgs_size; atomic64_t total_sized_msgs; atomic64_t total_sized_msgs_size; } memory_metrics_t; extern memory_metrics_t* g_memory_metrics; #endif