include/keys/trusted_pkwm.h

Source file repositories/reference/linux-study-clean/include/keys/trusted_pkwm.h

File Facts

System
Linux kernel
Corpus path
include/keys/trusted_pkwm.h
Extension
.h
Size
799 bytes
Lines
34
Domain
Repository Root And Misc
Bucket
include
Inferred role
Repository Root And Misc: implementation source
Status
source implementation candidate

Why This File Exists

Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.

Dependency Surface

Detected Declarations

Annotated Snippet

struct trusted_pkwm_options {
	u16 wrap_flags;
};

static inline void dump_options(struct trusted_key_options *o)
{
	const struct trusted_pkwm_options *pkwm;
	bool sb_audit_or_enforce_bit;
	bool sb_enforce_bit;

	pkwm = o->private;
	sb_audit_or_enforce_bit = pkwm->wrap_flags & BIT(0);
	sb_enforce_bit = pkwm->wrap_flags & BIT(1);

	if (sb_audit_or_enforce_bit)
		pr_debug("secure boot mode required: audit or enforce");
	else if (sb_enforce_bit)
		pr_debug("secure boot mode required: enforce");
	else
		pr_debug("secure boot mode required: disabled");
}

#endif

Annotation

Implementation Notes