mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
Switch collect_mounts() to struct path
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
bab77ebf51
commit
589ff870ed
3 changed files with 6 additions and 6 deletions
|
@ -568,7 +568,7 @@ void audit_trim_trees(void)
|
|||
if (err)
|
||||
goto skip_it;
|
||||
|
||||
root_mnt = collect_mounts(path.mnt, path.dentry);
|
||||
root_mnt = collect_mounts(&path);
|
||||
path_put(&path);
|
||||
if (!root_mnt)
|
||||
goto skip_it;
|
||||
|
@ -660,7 +660,7 @@ int audit_add_tree_rule(struct audit_krule *rule)
|
|||
err = kern_path(tree->pathname, 0, &path);
|
||||
if (err)
|
||||
goto Err;
|
||||
mnt = collect_mounts(path.mnt, path.dentry);
|
||||
mnt = collect_mounts(&path);
|
||||
path_put(&path);
|
||||
if (!mnt) {
|
||||
err = -ENOMEM;
|
||||
|
@ -720,7 +720,7 @@ int audit_tag_tree(char *old, char *new)
|
|||
err = kern_path(new, 0, &path);
|
||||
if (err)
|
||||
return err;
|
||||
tagged = collect_mounts(path.mnt, path.dentry);
|
||||
tagged = collect_mounts(&path);
|
||||
path_put(&path);
|
||||
if (!tagged)
|
||||
return -ENOMEM;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue