aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit_watch.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-04-26 14:11:05 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2019-04-28 20:33:43 -0400
commit795d673af1afae8146ac3070a2d77cfae5287c43 (patch)
tree1c0f3284601cfd891044ecc3c605584f91f155c3 /kernel/audit_watch.c
parent6921d4ebe418e7cce9f65c1f38c93ea82a1f546c (diff)
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.c3
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,
261 struct audit_watch *owatch, *nwatch, *nextw; 261 struct audit_watch *owatch, *nwatch, *nextw;
262 struct audit_krule *r, *nextr; 262 struct audit_krule *r, *nextr;
263 struct audit_entry *oentry, *nentry; 263 struct audit_entry *oentry, *nentry;
264 const unsigned char *name = dname->name;
265 264
266 mutex_lock(&audit_filter_mutex); 265 mutex_lock(&audit_filter_mutex);
267 /* Run all of the watches on this parent looking for the one that 266 /* Run all of the watches on this parent looking for the one that
268 * matches the given dname */ 267 * matches the given dname */
269 list_for_each_entry_safe(owatch, nextw, &parent->watches, wlist) { 268 list_for_each_entry_safe(owatch, nextw, &parent->watches, wlist) {
270 if (audit_compare_dname_path(name, owatch->path, 269 if (audit_compare_dname_path(dname, owatch->path,
271 AUDIT_NAME_FULL)) 270 AUDIT_NAME_FULL))
272 continue; 271 continue;
273 272