diff options
| author | 2010-12-14 20:26:44 +0000 | |
|---|---|---|
| committer | 2010-12-14 20:26:44 +0000 | |
| commit | e41bee0eabce14d3d26f662178bc5469bce2f189 (patch) | |
| tree | 5c1c71962fe52b7c7bd78dcb193b4ea36b0c13bc /sys/crypto/cryptodev.c | |
| parent | "Implement fast path TLB miss handling. Walk the page table without (diff) | |
| download | wireguard-openbsd-e41bee0eabce14d3d26f662178bc5469bce2f189.tar.xz wireguard-openbsd-e41bee0eabce14d3d26f662178bc5469bce2f189.zip | |
disable access to the crypto(4) device from userland; ok deraadt
Diffstat (limited to 'sys/crypto/cryptodev.c')
| -rw-r--r-- | sys/crypto/cryptodev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c index f94eff769b5..ca54d1df247 100644 --- a/sys/crypto/cryptodev.c +++ b/sys/crypto/cryptodev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptodev.c,v 1.74 2010/10/06 22:19:20 mikeb Exp $ */ +/* $OpenBSD: cryptodev.c,v 1.75 2010/12/14 20:26:44 mikeb Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -114,8 +114,8 @@ int cryptodev_dokey(struct crypt_kop *kop, struct crparam kvp[]); int cryptodev_cb(struct cryptop *); int cryptodevkey_cb(struct cryptkop *); -int usercrypto = 1; /* userland may do crypto requests */ -int userasymcrypto = 1; /* userland may do asymmetric crypto reqs */ +int usercrypto = 0; /* userland may do crypto requests */ +int userasymcrypto = 0; /* userland may do asymmetric crypto reqs */ int cryptodevallowsoft = 0; /* only use hardware crypto */ /* ARGSUSED */ |
