Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752048AbbHMGjy (ORCPT ); Thu, 13 Aug 2015 02:39:54 -0400 Received: from helcar.hengli.com.au ([209.40.204.226]:43957 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750908AbbHMGjx (ORCPT ); Thu, 13 Aug 2015 02:39:53 -0400 Date: Thu, 13 Aug 2015 14:38:23 +0800 From: Herbert Xu To: Joonsoo Kim Cc: Andrew Morton , Minchan Kim , Nitin Gupta , Sergey Senozhatsky , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, "David S. Miller" , Stephan Mueller Subject: Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem Message-ID: <20150813063823.GA20830@gondor.apana.org.au> References: <1439432654-23322-1-git-send-email-iamjoonsoo.kim@lge.com> <20150813031954.GA19481@gondor.apana.org.au> <20150813063755.GA13352@js1304-P5Q-DELUXE> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150813063755.GA13352@js1304-P5Q-DELUXE> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1112 Lines: 26 On Thu, Aug 13, 2015 at 03:37:55PM +0900, Joonsoo Kim wrote: > > Is there any way to access netlink interface and get the output from > kernel-side? I'd like to show information through > "/sys/block/zramX/comp_algorithm", because some user program can be > broken if we change output of userspace exposed interface. You could simply deprecate that interface but keep it for existing algorithms. Any new algorithms can then be queried through the crypto_user interface. The other option is to have a defined list of algorithms which is independent of the crypto API. For example, have a look at what IPsec does in net/xfrm/xfrm_algo.c. IPsec needs its own list because they come with annotations. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/