projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f00b5e4
)
Use jailed() inline-function
author
Michael Neumann <mneumann@ntecs.de>
Tue, 16 Dec 2008 21:48:47 +0000 (21:48 +0000)
committer
Michael Neumann <mneumann@ntecs.de>
Tue, 16 Dec 2008 21:48:47 +0000 (21:48 +0000)
sys/kern/vfs_syscalls.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/kern/vfs_syscalls.c
b/sys/kern/vfs_syscalls.c
index
948c724
..
3d01f14
100644
(file)
--- a/
sys/kern/vfs_syscalls.c
+++ b/
sys/kern/vfs_syscalls.c
@@
-126,7
+126,7
@@
sys_mount(struct mount_args *uap)
struct ucred *cred = p->p_ucred;
KKASSERT(p);
- if (cred->cr_prison != NULL)
+ if (jailed(cred))
return (EPERM);
if (usermount == 0 && (error = priv_check(td, PRIV_ROOT)))
return (error);