mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
integrity: Replace integrity_audit_message() with integrity_audit_msg()
Now that integrity_audit_msg() accepts an errno parameter, it is equivalent to integrity_audit_message(). Replace the remaining integrity_audit_message() call sites with integrity_audit_msg() and remove integrity_audit_message(). Signed-off-by: Frederick Lawler <fred@cloudflare.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
parent
ca1e0f3cce
commit
1dc3174383
|
|
@ -1196,9 +1196,9 @@ int process_buffer_measurement(struct mnt_idmap *idmap,
|
|||
|
||||
out:
|
||||
if (ret < 0)
|
||||
integrity_audit_message(AUDIT_INTEGRITY_PCR, NULL, eventname,
|
||||
func_measure_str(func),
|
||||
audit_cause, ret, 0, ret);
|
||||
integrity_audit_msg(AUDIT_INTEGRITY_PCR, NULL, eventname,
|
||||
func_measure_str(func),
|
||||
audit_cause, ret, 0, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,10 +90,10 @@ static struct ima_key_entry *ima_alloc_key_entry(struct key *keyring,
|
|||
|
||||
out:
|
||||
if (rc) {
|
||||
integrity_audit_message(AUDIT_INTEGRITY_PCR, NULL,
|
||||
keyring->description,
|
||||
func_measure_str(KEY_CHECK),
|
||||
audit_cause, rc, 0, rc);
|
||||
integrity_audit_msg(AUDIT_INTEGRITY_PCR, NULL,
|
||||
keyring->description,
|
||||
func_measure_str(KEY_CHECK),
|
||||
audit_cause, rc, 0, rc);
|
||||
ima_free_key_entry(entry);
|
||||
entry = NULL;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -221,11 +221,6 @@ void integrity_audit_msg(int audit_msgno, struct inode *inode,
|
|||
const char *cause, int result, int info,
|
||||
int errno);
|
||||
|
||||
void integrity_audit_message(int audit_msgno, struct inode *inode,
|
||||
const unsigned char *fname, const char *op,
|
||||
const char *cause, int result, int info,
|
||||
int errno);
|
||||
|
||||
static inline struct audit_buffer *
|
||||
integrity_audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, int type)
|
||||
{
|
||||
|
|
@ -240,14 +235,6 @@ static inline void integrity_audit_msg(int audit_msgno, struct inode *inode,
|
|||
{
|
||||
}
|
||||
|
||||
static inline void integrity_audit_message(int audit_msgno,
|
||||
struct inode *inode,
|
||||
const unsigned char *fname,
|
||||
const char *op, const char *cause,
|
||||
int result, int info, int errno)
|
||||
{
|
||||
}
|
||||
|
||||
static inline struct audit_buffer *
|
||||
integrity_audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, int type)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -29,15 +29,6 @@ void integrity_audit_msg(int audit_msgno, struct inode *inode,
|
|||
const unsigned char *fname, const char *op,
|
||||
const char *cause, int result, int audit_info,
|
||||
int errno)
|
||||
{
|
||||
integrity_audit_message(audit_msgno, inode, fname, op, cause,
|
||||
result, audit_info, errno);
|
||||
}
|
||||
|
||||
void integrity_audit_message(int audit_msgno, struct inode *inode,
|
||||
const unsigned char *fname, const char *op,
|
||||
const char *cause, int result, int audit_info,
|
||||
int errno)
|
||||
{
|
||||
struct audit_buffer *ab;
|
||||
char name[TASK_COMM_LEN];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user