OpenCloudOS-Kernel/security
Huaxin Lu 620860c15a integrity: add dynamic integrity measurement (DIM) support
This commit adds the Dynamic Integrity Measurement (DIM) architecture to
security/integrity. DIM is designed to monitor the integrity of executables
and running processes by maintaining and verifying hashes. It can also
interact with TPM hardware to extend integrity measurements.

The DIM architecture consists of two main modules:
 - dim_core: Provides the core functionality for measuring, monitor and log
the integrity of running processes and executables.
 - dim_monitor: Provides the ability to measure and monitor the integrity of
dim_core.

Subdirectory overview:
 - common: Contains shared utilities, hash functions, TPM interaction, and
logging for DIM.
 - core: Implements the "dim_core" module and the main integrity measurement
logic, including process measurement, memory management, and policies.
 - measure: Provides measurement utilities and baseline functions for DIM's
integrity checks.
 - monitor: Implements the "dim_monitor" module.

CONFIG options:
 - CONFIG_DIM: Top-level option to enable the DIM architecture.
 - CONFIG_DIM_CORE: Enables the "dim_core" module for core functionalities.
 - CONFIG_DIM_HASH_SUPPORT_SM3: Enables the SM3 hash algorithm for integrity
measurement.
 - CONFIG_DIM_MONITOR: Enables the "dim_monitor" module.

The code is from: https://gitee.com/openeuler/dim.

Signed-off-by: Sinong Chen <costinchen@tencent.com>
2024-10-29 12:02:17 +00:00
..
apparmor apparmor: fix possible NULL pointer dereference 2024-09-08 07:54:40 +02:00
bpf bpf: lsm: Set bpf_lsm_blob_sizes.lbs_task to 0 2024-10-04 16:30:02 +02:00
integrity integrity: add dynamic integrity measurement (DIM) support 2024-10-29 12:02:17 +00:00
keys task_work: s/task_work_cancel()/task_work_cancel_func()/ 2024-08-03 08:54:16 +02:00
landlock landlock: Don't lose track of restrictions on cred_transfer 2024-08-03 08:54:11 +02:00
loadpin LoadPin: Annotate struct dm_verity_loadpin_trusted_root_digest with __counted_by 2023-08-25 16:07:30 -07:00
lockdown selinux: remove the runtime disable functionality 2023-03-20 12:34:23 -04:00
safesetid SafeSetID: fix UID printed instead of GID 2023-06-20 20:26:00 -04:00
selinux selinux,smack: don't bypass permissions check in inode_setsecctx hook 2024-09-04 13:28:24 +02:00
smack smackfs: Use rcu_assign_pointer() to ensure safe assignment in smk_set_cipso 2024-10-04 16:29:20 +02:00
tomoyo tomoyo: fallback to realpath if symlink's pathname does not exist 2024-10-10 11:57:57 +02:00
yama sysctl-6.4-rc1 2023-04-27 16:52:33 -07:00
Kconfig proc: add config & param to block forcing mem writes 2024-10-10 11:57:27 +02:00
Kconfig.hardening hardening: Move BUG_ON_DATA_CORRUPTION to hardening options 2023-08-15 14:57:25 -07:00
Makefile security: remove unneeded subdir-$(CONFIG_...) 2021-09-03 08:17:20 +09:00
commoncap.c lsm: constify the 'target' parameter in security_capget() 2023-08-08 16:48:47 -04:00
device_cgroup.c kabi: add paddings (part 2) 2023-12-12 15:56:46 +08:00
inode.c security: convert to ctime accessor functions 2023-07-24 10:30:08 +02:00
lsm_audit.c lsm: fix a number of misspellings 2023-05-25 17:52:15 -04:00
min_addr.c
security.c evm: don't copy up 'security.evm' xattr 2024-08-29 17:33:31 +02:00