Re: [q] make modules_install as non-root?

From: Coywolf Qi Hunt
Date: Thu Dec 01 2005 - 21:58:34 EST


2005/12/2, Peter Williams <pwil3058@xxxxxxxxxxxxxx>:
> Coywolf Qi Hunt wrote:
> > Hello people,
> >
> > I wrote my own installkernel so I can do `make install' as non-root
> > with the help of sudo. But how can we get to do `make modules_install'
> > as non-root with sudo as well?
> >
> > The works of modules_install seem scattered over several places. Is
> > it a nice idea to factor out an *installmodules* script for `make
> > modules_install' to invoke?
> >
> > ps:
> > Linus recommend us to build as non-root and install as root.
> > I ask if we should install as non-root too.
>
> Personally, I just use "sudo make install" or "sudo make
> modules_install" to do installations as an ordinary user. No need for
> special scripts or modifications to the build procedure.

That's rather insecure. You have to add /usr/bin/make in your sudoers,
then an malicious Makefile could do harm. I'm being paranoid. But we
all are since we avoid to use root.
--
Coywolf Qi Hunt
http://sosdg.org/~coywolf/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/