Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54245702 authored by Nathan Scott's avatar Nathan Scott
Browse files

[XFS] Fix symlink creation too, with respect to initialising SELinux


context.

SGI-PV: 946762
SGI-Modid: xfs-linux-melb:xfs-kern:24983a

Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent 0238cb4e
Loading
Loading
Loading
Loading
+8 −5
Original line number Original line Diff line number Diff line
@@ -474,11 +474,14 @@ linvfs_symlink(


	error = 0;
	error = 0;
	VOP_SYMLINK(dvp, dentry, &va, (char *)symname, &cvp, NULL, error);
	VOP_SYMLINK(dvp, dentry, &va, (char *)symname, &cvp, NULL, error);
	if (!error && cvp) {
	if (likely(!error && cvp)) {
		error = linvfs_init_security(cvp, dir);
		if (likely(!error)) {
			ip = LINVFS_GET_IP(cvp);
			ip = LINVFS_GET_IP(cvp);
			d_instantiate(dentry, ip);
			d_instantiate(dentry, ip);
			validate_fields(dir);
			validate_fields(dir);
		validate_fields(ip); /* size needs update */
			validate_fields(ip);
		}
	}
	}
	return -error;
	return -error;
}
}