1 |
On 25-11-2009 17:01:19 -0700, Denis Dupeyron wrote: |
2 |
> It looks like this question is still unanswered: |
3 |
> |
4 |
> On Thu, Nov 19, 2009 at 5:26 PM, Denis Dupeyron <calchan@g.o> wrote: |
5 |
> >> How are dynamically linked set*id programs going to work? |
6 |
|
7 |
Depends on how the host OS/libc handles this :) |
8 |
|
9 |
If you're root, you can install a program that any user can call and |
10 |
run as if that user were root. If you're a normal user, you just |
11 |
install a program that any user can call and run as if that user were |
12 |
you. |
13 |
|
14 |
If you refer to GNU glibc ignoring or greatly limiting variables like |
15 |
LD_LIBRARY_PATH, then there is no problem in that for Prefix, since |
16 |
these variables are considered harmful anyway. We don't use them. |
17 |
Prefix uses RUNPATH (RPATH) in ELF objects to have the loader find the |
18 |
correct libraries at runtime without any tricks. This is for instance |
19 |
handy when someone calls a binary from a Prefix without having properly |
20 |
initialised the Prefix environment. While this is not what we advise |
21 |
people to do, it can work fine for applications like subversion. |
22 |
|
23 |
|
24 |
-- |
25 |
Fabian Groffen |
26 |
Gentoo on a different level |