summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2007-02-19 13:33:10 +0000
committerRobert Watson <rwatson@FreeBSD.org>2007-02-19 13:33:10 +0000
commit95b091d2f287c7edb163703bf9177f44a46f2a2e (patch)
tree1afe170b3c52f4fde379018a84f110d151b03de9 /sys/ufs
parente82d0201bd4f03a90bd4f24ff22dca5a5118a5e1 (diff)
Notes
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/ufs_quota.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c
index 55e91b97cfca..b02fd94b40ac 100644
--- a/sys/ufs/ufs/ufs_quota.c
+++ b/sys/ufs/ufs/ufs_quota.c
@@ -187,7 +187,7 @@ chkdq(ip, change, cred, flags)
return (0);
}
if ((flags & FORCE) == 0 && priv_check_cred(cred,
- PRIV_UFS_EXCEEDQUOTA, 0)) {
+ PRIV_VFS_EXCEEDQUOTA, 0)) {
for (i = 0; i < MAXQUOTAS; i++) {
if ((dq = ip->i_dquot[i]) == NODQUOT)
continue;
@@ -310,7 +310,7 @@ chkiq(ip, change, cred, flags)
return (0);
}
if ((flags & FORCE) == 0 && priv_check_cred(cred,
- PRIV_UFS_EXCEEDQUOTA, 0)) {
+ PRIV_VFS_EXCEEDQUOTA, 0)) {
for (i = 0; i < MAXQUOTAS; i++) {
if ((dq = ip->i_dquot[i]) == NODQUOT)
continue;
@@ -620,7 +620,7 @@ getquota(td, mp, id, type, addr)
case USRQUOTA:
if ((td->td_ucred->cr_uid != id) && !unprivileged_get_quota) {
error = priv_check_cred(td->td_ucred,
- PRIV_UFS_GETQUOTA, SUSER_ALLOWJAIL);
+ PRIV_VFS_GETQUOTA, SUSER_ALLOWJAIL);
if (error)
return (error);
}
@@ -630,7 +630,7 @@ getquota(td, mp, id, type, addr)
if (!groupmember(id, td->td_ucred) &&
!unprivileged_get_quota) {
error = priv_check_cred(td->td_ucred,
- PRIV_UFS_GETQUOTA, SUSER_ALLOWJAIL);
+ PRIV_VFS_GETQUOTA, SUSER_ALLOWJAIL);
if (error)
return (error);
}
@@ -665,7 +665,7 @@ setquota(td, mp, id, type, addr)
struct dqblk newlim;
int error;
- error = priv_check_cred(td->td_ucred, PRIV_UFS_SETQUOTA,
+ error = priv_check_cred(td->td_ucred, PRIV_VFS_SETQUOTA,
SUSER_ALLOWJAIL);
if (error)
return (error);