| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Make timeprt always allocate memory, to make things a little simpler.
Remove an unused variable.
|
|
|
|
|
|
| |
from running together when a field overflows.
MFC after: 1 week
|
|
|
|
| |
Pointed out by: ru
|
|
|
|
|
|
|
|
|
| |
-f path
Only print quota information for the file system that path resides on.
-r
Display the quota information in a raw format.
Reviewed by: freebsd-hackers
|
|
|
|
|
|
|
|
|
|
|
|
| |
limit, quota will report one of the grace times incorrectly.
This is due to it storing the result in a static buffer, and the
routine being called like:
printf("....", ..., timeprnt(btime), timeprnt(itime), ...)
The problem becomes very obvious if you change one of the default
grace periods to be much larger than the other one.
Changed timeprnt to dynamically allocate the string to be displayed.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in fstab and they are normally mounted as /a/b, if /b is not mounted,
the various quota utilities will incorrectly operate with the quotas on
/a (silently) when operations are attemted on /b.
Sync up all the hasquota() routines between all the different
quota utilities and change it to detect if the file system we are
attempting to perform quota operations on is not currently mounted
and warn the user accordingly.
PR: bin/38918
|
|
|
|
|
|
| |
systems are over quota, as documented in the man page.
PR: bin/77918
|
|
|
|
|
|
| |
- Add option -h, human-readable output.
PR: docs/53732
|
|
|
|
| |
Approved by: murray (mentor)
|
| |
|
| |
|
| |
|
|
|
|
|
| |
PR: 47607
Submitted by: Eric van Gyzen <vangyzen@stat.duke.edu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Approved by: re
|
|
|
|
|
| |
PR: bin/12939
Submitted by: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
|
|
|
|
| |
output match the synopsis.
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
sort out some const issues.
|
| |
|
| |
|
|
|
|
|
|
| |
This is not "useless", as one may have non-default
setting for BINOWN in make.conf, and we still want
these to be installed setuid root in this case.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Options: -> The following options are available:
|
| |
|
| |
|
|
|
|
| |
Submitted by: "D. Rock" <rock@cs.uni-sb.de>
|
|
|
|
| |
Submitted by: J. Assange a long time ago.
|
|
|
|
| |
instead of by number.
|
| |
|
|
|
|
| |
posix standard on the topic.
|
| |
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
|
| |
|
|
|
|
| |
used as truth value.
|
|
|
|
| |
(thanks to bruce)
|
|
|
|
|
|
| |
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
|
|
|
|
| |
mismatches.
|
|
|