security/landlock/common.h

Source file repositories/reference/linux-study-clean/security/landlock/common.h

File Facts

System
Linux kernel
Corpus path
security/landlock/common.h
Extension
.h
Size
464 bytes
Lines
23
Domain
Core OS
Bucket
Security And Isolation
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _SECURITY_LANDLOCK_COMMON_H
#define _SECURITY_LANDLOCK_COMMON_H

#define LANDLOCK_NAME "landlock"

#ifdef pr_fmt
#undef pr_fmt
#endif

#define pr_fmt(fmt) LANDLOCK_NAME ": " fmt

#define BIT_INDEX(bit) HWEIGHT(bit - 1)

#endif /* _SECURITY_LANDLOCK_COMMON_H */

Annotation

Implementation Notes