Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 56479 | Differences between
and this patch

Collapse All | Expand All

(-)a/fs/attr.c (+1 lines)
Lines 33-38 Link Here
33
33
34
	/* Make sure caller can chgrp. */
34
	/* Make sure caller can chgrp. */
35
	if ((ia_valid & ATTR_GID) &&
35
	if ((ia_valid & ATTR_GID) &&
36
	    (current->fsuid != inode->i_uid ||
36
	    (!in_group_p(attr->ia_gid) && attr->ia_gid != inode->i_gid) &&
37
	    (!in_group_p(attr->ia_gid) && attr->ia_gid != inode->i_gid) &&
37
	    !capable(CAP_CHOWN))
38
	    !capable(CAP_CHOWN))
38
		goto error;
39
		goto error;

Return to bug 56479