Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751659AbbKAEBw (ORCPT ); Sun, 1 Nov 2015 00:01:52 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:56872 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750719AbbKAEBq (ORCPT ); Sun, 1 Nov 2015 00:01:46 -0400 Subject: Re: livepatch: old_name@old_addr scheme in livepatch sysfs directory To: Jessica Yu References: <1446263060-22175-1-git-send-email-chris.j.arges@canonical.com> <20151101015258.GA8199@packer-debian-8-amd64.digitalocean.com> Cc: live-patching@vger.kernel.org, Josh Poimboeuf , Seth Jennings , Jiri Kosina , Vojtech Pavlik , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org From: Chris J Arges X-Enigmail-Draft-Status: N1110 Message-ID: <56358EA4.10900@canonical.com> Date: Sat, 31 Oct 2015 23:01:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151101015258.GA8199@packer-debian-8-amd64.digitalocean.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1275 Lines: 34 On 10/31/2015 08:53 PM, Jessica Yu wrote: > +++ Chris J Arges [30/10/15 22:44 -0500]: >> The following directory structure will allow for cases when the same >> function name exists in a single object. >> /sys/kernel/livepatch/// > > Hi Chris, thanks for the patch. > > I think the last time this issue was discussed, the conclusion was > that concatenating the address to the function name constitutes as an > information leak (as the sysfs entry is visible to non-root users). > > One option suggested by Josh in that thread would be to do something > like "func.n", where n is just the nth occurrence of the symbol name. > Another option might be to keep the func@addr format but not make these > entries visible to non-root users. > > Jessica > Jessica, Makes sense to me. Is there a reason why the sysfs entries are visible to non-root users? Otherwise, if there is a use-case for keeping the permissions the same, then I'd be happy to to use the 'func.n' format for v2. --chris -- 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/