diff options
| author | Peter Jones <pjones@redhat.com> | 2013-10-01 14:03:16 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-10-01 14:03:16 -0400 |
| commit | bb2fe4cfb3fc050e4ef0dbb6af0c53a4f75200c9 (patch) | |
| tree | 048d338958abf211b5e4148f77b8630f9cadea4e /include | |
| parent | 417077f8de33214b2942f5a6d8ff6af217b4f5dd (diff) | |
| download | efi-boot-shim-bb2fe4cfb3fc050e4ef0dbb6af0c53a4f75200c9.tar.gz efi-boot-shim-bb2fe4cfb3fc050e4ef0dbb6af0c53a4f75200c9.zip | |
Conditionalize overriding the security policy.
Make OVERRIDE_SECURITY_POLICY a build option.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/security_policy.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/security_policy.h b/include/security_policy.h index b0109ce0..7854db11 100644 --- a/include/security_policy.h +++ b/include/security_policy.h @@ -1,3 +1,7 @@ +#ifndef _SHIM_LIB_SECURITY_POLICY_H +#define _SHIM_LIB_SECURITY_POLICY_H 1 + +#if defined(OVERRIDE_SECURITY_POLICY) typedef EFI_STATUS (*SecurityHook) (void *data, UINT32 len); EFI_STATUS @@ -6,3 +10,6 @@ EFI_STATUS security_policy_uninstall(void); void security_protocol_set_hashes(unsigned char *esl, int len); +#endif /* OVERRIDE_SECURITY_POLICY */ + +#endif /* SHIM_LIB_SECURITY_POLICY_H */ |
