diff options
author | Paul Moore <pmoore@redhat.com> | 2013-11-08 19:56:38 +0100 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2013-11-08 19:56:38 +0100 |
commit | 94851b18d4eb94f8bbf0d9176f7429bd8e371f62 (patch) | |
tree | c3c743ac6323e1caf9e987d6946cc4b2333a8256 /security/apparmor/include/crypto.h | |
parent | selinux: correct locking in selinux_netlbl_socket_connect) (diff) | |
parent | Linux 3.12 (diff) | |
download | linux-94851b18d4eb94f8bbf0d9176f7429bd8e371f62.tar.xz linux-94851b18d4eb94f8bbf0d9176f7429bd8e371f62.zip |
Merge tag 'v3.12'
Linux 3.12
Diffstat (limited to 'security/apparmor/include/crypto.h')
-rw-r--r-- | security/apparmor/include/crypto.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/security/apparmor/include/crypto.h b/security/apparmor/include/crypto.h new file mode 100644 index 000000000000..dc418e5024d9 --- /dev/null +++ b/security/apparmor/include/crypto.h @@ -0,0 +1,36 @@ +/* + * AppArmor security module + * + * This file contains AppArmor policy loading interface function definitions. + * + * Copyright 2013 Canonical Ltd. + * + * 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. + */ + +#ifndef __APPARMOR_CRYPTO_H +#define __APPARMOR_CRYPTO_H + +#include "policy.h" + +#ifdef CONFIG_SECURITY_APPARMOR_HASH +unsigned int aa_hash_size(void); +int aa_calc_profile_hash(struct aa_profile *profile, u32 version, void *start, + size_t len); +#else +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 */ |