public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
From: Bart Veer <bartv@ecoscentric.com>
To: Paul Chavent <paul.chavent@fnac.net>
Cc: ecos-patches@ecos.sourceware.org
Subject: Re: host : make install fail if not root
Date: Mon, 28 Sep 2009 20:00:00 -0000	[thread overview]
Message-ID: <pn63b2vnzh.fsf@delenn.bartv.net> (raw)
In-Reply-To: <4ABD0DD3.1090608@fnac.net> (message from Paul Chavent on Fri, 25 	Sep 2009 20:37:07 +0200)

>>>>> "Paul" == Paul Chavent <paul.chavent@fnac.net> 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 <<<<

      reply	other threads:[~2009-09-28 20:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-25 18:28 Paul Chavent
2009-09-28 20:00 ` Bart Veer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pn63b2vnzh.fsf@delenn.bartv.net \
    --to=bartv@ecoscentric.com \
    --cc=ecos-patches@ecos.sourceware.org \
    --cc=paul.chavent@fnac.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).