Re: [Mono-dev] Dropping privileges in linux

2006-01-02 Thread Paolo Molaro
On 12/24/05 Miguel de Icaza wrote: I am looking for a way to drop privileges of an assembly started as 'root' to a normal user. I found two possible solutions, but didn't succeed with either of them ... a) Using Syscall Syscall.setgid(1000);

Re: [Mono-dev] Dropping privileges in linux

2005-12-24 Thread Georgi Moskov
Hi Robert, I understand that the problem is related to the linux setXid() implementation in a multi-threaded environment but I also realise that this behaviour shows only in certain situations. So can you please give me some more information about your linux and mono installations: - What

Re: [Mono-dev] Dropping privileges in linux

2005-12-24 Thread Georgi Moskov
Hi Miguel, On 12/24/05, Miguel de Icaza [EMAIL PROTECTED] wrote: We recently discovered that Linux is pretty broken when it comes to setuid. The brokeness does not show up in most programs, but it *might* show up with things like Mono. The problem is that setuid in Linux has no kernel

Re: [Mono-dev] Dropping privileges in linux

2005-12-24 Thread Miguel de Icaza
Hello, Thanks for your answer, I think that now I understand the problem. I noticed that in mono the GC is implemented in the libgc library and as it is written in the readme the libgc implementation can safely work with threads and can also cope with signals by deferring them. Can you

Re: [Mono-dev] Dropping privileges in linux

2005-12-23 Thread Miguel de Icaza
Hello, I am looking for a way to drop privileges of an assembly started as 'root' to a normal user. I found two possible solutions, but didn't succeed with either of them ... a) Using Syscall Syscall.setgid(1000); Syscall.setuid(1000); there 1000 is the uid

[Mono-dev] Dropping privileges in linux

2005-12-21 Thread Georgi Moskov
Hi all, I am looking for a way to drop privileges of an assembly started as 'root' to a normal user. I found two possible solutions, but didn't succeed with either of them ... a) Using Syscall Syscall.setgid(1000); Syscall.setuid(1000); there 1000 is the uid and gid of an existing

Re: [Mono-dev] Dropping privileges in linux

2005-12-21 Thread Robert Jordan
Georgi, I am looking for a way to drop privileges of an assembly started as 'root' to a normal user. I found two possible solutions, but didn't succeed with either of them ... a) Using Syscall Syscall.setgid(1000); Syscall.setuid(1000); there 1000 is the uid and gid of an existing

Re: [Mono-dev] Dropping privileges in linux

2005-12-21 Thread Georgi Moskov
On 12/21/05, Robert Jordan [EMAIL PROTECTED] wrote: Georgi, I am looking for a way to drop privileges of an assembly started as 'root' to a normal user. I found two possible solutions, but didn't succeed with either of them ... a) Using Syscall Syscall.setgid(1000);