Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24b6f16e authored by Al Viro's avatar Al Viro
Browse files

No need for crossing to mountpoint in audit_tag_tree()



is_under() will DTRT anyway.  And yes, is_subdir() behaviour
is intentional.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1644ccc8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2149,7 +2149,6 @@ int is_subdir(struct dentry *new_dentry, struct dentry *old_dentry)
	int result;
	unsigned long seq;

	/* FIXME: This is old behavior, needed? Please check callers. */
	if (new_dentry == old_dentry)
		return 1;

+0 −3
Original line number Diff line number Diff line
@@ -734,9 +734,6 @@ int audit_tag_tree(char *old, char *new)
	dentry = dget(path.dentry);
	path_put(&path);

	if (dentry == tagged->mnt_root && dentry == mnt->mnt_root)
		follow_up(&mnt, &dentry);

	list_add_tail(&list, &tagged->mnt_list);

	mutex_lock(&audit_filter_mutex);