Commit c4758fa5 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by James Morris

apparmor: put back designators in struct initialisers

Fixes: 8014370f ("apparmor: move path_link mediation to using labels")
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Acked-by: default avatarJohn Johansen <john.johansen@canonical.com>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarJames Morris <james.l.morris@oracle.com>
parent c377a2c8
...@@ -472,8 +472,8 @@ static int profile_path_link(struct aa_profile *profile, ...@@ -472,8 +472,8 @@ static int profile_path_link(struct aa_profile *profile,
int aa_path_link(struct aa_label *label, struct dentry *old_dentry, int aa_path_link(struct aa_label *label, struct dentry *old_dentry,
const struct path *new_dir, struct dentry *new_dentry) const struct path *new_dir, struct dentry *new_dentry)
{ {
struct path link = { new_dir->mnt, new_dentry }; struct path link = { .mnt = new_dir->mnt, .dentry = new_dentry };
struct path target = { new_dir->mnt, old_dentry }; struct path target = { .mnt = new_dir->mnt, .dentry = old_dentry };
struct path_cond cond = { struct path_cond cond = {
d_backing_inode(old_dentry)->i_uid, d_backing_inode(old_dentry)->i_uid,
d_backing_inode(old_dentry)->i_mode d_backing_inode(old_dentry)->i_mode
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment