Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756117AbYCUPlx (ORCPT ); Fri, 21 Mar 2008 11:41:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751121AbYCUPlp (ORCPT ); Fri, 21 Mar 2008 11:41:45 -0400 Received: from andromeda.dapyr.net ([206.212.254.10]:55991 "EHLO andromeda.dapyr.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750816AbYCUPlo (ORCPT ); Fri, 21 Mar 2008 11:41:44 -0400 Date: Fri, 21 Mar 2008 11:41:25 -0400 From: Konrad Rzeszutek To: Andrew Morton Cc: Randy Dunlap , linux-kernel@vger.kernel.org, ketuzsezr@darnok.org Subject: Re: [mmotm] iscsi_ibft build error Message-ID: <20080321154125.GA29019@andromeda.dapyr.net> References: <20080319115655.ff4cb67a.randy.dunlap@oracle.com> <20080320154555.2d74c0d5.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080320154555.2d74c0d5.akpm@linux-foundation.org> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1598 Lines: 36 On Thu, Mar 20, 2008 at 03:45:55PM -0700, Andrew Morton wrote: > On Wed, 19 Mar 2008 11:56:55 -0700 > Randy Dunlap wrote: > > > mmotm-2008-0318-1720/drivers/firmware/iscsi_ibft.c: In function 'ibft_show_attribute': > > mmotm-2008-0318-1720/drivers/firmware/iscsi_ibft.c:521: error: implicit declaration of function 'capable' > > mmotm-2008-0318-1720/drivers/firmware/iscsi_ibft.c:521: error: 'CAP_SYS_ADMIN' undeclared (first use in this function) > > mmotm-2008-0318-1720/drivers/firmware/iscsi_ibft.c:521: error: (Each undeclared identifier is reported only once > > mmotm-2008-0318-1720/drivers/firmware/iscsi_ibft.c:521: error: for each function it appears in.) > > make[3]: *** [drivers/firmware/iscsi_ibft.o] Error 1 > > > > --- a/drivers/firmware/iscsi_ibft.c~scsi-add-iscsi-ibft-support-fix > +++ a/drivers/firmware/iscsi_ibft.c > @@ -65,6 +65,7 @@ > > > #include > +#include > #include > #include > #include > > should do the trick. > > Does this driver actually need to run capable(CAP_SYS_ADMIN)? Can we not > rely upon permissions of the reelvant sysfs file? I followed what the efivars driver does. The permissions of the files are secure (as they are in the efivars), so one layer of protection could be suffice? -- 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/