apparmor: move path_link mediation to using labels

Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen
2017-06-09 16:06:21 -07:00
parent aebd873e8d
commit 8014370f12
3 changed files with 59 additions and 47 deletions

View File

@@ -332,8 +332,7 @@ static int apparmor_path_link(struct dentry *old_dentry, const struct path *new_
label = begin_current_label_crit_section();
if (!unconfined(label))
error = aa_path_link(labels_profile(label), old_dentry, new_dir,
new_dentry);
error = aa_path_link(label, old_dentry, new_dir, new_dentry);
end_current_label_crit_section(label);
return error;