forked from Minki/linux
b886d83c5b
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation version 2 of the license extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 315 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Armijn Hemel <armijn@tjaldur.nl> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190531190115.503150771@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
38 lines
800 B
C
38 lines
800 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* AppArmor security module
|
|
*
|
|
* This file contains AppArmor policy loading interface function definitions.
|
|
*
|
|
* Copyright 2013 Canonical Ltd.
|
|
*/
|
|
|
|
#ifndef __APPARMOR_CRYPTO_H
|
|
#define __APPARMOR_CRYPTO_H
|
|
|
|
#include "policy.h"
|
|
|
|
#ifdef CONFIG_SECURITY_APPARMOR_HASH
|
|
unsigned int aa_hash_size(void);
|
|
char *aa_calc_hash(void *data, size_t len);
|
|
int aa_calc_profile_hash(struct aa_profile *profile, u32 version, void *start,
|
|
size_t len);
|
|
#else
|
|
static inline char *aa_calc_hash(void *data, size_t len)
|
|
{
|
|
return NULL;
|
|
}
|
|
static inline int aa_calc_profile_hash(struct aa_profile *profile, u32 version,
|
|
void *start, size_t len)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline unsigned int aa_hash_size(void)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __APPARMOR_CRYPTO_H */
|