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 / +2 lines)
Lines 35-41 Link Here
35
35
36
	/* Make sure caller can chgrp. */
36
	/* Make sure caller can chgrp. */
37
	if ((ia_valid & ATTR_GID) &&
37
	if ((ia_valid & ATTR_GID) &&
38
	    (!in_group_p(attr->ia_gid) && attr->ia_gid != inode->i_gid) &&
38
	    (current->fsuid != inode->i_uid ||
39
	    (!in_group_p(attr->ia_gid) && attr->ia_gid != inode->i_gid)) &&
39
	    !capable(CAP_CHOWN))
40
	    !capable(CAP_CHOWN))
40
		goto error;
41
		goto error;
41
42

Return to bug 56479