cvs commit: src/sys/vfs/ufs ufs_vfsops.c
Hiten Pandya
hmp at crater.dragonflybsd.org
Thu Jun 3 08:41:10 PDT 2004
hmp 2004/06/03 08:40:22 PDT
DragonFly src repository
Modified files:
sys/vfs/ufs ufs_vfsops.c
Log:
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]
Revision Changes Path
1.8 +14 -2 src/sys/vfs/ufs/ufs_vfsops.c
http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ufs/ufs_vfsops.c.diff?r1=1.7&r2=1.8&f=h
More information about the Commits
mailing list