Quotactl(2) should set the uid correctly, based on the QUOTA type supplied.
authorHiten Pandya <hmp@dragonflybsd.org>
Thu, 3 Jun 2004 15:40:22 +0000 (15:40 +0000)
committerHiten Pandya <hmp@dragonflybsd.org>
Thu, 3 Jun 2004 15:40:22 +0000 (15:40 +0000)
commitaf7d91375c21d5055af5fd0467d1d5b5dbd3300f
tree8c24bc095bcd344da17d842e0643074649703cd9
parentcfd11b90ec12af9e7bcd1517d904f694e0a04491
Quotactl(2) should set the uid correctly, based on the QUOTA type supplied.

Previously, it would set the uid to p->p_ucred->cr_ruid unconditionally
without checking if the QUOTA type is GRPQUOTA or USRQUOTA; thus allowing
a user with UID X to access the groupquota of gid X.

Inspired-by: PR# 33940 (by Vladimir B. Grebenschikov) [FreeBSD GNATS]
sys/vfs/ufs/ufs_vfsops.c