Skip to content
Snippets Groups Projects
Commit e1e57866 authored by Mikhail Pershin's avatar Mikhail Pershin
Browse files

b=8654

store setattr mask in nid for debug purposes
parent bb590826
No related branches found
No related tags found
No related merge requests found
...@@ -173,11 +173,12 @@ int static audit_mds_setattr_rec(struct inode * inode, void * arg, ...@@ -173,11 +173,12 @@ int static audit_mds_setattr_rec(struct inode * inode, void * arg,
struct audit_priv * priv, char * buffer, struct audit_priv * priv, char * buffer,
__u32 *type) __u32 *type)
{ {
//struct hook_attr_msg * msg = arg; struct hook_attr_msg * msg = arg;
struct audit_record * rec = (void*)buffer; struct audit_record * rec = (void*)buffer;
char * pbuf = buffer + sizeof(*rec); char * pbuf = buffer + sizeof(*rec);
int len = sizeof(*rec); int len = sizeof(*rec);
rec->nid = msg->attr->ia_valid;
rec->opcode = AUDIT_SETATTR; rec->opcode = AUDIT_SETATTR;
len += audit_fill_id_rec(&pbuf, inode); len += audit_fill_id_rec(&pbuf, inode);
*type = SMFS_AUDIT_GEN_REC; *type = SMFS_AUDIT_GEN_REC;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment