From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752466Ab3FGGD5 (ORCPT ); Fri, 7 Jun 2013 02:03:57 -0400 Received: from cantor2.suse.de ([195.135.220.15]:38241 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750789Ab3FGGD4 (ORCPT ); Fri, 7 Jun 2013 02:03:56 -0400 Date: Fri, 07 Jun 2013 08:04:30 +0200 Message-ID: From: Takashi Iwai To: Ming Lei Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v1 4/4] firmware loader: don't allow to request firmware via relative path In-Reply-To: References: <1370520110-32293-1-git-send-email-ming.lei@canonical.com> <1370520110-32293-5-git-send-email-ming.lei@canonical.com> <20130606194847.GB4526@kroah.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.2 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Fri, 7 Jun 2013 09:30:09 +0800, Ming Lei wrote: > > On Fri, Jun 7, 2013 at 3:48 AM, Greg Kroah-Hartman > wrote: > > On Thu, Jun 06, 2013 at 08:01:50PM +0800, Ming Lei wrote: > >> It isn't a good pratice to request firmware via relative path, also > >> might have security issue, so don't do it. > > > > What would the security issue be? You are letting the person who build > > the kernel specify this, so they can put whatever they want in here, a > > '..' isn't going to keep them from being able to do "bad" things if they > > really want to. > > In VM case, guest kernel might access host filesystem files via this trick, > but not sure if it is possible. > > Takashi, could you explain the security issue of relative path? Well, I don't know, too. My original question was what happens if you pass a relative path to firmware_class.fw_path_para module option (or the new kconfig)... Takashi