[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
src
/
file_protector-1.1-1569
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 common
SET
[ DEL ]
📁 ftrace_hooks
SET
[ DEL ]
📁 lsm_hooks
SET
[ DEL ]
📁 syscall_hooks
SET
[ DEL ]
📁 transport
SET
[ DEL ]
📄 Kbuild
10,360 B
SET
[ EDIT ]
|
[ DEL ]
📄 Makefile
2,282 B
SET
[ EDIT ]
|
[ DEL ]
📄 compat.c
8,577 B
SET
[ EDIT ]
|
[ DEL ]
📄 compat.h
11,763 B
SET
[ EDIT ]
|
[ DEL ]
📄 debug.h
3,649 B
SET
[ EDIT ]
|
[ DEL ]
📄 dkms.conf
146 B
SET
[ EDIT ]
|
[ DEL ]
📄 file_contexts.c
51,205 B
SET
[ EDIT ]
|
[ DEL ]
📄 file_contexts.h
2,886 B
SET
[ EDIT ]
|
[ DEL ]
📄 file_contexts_priv.h
5,546 B
SET
[ EDIT ]
|
[ DEL ]
📄 file_handle_tools.h
2,207 B
SET
[ EDIT ]
|
[ DEL ]
📄 file_key_tools.h
869 B
SET
[ EDIT ]
|
[ DEL ]
📄 file_path_tools.h
2,140 B
SET
[ EDIT ]
|
[ DEL ]
📄 hashtable_compat.h
2,798 B
SET
[ EDIT ]
|
[ DEL ]
📄 hook_trampoline_common.h
4,395 B
SET
[ EDIT ]
|
[ DEL ]
📄 interval_tree.h
779 B
SET
[ EDIT ]
|
[ DEL ]
📄 memory.h
1,401 B
SET
[ EDIT ]
|
[ DEL ]
📄 module.c
1,906 B
SET
[ EDIT ]
|
[ DEL ]
📄 module_ref.h
421 B
SET
[ EDIT ]
|
[ DEL ]
📄 module_rundown_protection.c
3,731 B
SET
[ EDIT ]
|
[ DEL ]
📄 module_rundown_protection.h
743 B
SET
[ EDIT ]
|
[ DEL ]
📄 path_tools.h
5,421 B
SET
[ EDIT ]
|
[ DEL ]
📄 rundown_protection.c
4,301 B
SET
[ EDIT ]
|
[ DEL ]
📄 rundown_protection.h
2,899 B
SET
[ EDIT ]
|
[ DEL ]
📄 si_common.h
4,331 B
SET
[ EDIT ]
|
[ DEL ]
📄 si_fp_properties.h
858 B
SET
[ EDIT ]
|
[ DEL ]
📄 si_fp_properties_x.h
18,543 B
SET
[ EDIT ]
|
[ DEL ]
📄 si_fp_value_types.h
515 B
SET
[ EDIT ]
|
[ DEL ]
📄 si_fp_value_types_x.h
1,279 B
SET
[ EDIT ]
|
[ DEL ]
📄 si_size.h
4,253 B
SET
[ EDIT ]
|
[ DEL ]
📄 si_templates.h
2,452 B
SET
[ EDIT ]
|
[ DEL ]
📄 si_writer.h
6,807 B
SET
[ EDIT ]
|
[ DEL ]
📄 si_writer_common.h
10,696 B
SET
[ EDIT ]
|
[ DEL ]
📄 stringify.h
261 B
SET
[ EDIT ]
|
[ DEL ]
📄 task_info_map.c
16,847 B
SET
[ EDIT ]
|
[ DEL ]
📄 task_info_map.h
6,386 B
SET
[ EDIT ]
|
[ DEL ]
📄 task_tools.h
1,370 B
SET
[ EDIT ]
|
[ DEL ]
📄 tracepoints.c
3,668 B
SET
[ EDIT ]
|
[ DEL ]
📄 tracepoints.h
299 B
SET
[ EDIT ]
|
[ DEL ]
📄 write_protection.h
2,257 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: debug.h
/** @file @brief Debugging printing @details Copyright (c) 2017-2021 Acronis International GmbH @author Mikhail Krivtsov (mikhail.krivtsov@acronis.com) @since $Id: $ */ #pragma once #ifndef KERNEL_MOCK #include <asm/current.h> // struct task_struct *current #include <linux/printk.h> #include <linux/ratelimit.h> // __ratelimit() #include <linux/sched.h> // struct task_struct #include <linux/string.h> // strrchr() #define xPRINTF(prefix, format, args...) \ do { \ const char *f = __FILE__; \ const char *n = strrchr(f, '/'); \ printk(PRINTK_TAG "|%5u:%5u:%s:%u:%s| " prefix format "\n", \ (unsigned)current->tgid, \ (unsigned)current->pid, \ (n) ? n+1 : f, __LINE__, __FUNCTION__, ##args); \ } while(0) // in descending order of importance #define FPRINTF(format, args...) xPRINTF("EMERGENCY: ", format, ##args) #define APRINTF(format, args...) xPRINTF( "ALERT: ", format, ##args) #define CPRINTF(format, args...) xPRINTF( "CRITICAL: ", format, ##args) #define EPRINTF(format, args...) xPRINTF( "ERROR: ", format, ##args) #define WPRINTF(format, args...) xPRINTF( "WARNING: ", format, ##args) #define NPRINTF(format, args...) xPRINTF( "NOTICE: ", format, ##args) #define IPRINTF(format, args...) xPRINTF( "INFO: ", format, ##args) #ifdef __DEBUG__ #define DPRINTF(format, args...) xPRINTF( "DEBUG: ", format, ##args) #else #define DPRINTF(format, args...) #endif #ifdef __DEBUG_LEVEL__ typedef enum logger_log_level_e { LOG_LEVEL_DEBUG1 = 0, LOG_LEVEL_DEBUG2, LOG_LEVEL_DEBUG3, LOG_LEVEL_DEBUG4, LOG_LEVEL_DEBUG5, LOG_LEVEL_DEBUG6, LOG_LEVEL_DEBUG7, LOG_LEVEL_DEBUG8, LOG_LEVEL_DEBUG9, } logger_log_level_t; extern unsigned int logger_debug_level; #define xPRINTF_LEVEL(prefix, level, format, args...) \ do { \ if (__builtin_expect(logger_debug_level > level, true)){ \ const char *f = __FILE__; \ const char *n = strrchr(f, '/'); \ printk(PRINTK_TAG "|%5u:%5u:%s:%u:%s| " prefix format "\n", \ (unsigned)current->tgid, \ (unsigned)current->pid, \ (n) ? n+1 : f, __LINE__, __FUNCTION__, ##args); \ } \ } while(0) #define DPRINTF_LEVEL(level, format, args...) xPRINTF_LEVEL( "DEBUG_LEVEL: ", level, format, ##args) #else #define DPRINTF_LEVEL(level, format, args...) #endif #define xPRINTF_RATELIMITED(prefix, format, args...) \ do { \ static DEFINE_RATELIMIT_STATE(ratelimit_state, \ DEFAULT_RATELIMIT_INTERVAL, \ DEFAULT_RATELIMIT_BURST); \ if (__ratelimit(&ratelimit_state)) \ xPRINTF(prefix, format, ##args); \ } while(0) #define FPRINTF_RATELIMITED(format, args...) xPRINTF_RATELIMITED("EMERGENCY: ", format, ##args) #define APRINTF_RATELIMITED(format, args...) xPRINTF_RATELIMITED( "ALERT: ", format, ##args) #define CPRINTF_RATELIMITED(format, args...) xPRINTF_RATELIMITED( "CRITICAL: ", format, ##args) #define EPRINTF_RATELIMITED(format, args...) xPRINTF_RATELIMITED( "ERROR: ", format, ##args) #define WPRINTF_RATELIMITED(format, args...) xPRINTF_RATELIMITED( "WARNING: ", format, ##args) #define NPRINTF_RATELIMITED(format, args...) xPRINTF_RATELIMITED( "NOTICE: ", format, ##args) #define IPRINTF_RATELIMITED(format, args...) xPRINTF_RATELIMITED( "INFO: ", format, ##args) #ifdef __DEBUG__ #define DPRINTF_RATELIMITED(format, args...) xPRINTF_RATELIMITED( "DEBUG: ", format, ##args) #else #define DPRINTF_RATELIMITED(format, args...) #endif #define HEX_DUMP(dump_prefix, addr, size) \ print_hex_dump(PRINTK_TAG "|", dump_prefix, DUMP_PREFIX_OFFSET, \ 16, 1, addr, size, true) #else // KERNEL_MOCK #include "lib/debug.h" #endif