]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Now that the kernel access control for quotactl(2) appears to work
authorRobert Watson <rwatson@FreeBSD.org>
Sun, 15 Jun 2003 06:46:24 +0000 (06:46 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Sun, 15 Jun 2003 06:46:24 +0000 (06:46 +0000)
commit41b0d1a0645b48312e410f5595c017bfd98c5fe1
treee691552bf40e3d3f99d12bdb37598cf99ff65f3c
parent44533b172284854c40a117608129a6643f735cc2
Now that the kernel access control for quotactl(2) appears to work
properly, clean up quota(1).  quota(1) has the ability to query
quotas either directly from the kernel, or if that fails, by reading
the quota.user or quota.group files specified for the file system
in /etc/fstab.  The setuid bit existed solely (apparently) to let
non-operator users query their quotas and consumption when quotas
weren't enabled for the file system.

o Remove the setuid bit from quota(1).

o Remove the logic used by quota(1) when running setuid to prevent
  users from querying the quotas of other users or groups.  Note
  that this papered over previously broken kernel access control.
usr.bin/quota/Makefile
usr.bin/quota/quota.c