aboutsummaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2003-06-15 06:54:36 +0000
committerRobert Watson <rwatson@FreeBSD.org>2003-06-15 06:54:36 +0000
commitaee1b42ab6a40c51142f9204c9304e179805d871 (patch)
tree9df0a2d4ff8f76facfe5c172f5ef8eb8525acf0a /release
parent41b0d1a0645b48312e410f5595c017bfd98c5fe1 (diff)
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; if you queried directly using the system call, you could access some of the data "restricted" by quota(1). In the new world order, the ability to inspect the (live) quotas of other uids and gids via the kernel is controlled by the privilege requirement sysctl. The ability to query via the file is controlled by the file permissions on the quota database backing files (root:operator, group readable by default).
Notes
svn path=/head/; revision=116386
Diffstat (limited to 'release')
0 files changed, 0 insertions, 0 deletions