diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-04-26 20:11:05 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-04-29 02:33:43 +0200 |
commit | 795d673af1afae8146ac3070a2d77cfae5287c43 (patch) | |
tree | 1c0f3284601cfd891044ecc3c605584f91f155c3 /kernel/audit_watch.c | |
parent | audit_update_watch(): switch to const struct qstr * (diff) | |
download | linux-795d673af1afae8146ac3070a2d77cfae5287c43.tar.xz linux-795d673af1afae8146ac3070a2d77cfae5287c43.zip |
audit_compare_dname_path(): switch to const struct qstr *
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/audit_watch.c')
-rw-r--r-- | kernel/audit_watch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c index d832ce9df065..b50c574223fa 100644 --- a/kernel/audit_watch.c +++ b/kernel/audit_watch.c @@ -261,13 +261,12 @@ static void audit_update_watch(struct audit_parent *parent, struct audit_watch *owatch, *nwatch, *nextw; struct audit_krule *r, *nextr; struct audit_entry *oentry, *nentry; - const unsigned char *name = dname->name; mutex_lock(&audit_filter_mutex); /* Run all of the watches on this parent looking for the one that * matches the given dname */ list_for_each_entry_safe(owatch, nextw, &parent->watches, wlist) { - if (audit_compare_dname_path(name, owatch->path, + if (audit_compare_dname_path(dname, owatch->path, AUDIT_NAME_FULL)) continue; |