diff options
author | John Johansen <john.johansen@canonical.com> | 2017-06-10 01:06:21 +0200 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2017-06-11 02:11:44 +0200 |
commit | 8014370f1257619226b79cb6de8e28563fbbc070 (patch) | |
tree | 59706d973abe5372649c38707d9aecad5d52500e /security/apparmor/lsm.c | |
parent | apparmor: refactor path name lookup and permission checks around labels (diff) | |
download | linux-8014370f1257619226b79cb6de8e28563fbbc070.tar.xz linux-8014370f1257619226b79cb6de8e28563fbbc070.zip |
apparmor: move path_link mediation to using labels
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/lsm.c')
-rw-r--r-- | security/apparmor/lsm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c index d0c5721aa8b3..7a986763b2b7 100644 --- a/security/apparmor/lsm.c +++ b/security/apparmor/lsm.c @@ -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; |