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-1578 /
Delete
Unzip
Name
Size
Permission
Date
Action
common
[ DIR ]
drwxr-xr-x
2025-09-08 19:44
ftrace_hooks
[ DIR ]
drwxr-xr-x
2025-09-08 19:44
lsm_hooks
[ DIR ]
drwxr-xr-x
2025-09-08 19:44
syscall_hooks
[ DIR ]
drwxr-xr-x
2025-09-08 19:44
transport
[ DIR ]
drwxr-xr-x
2025-09-08 19:44
Kbuild
10.29
KB
-rw-r--r--
2025-09-08 19:44
Makefile
2.23
KB
-rw-r--r--
2025-09-08 19:44
compat.c
8.42
KB
-rw-r--r--
2025-09-08 19:44
compat.h
11.98
KB
-rw-r--r--
2025-09-08 19:44
debug.h
3.56
KB
-rw-r--r--
2025-09-08 19:44
dkms.conf
146
B
-rw-r--r--
2025-09-08 19:44
file_contexts.c
52.97
KB
-rw-r--r--
2025-09-08 19:44
file_contexts.h
2.86
KB
-rw-r--r--
2025-09-08 19:44
file_contexts_priv.h
5.33
KB
-rw-r--r--
2025-09-08 19:44
file_handle_tools.h
2.53
KB
-rw-r--r--
2025-09-08 19:44
file_key_tools.h
950
B
-rw-r--r--
2025-09-08 19:44
file_path_tools.h
2.09
KB
-rw-r--r--
2025-09-08 19:44
hashtable_compat.h
2.73
KB
-rw-r--r--
2025-09-08 19:44
hook_trampoline_common.h
4.29
KB
-rw-r--r--
2025-09-08 19:44
interval_tree.h
779
B
-rw-r--r--
2025-09-08 19:44
memory.c
3.31
KB
-rw-r--r--
2025-09-08 19:44
memory.h
2.99
KB
-rw-r--r--
2025-09-08 19:44
module.c
2.67
KB
-rw-r--r--
2025-09-08 19:44
module_ref.h
421
B
-rw-r--r--
2025-09-08 19:44
module_rundown_protection.c
3.64
KB
-rw-r--r--
2025-09-08 19:44
module_rundown_protection.h
743
B
-rw-r--r--
2025-09-08 19:44
path_tools.h
5.84
KB
-rw-r--r--
2025-09-08 19:44
rundown_protection.c
4.2
KB
-rw-r--r--
2025-09-08 19:44
rundown_protection.h
2.83
KB
-rw-r--r--
2025-09-08 19:44
safe_kobject.h
1.28
KB
-rw-r--r--
2025-09-08 19:44
si_common.h
4.3
KB
-rw-r--r--
2025-09-08 19:44
si_fp_properties.h
858
B
-rw-r--r--
2025-09-08 19:44
si_fp_properties_x.h
18.53
KB
-rw-r--r--
2025-09-08 19:44
si_fp_value_types.h
515
B
-rw-r--r--
2025-09-08 19:44
si_fp_value_types_x.h
1.25
KB
-rw-r--r--
2025-09-08 19:44
si_size.h
4.26
KB
-rw-r--r--
2025-09-08 19:44
si_templates.h
2.99
KB
-rw-r--r--
2025-09-08 19:44
si_writer.h
7.52
KB
-rw-r--r--
2025-09-08 19:44
si_writer_common.h
14.63
KB
-rw-r--r--
2025-09-08 19:44
stringify.h
261
B
-rw-r--r--
2025-09-08 19:44
task_info_map.c
17.1
KB
-rw-r--r--
2025-09-08 19:44
task_info_map.h
6.33
KB
-rw-r--r--
2025-09-08 19:44
task_tools.h
1.34
KB
-rw-r--r--
2025-09-08 19:44
tracepoints.c
3.58
KB
-rw-r--r--
2025-09-08 19:44
tracepoints.h
299
B
-rw-r--r--
2025-09-08 19:44
write_protection.h
2.2
KB
-rw-r--r--
2025-09-08 19:44
Save
Rename
/** @file file_contexts.h @brief Store the opened file contexts(inode + pid) @details Copyright (c) 2023 Acronis International GmbH @author Bruce Wang (bruce.wang@acronis.com) @since $Id: $ */ #pragma once #include "interval_tree.h" #include "transport.h" #include "transport_id.h" typedef struct { long long tv_sec; long tv_nsec; } timespec_compat_t; typedef struct { file_key_t file_key; timespec_compat_t i_mtime; /* last modify time */ timespec_compat_t i_ctime; /* last change time */ } file_context_key_t; // This struct is stored in msg_t, to keep the necessary information typedef struct { file_context_key_t key; transport_id_t skipped_transport_ids[MAX_TRANSPORT_SIZE]; } file_context_msg_info_t; // A struct to store the temporary file context information typedef struct { union { uint64_t pid_version; uint64_t unique_pid; }; uint64_t low; uint64_t high; int flags; file_context_msg_info_t msg_info; } file_context_info_t; // Context that is global per file typedef struct { // currently unused } file_context_open_file_t; // Context that is global per file + process typedef struct { atomic_t flags; } file_context_open_process_t; typedef struct { atomic_t flags; } file_context_process_t; typedef struct { interval_set_t interval_set; spinlock_t spinlock; atomic_t is_reported; } file_context_rw_t; typedef enum { FILE_CONTEXT_OPEN_TABLE = 0, FILE_CONTEXT_READ_TABLE, FILE_CONTEXT_WRITE_TABLE, } file_context_table_type_t; int file_contexts_init(void); void file_contexts_init_fail_free(void); void file_contexts_deinit(void); void remove_common_cache_all(const file_key_t* file_key); int acquire_file_context_entry(transport_id_t id); void release_file_context_entry(transport_id_t id); bool check_open_cache(const transport_ids_t* ids, file_context_info_t *info); int add_open_cache(transport_id_t id, const file_context_info_t *info, file_context_open_file_t **file_node, file_context_open_process_t **process_node); void put_open_cache(file_context_open_file_t *file_node, file_context_open_process_t *process_node); file_context_rw_t *add_rw_cache(transport_id_t id, file_context_info_t *info, file_context_table_type_t type); bool check_and_update_read_cache(const transport_ids_t* ids, file_context_info_t *info); bool check_write_cache(const transport_ids_t* ids, file_context_info_t *info, file_context_table_type_t type); void put_rw_cache(file_context_rw_t *node); void clean_interval_tree(interval_set_t *set); bool insert_interval(uint64_t low, uint64_t high, interval_set_t *set); bool check_interval(uint64_t low, uint64_t high, interval_set_t *set); bool check_update_file_modify_cache(file_context_info_t *info); bool add_file_modify_cache(file_context_info_t *info); int acquire_file_modify_entry(void); void release_file_modify_entry(void);