Skip to content
This repository was archived by the owner on Jan 28, 2023. It is now read-only.

Commit edcd0ef

Browse files
committed
Fixed mode for VM/VCPU inodes
Signed-off-by: Alexandro Sanchez Bach <[email protected]>
1 parent 8f59564 commit edcd0ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

platforms/linux/components.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ static void hax_component_perm(const char *devname, struct miscdevice *misc)
106106
inode = path.dentry->d_inode;
107107
inode->i_uid.val = cred->uid.val;
108108
inode->i_gid.val = cred->gid.val;
109-
inode->i_mode = 0660;
110-
mark_inode_dirty(inode);
109+
inode->i_mode |= 0660;
111110
}
112111

113112
static hax_vcpu_linux_t* hax_vcpu_create_linux(struct vcpu_t *cvcpu,

0 commit comments

Comments
 (0)