History

apparmor: put back designators in struct initialisers

Stephen Rothwell committed 9 years ago

Commit c4758fa1 parent c377a2c1 file · +2 −2Browse files

Unified · Split

security/apparmor/file.c+2−2
@@ -472,8 +472,8 @@ audit: · 471 unmodified lines
472int aa_path_link(struct aa_label *label, struct dentry *old_dentry,472int aa_path_link(struct aa_label *label, struct dentry *old_dentry,
473 const struct path *new_dir, struct dentry *new_dentry)473 const struct path *new_dir, struct dentry *new_dentry)
474{474{
475 struct path link = { new_dir->mnt, new_dentry };475 struct path link = { .mnt = new_dir->mnt, .dentry = new_dentry };
476 struct path target = { new_dir->mnt, old_dentry };476 struct path target = { .mnt = new_dir->mnt, .dentry = old_dentry };
477 struct path_cond cond = {477 struct path_cond cond = {
478 d_backing_inode(old_dentry)->i_uid,478 d_backing_inode(old_dentry)->i_uid,
479 d_backing_inode(old_dentry)->i_mode479 d_backing_inode(old_dentry)->i_mode