File: security_policy.h

package info (click to toggle)
efitools 1.9.2-3.6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 948 kB
  • sloc: ansic: 7,550; makefile: 131; perl: 119; sh: 35
file content (13 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
typedef BOOLEAN (*POLICY_FUNCTION)(VOID *data, UINTN len);

EFI_STATUS
security_policy_install(BOOLEAN (*override)(void), POLICY_FUNCTION allow, POLICY_FUNCTION deny);
EFI_STATUS
security_policy_uninstall(void);
void
security_protocol_set_hashes(unsigned char *esl, int len);

/* three policies for MoK based on hashes only */
BOOLEAN security_policy_mok_override(void);
BOOLEAN security_policy_mok_deny(VOID *data, UINTN len);
BOOLEAN security_policy_mok_allow(VOID *data, UINTN len);