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 <[email protected]> Acked-by: John Johansen <[email protected]> Acked-by: Kees Cook <[email protected]> Signed-off-by: James Morris <[email protected]>
1 parent c377a2c commit c4758fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)