Use jailed() inline-function
authorMichael Neumann <mneumann@ntecs.de>
Tue, 16 Dec 2008 21:48:47 +0000 (21:48 +0000)
committerMichael Neumann <mneumann@ntecs.de>
Tue, 16 Dec 2008 21:48:47 +0000 (21:48 +0000)
sys/kern/vfs_syscalls.c

index 948c724..3d01f14 100644 (file)
@@ -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);