summaryrefslogtreecommitdiffstats
path: root/usr.bin/quota/quota.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant declarations.das2003-08-051-2/+0
|
* Don't overflow the block quota calculations for NFS mounts.das2003-08-051-3/+3
| | | | | PR: 47607 Submitted by: Eric van Gyzen <vangyzen@stat.duke.edu>
* Now that the kernel access control for quotactl(2) appears to workrwatson2003-06-151-32/+0
| | | | | | | | | | | | | | | | | | | | | | | 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).
* Now that the kernel access control for quotactl(2) appears to workrwatson2003-06-151-17/+0
| | | | | | | | | | | | | | | 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.
* Add a new flag (-l) that suppresses quota checks on NFS filesystems.iedowse2002-08-091-4/+10
| | | | | PR: bin/12939 Submitted by: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
* Fix a few compiler warnings, sort options and make the usage()iedowse2002-08-091-16/+17
| | | | output match the synopsis.
* Call getmntinfo with MNT_NOWAIT to avoid hanging if any NFS serversiedowse2002-06-031-1/+8
| | | | | | | | are down. Avoid trying to send RPCs to the pidXXX@machine names used in the special amd(8) mounts. PR: bin/6183 Submitted by: Petr Lampa <lampa@fee.vutbr.cz>
* Fix some low-hanging fruit in the warnings department; ANSIfy functions,markm2002-04-281-88/+59
| | | | sort out some const issues.
* remove __Pimp2002-03-221-2/+2
|
* Changed 'blocks' to 'usage' because we may not be getting quotas frompirzyk2001-05-231-1/+1
| | | | | | | | | | a ufs filesystem and it may be reporting in K instead of 512b blocks. This is true when using a vxfs filesystem (on a solaris box) for instance. PR: bin/14545 Submitted by: Jim Pirzyk Reviewed by: jkh MFC after: 1 week
* Remove incorrect use of .Nm. Wrap long lines, Unwrap short linescharnier2000-03-261-7/+7
| | | | Options: -> The following options are available:
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Local filesystems are ufs not ffsache1998-06-111-2/+2
| | | | Submitted by: "D. Rock" <rock@cs.uni-sb.de>
* Don't assume that hp->h_lenght == 4. Be conservative in its use.imp1998-06-091-2/+2
| | | | Submitted by: J. Assange a long time ago.
* Converted to Lite2 mount interface - decide filesystem types by namebde1998-01-201-3/+3
| | | | instead of by number.
* Use err(3). Cosmetic in usage string. Typo in man page.charnier1997-08-041-41/+31
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Code clean up. Prototypes, casting, and parentheses around assignmentsalex1996-06-151-18/+48
| | | | used as truth value.
* fixed some printf format mismatches and some lines exceeding 80 col'sgraichen1996-01-091-16/+20
| | | | (thanks to bruce)
* Obtained from: NetBSDgraichen1996-01-051-86/+273
| | | | | | replaced our quota with the NetBSD one, then added all changes we made to our - this is done to support the displaying of quota's over nfs using the rpc.rquotad
* Fix 3 fatal mismatches in format args involving dbtob() and 10 nonfatalbde1995-05-071-11/+14
| | | | mismatches.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+510
OpenPOWER on IntegriCloud