Search Linux Wireless

Re: [RFC] compat: Add ability to run as non-root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 9, 2012 at 7:54 AM, Ozan Çağlayan <ozancag@xxxxxxxxx> wrote:
> If the EUID of the process is not 0, assume that get-compat-kernels
> is run as a regular user and extract the downloaded *.deb files
> from debs/ into

> ksrcs/:

How about $HOME/ksrc/ ?

> ksrcs/
> ├── lib
> │   └── modules
> │       ├── 2.6.24-020624-generic
> │       ├── 2.6.25-020625-generic
> │       ├── ...
> │       └── 3.4.4-030404-generic
> └── usr
>     └── src
>         ├── linux-headers-2.6.24-020624
>         ├── linux-headers-2.6.24-020624-generic
>         ├── linux-headers-2.6.25-020625
>         ├── linux-headers-2.6.25-020625-generic
>         ├── ...
>         ├── linux-headers-3.4.4-030404
>         └── linux-headers-3.4.4-030404-generic

Nice!

> If you still want to use your kernel sources under /, run
> get-compat-kernels

Neat!

> or ckmake with 'sudo'.

How about instead having ckmake detect first if you have your
$HOME/ksrc/ and if so use that, otherwise go with the built in stuff ?

> Adjust ckmake to look into ksrcs/lib/modules instead of
> /lib/modules in the EUID != 0.

Likewise -- if $HOME/ksrc/ exists just use that ?

> Finally put ksrcs into .gitignore for not losing the source
> trees after a 'git clean'.
>
> Tested both as root and non-root, works fine.
>
> Signed-off-by: Ozan Çağlayan <ozancag@xxxxxxxxx>

Good stuff though thanks!

  Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux