Return-Path: Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Sun, 26 Nov 2017 10:23:08 +0100 (CET) Received: by mail-wr0-x241.google.com with SMTP id a63so23676315wrc.12 for ; Sun, 26 Nov 2017 01:23:08 -0800 (PST) References: <5A1A8117.4080401@vcomp.ch> From: Milan Broz Message-ID: <7dc1112b-74f7-ca08-36bd-5710364cc845@gmail.com> Date: Sun, 26 Nov 2017 10:23:03 +0100 MIME-Version: 1.0 In-Reply-To: <5A1A8117.4080401@vcomp.ch> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] kernel: CONFIG_KEYS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Karel , "dm-crypt@saout.de" On 11/26/2017 09:53 AM, Karel wrote: > Hello, > > in linux kernel, there is this option: CONFIG_KEYS > > "Security options" -> "Enable access key retention support" > > from the description it is not clear to me whether this has any > relevance to cryptsetup. > > Does cryptsetup use this facility ? Hi, new cryptsetup (version 2) will use kernel keyring (for dm-crypt volume key and also for activation by so-called token in LUKS2). But it will be optional, and cryptsetup should still work even without it. If you are using LUKS version 1 (almost every device today), kernel keyring is not used. But keyring can be used for LUKS by some other services (systemd cache passphrase this way already). So I would suggest to enable it in your kernel, despite it is not yet necessary to use in cryptsetup. Milan