Skip to content

Commit

Permalink
inode_setxattr should not be recording provenance any more.
Browse files Browse the repository at this point in the history
  • Loading branch information
tfjmp committed Apr 3, 2019
1 parent 406fecb commit b9cb320
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

### v0.5.4
```
- Ensure inode_setxattr does not generate provenance.
- Ensure inode_getsecurity does not generate provenance.
- Associate task_id with relations.
- Internal refactoring.
Expand Down
2 changes: 1 addition & 1 deletion include/uapi/linux/provenance.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"."xstr (CAMFLOW_VERSION_MINOR) \
"."xstr (CAMFLOW_VERSION_PATCH) \

#define CAMFLOW_COMMIT "4f4001896997e7a9704b46f2c07618258636096d"
#define CAMFLOW_COMMIT "406fecb9837107d3282d47f82fc98d5394b148d2"

#define PROVENANCE_HASH "sha256"

Expand Down
2 changes: 1 addition & 1 deletion security/provenance/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ static int provenance_inode_setxattr(struct dentry *dentry,
if (strcmp(name, XATTR_NAME_PROVENANCE) == 0) { // Provenance xattr
if (size != sizeof(union prov_elt))
return -ENOMEM;
prov = get_dentry_provenance(dentry, true);
prov = get_dentry_provenance(dentry, false);
setting = (union prov_elt *)value;

if (provenance_is_tracked(setting))
Expand Down

0 comments on commit b9cb320

Please sign in to comment.