diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-11-13 06:34:43 +0100 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-11-30 14:35:42 +0100 |
commit | 5eccbc32899a5e083700fc0ee4574a4a3f86d6ff (patch) | |
tree | 4949289bb7b5926e7053fdf0d27f829577b0e9ec /include/crypto/if_alg.h | |
parent | 1bc0a1995676135832764fe7447d46437d44cbf5 (diff) | |
download | kernel-crypto-audit.tar.gz kernel-crypto-audit.tar.xz kernel-crypto-audit.zip |
Audit type-specific crypto operationsaudit
Diffstat (limited to 'include/crypto/if_alg.h')
-rw-r--r-- | include/crypto/if_alg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/crypto/if_alg.h b/include/crypto/if_alg.h index 092c599e031..6650ae5761f 100644 --- a/include/crypto/if_alg.h +++ b/include/crypto/if_alg.h @@ -80,6 +80,12 @@ int af_alg_cmsg_send(struct msghdr *msg, struct af_alg_control *con); int af_alg_wait_for_completion(int err, struct af_alg_completion *completion); void af_alg_complete(struct crypto_async_request *req, int err); +#ifdef CONFIG_AUDIT +int af_alg_audit_crypto_op(struct sock *sk, const char *operation, int ctx2); +#else +#define af_alg_audit_crypto_op(sk, operation, ctx2) (0) +#endif + static inline struct alg_sock *alg_sk(struct sock *sk) { return (struct alg_sock *)sk; |