From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16442 invoked by alias); 28 Sep 2009 20:00:32 -0000 Received: (qmail 16417 invoked by uid 22791); 28 Sep 2009 20:00:30 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Sep 2009 20:00:24 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id B83C1151B27E; Mon, 28 Sep 2009 21:00:22 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jyIrnTGh0X7W; Mon, 28 Sep 2009 21:00:19 +0100 (BST) Date: Mon, 28 Sep 2009 20:00:00 -0000 Message-Id: From: Bart Veer To: Paul Chavent CC: ecos-patches@ecos.sourceware.org In-reply-to: <4ABD0DD3.1090608@fnac.net> (message from Paul Chavent on Fri, 25 Sep 2009 20:37:07 +0200) Subject: Re: host : make install fail if not root References: <4ABD0DD3.1090608@fnac.net> Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2009-09/txt/msg00038.txt.bz2 >>>>> "Paul" == Paul Chavent writes: Paul> If i do the sequence "./configure make make install" for Paul> host side tools, and if i'am not root, the install fail. Paul> I think we should not need to be root for succedd the Paul> install. Paul> So i suggest this patch. Paul> I'am not sure it is the good solution. There is no good solution. Install failures when not running as root may confuse some users. However if e.g. rawether is not installed suid root then the synthetic target's ethernet driver will fail to work, and that will also confuse some users. Possibly the most appropriate solution would involve something like: 1) if installing as root, just do the chmod's as per the current Makefile.am rules. 2) if installing without root privileges, skip the chmod's but output a message warning that the install is incomplete. That is better than silently producing an install that won't work. However many users will ignore any such warnings, so we also need: 3) both rawether and usbchmod should detect whether or not they are running with appropriate privileges and, if not, output very clear messages about the problem and what should be done to fix it. They may already do so, I don't remember. A patch along those lines should be acceptable. However it would also likely be big enough to require a copyright assignment, see http://ecos.sourceware.org/contrib.html Bart -- Bart Veer eCos Configuration Architect eCosCentric Limited The eCos experts http://www.ecoscentric.com/ Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No 4422071. >>>> Visit us at ESC-UK http://www.embedded.co.uk <<<< >>>> Oct 7-8 on Stand 433 at FIVE ISC, Farnborough <<<<