summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_acl.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-12-14 01:56:26 +0000
committeralfred <alfred@FreeBSD.org>2002-12-14 01:56:26 +0000
commitd070c0a52d25d76fe9298c4217dc07e9439decca (patch)
treef2f1c63d7a3acfeb3493534ac55908632c5769ee /sys/kern/vfs_acl.c
parent069ffa44b51ac78013fd8505fb1faf6c57b4bb12 (diff)
downloadFreeBSD-src-d070c0a52d25d76fe9298c4217dc07e9439decca.zip
FreeBSD-src-d070c0a52d25d76fe9298c4217dc07e9439decca.tar.gz
SCARGS removal take II.
Diffstat (limited to 'sys/kern/vfs_acl.c')
-rw-r--r--sys/kern/vfs_acl.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/sys/kern/vfs_acl.c b/sys/kern/vfs_acl.c
index 2a182cd..b194454 100644
--- a/sys/kern/vfs_acl.c
+++ b/sys/kern/vfs_acl.c
@@ -689,11 +689,11 @@ __acl_get_file(struct thread *td, struct __acl_get_file_args *uap)
int error;
mtx_lock(&Giant);
- NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, SCARG(uap, path), td);
+ NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, uap->path, td);
error = namei(&nd);
if (error == 0) {
- error = vacl_get_acl(td, nd.ni_vp, SCARG(uap, type),
- SCARG(uap, aclp));
+ error = vacl_get_acl(td, nd.ni_vp, uap->type,
+ uap->aclp);
NDFREE(&nd, 0);
}
mtx_unlock(&Giant);
@@ -712,11 +712,11 @@ __acl_set_file(struct thread *td, struct __acl_set_file_args *uap)
int error;
mtx_lock(&Giant);
- NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, SCARG(uap, path), td);
+ NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, uap->path, td);
error = namei(&nd);
if (error == 0) {
- error = vacl_set_acl(td, nd.ni_vp, SCARG(uap, type),
- SCARG(uap, aclp));
+ error = vacl_set_acl(td, nd.ni_vp, uap->type,
+ uap->aclp);
NDFREE(&nd, 0);
}
mtx_unlock(&Giant);
@@ -735,10 +735,10 @@ __acl_get_fd(struct thread *td, struct __acl_get_fd_args *uap)
int error;
mtx_lock(&Giant);
- error = getvnode(td->td_proc->p_fd, SCARG(uap, filedes), &fp);
+ error = getvnode(td->td_proc->p_fd, uap->filedes, &fp);
if (error == 0) {
error = vacl_get_acl(td, (struct vnode *)fp->f_data,
- SCARG(uap, type), SCARG(uap, aclp));
+ uap->type, uap->aclp);
fdrop(fp, td);
}
mtx_unlock(&Giant);
@@ -757,10 +757,10 @@ __acl_set_fd(struct thread *td, struct __acl_set_fd_args *uap)
int error;
mtx_lock(&Giant);
- error = getvnode(td->td_proc->p_fd, SCARG(uap, filedes), &fp);
+ error = getvnode(td->td_proc->p_fd, uap->filedes, &fp);
if (error == 0) {
error = vacl_set_acl(td, (struct vnode *)fp->f_data,
- SCARG(uap, type), SCARG(uap, aclp));
+ uap->type, uap->aclp);
fdrop(fp, td);
}
mtx_unlock(&Giant);
@@ -779,10 +779,10 @@ __acl_delete_file(struct thread *td, struct __acl_delete_file_args *uap)
int error;
mtx_lock(&Giant);
- NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, SCARG(uap, path), td);
+ NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, uap->path, td);
error = namei(&nd);
if (error == 0) {
- error = vacl_delete(td, nd.ni_vp, SCARG(uap, type));
+ error = vacl_delete(td, nd.ni_vp, uap->type);
NDFREE(&nd, 0);
}
mtx_unlock(&Giant);
@@ -801,10 +801,10 @@ __acl_delete_fd(struct thread *td, struct __acl_delete_fd_args *uap)
int error;
mtx_lock(&Giant);
- error = getvnode(td->td_proc->p_fd, SCARG(uap, filedes), &fp);
+ error = getvnode(td->td_proc->p_fd, uap->filedes, &fp);
if (error == 0) {
error = vacl_delete(td, (struct vnode *)fp->f_data,
- SCARG(uap, type));
+ uap->type);
fdrop(fp, td);
}
mtx_unlock(&Giant);
@@ -823,11 +823,11 @@ __acl_aclcheck_file(struct thread *td, struct __acl_aclcheck_file_args *uap)
int error;
mtx_lock(&Giant);
- NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, SCARG(uap, path), td);
+ NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, uap->path, td);
error = namei(&nd);
if (error == 0) {
- error = vacl_aclcheck(td, nd.ni_vp, SCARG(uap, type),
- SCARG(uap, aclp));
+ error = vacl_aclcheck(td, nd.ni_vp, uap->type,
+ uap->aclp);
NDFREE(&nd, 0);
}
mtx_unlock(&Giant);
@@ -846,10 +846,10 @@ __acl_aclcheck_fd(struct thread *td, struct __acl_aclcheck_fd_args *uap)
int error;
mtx_lock(&Giant);
- error = getvnode(td->td_proc->p_fd, SCARG(uap, filedes), &fp);
+ error = getvnode(td->td_proc->p_fd, uap->filedes, &fp);
if (error == 0) {
error = vacl_aclcheck(td, (struct vnode *)fp->f_data,
- SCARG(uap, type), SCARG(uap, aclp));
+ uap->type, uap->aclp);
fdrop(fp, td);
}
mtx_unlock(&Giant);
OpenPOWER on IntegriCloud