Skip to content

Commit c4758fa

Browse files
sfrothwellJames Morris
authored andcommitted
apparmor: put back designators in struct initialisers
Fixes: 8014370 ("apparmor: move path_link mediation to using labels") Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Acked-by: John Johansen <john.johansen@canonical.com> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: James Morris <james.l.morris@oracle.com>
1 parent c377a2c commit c4758fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎security/apparmor/file.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,8 @@ static int profile_path_link(struct aa_profile *profile,
472472
int aa_path_link(struct aa_label *label, struct dentry *old_dentry,
473473
const struct path *new_dir, struct dentry *new_dentry)
474474
{
475-
struct path link = { new_dir->mnt, new_dentry };
476-
struct path target = { new_dir->mnt, old_dentry };
475+
struct path link = { .mnt = new_dir->mnt, .dentry = new_dentry };
476+
struct path target = { .mnt = new_dir->mnt, .dentry = old_dentry };
477477
struct path_cond cond = {
478478
d_backing_inode(old_dentry)->i_uid,
479479
d_backing_inode(old_dentry)->i_mode

0 commit comments

Comments
 (0)