Re: how to identify the superuser in C

2002-12-12 Thread Moritz Schulte
Oohara Yuuma [EMAIL PROTECTED] writes: fakeroot (or any other dynamic linker tricks) will not work on set[ug]id programs. libc can be trusted here. Is this Linux specific? (There can be a Hurd port in the sarge release). Of course the same protection is present in GNU/Hurd. Btw: this

Re: how to identify the superuser in C

2002-12-11 Thread Will Aoki
On Wed, Dec 11, 2002 at 11:07:11AM +0900, Oohara Yuuma wrote: I am working on adding a high score list to a game written in C. (It's already packaged.) The high score list will be 664 root:games and the game binary will be sgid games --- nothing special here. I want to dump and undump the

Re: how to identify the superuser in C

2002-12-11 Thread Adrian 'Dagurashibanipal' von Bidder
On Wed, 2002-12-11 at 03:58, Chris Shafer wrote: Hello, Some documentation I found helpful when I was doing something similar in [...] Just wondering... Content-Type: multipart/mixed instead of multipart/signed. Your mailer buggy? cheers -- vbi -- featured link: http://fortytwo.ch/smtp

Re: how to identify the superuser in C

2002-12-11 Thread Chris Shafer
Well what happened is I secrued up and sent it to just Oohara and not to the list. Well I tried but sent it to [EMAIL PROTECTED] So that not working I opened it out of my sent items and just forwarded it to the list but the singing got screwed up. Chirs On Wed, 2002-12-11 at 06:14, Adrian

Re: how to identify the superuser in C

2002-12-11 Thread Will Aoki
On Wed, Dec 11, 2002 at 11:07:11AM +0900, Oohara Yuuma wrote: I am working on adding a high score list to a game written in C. (It's already packaged.) The high score list will be 664 root:games and the game binary will be sgid games --- nothing special here. I want to dump and undump the

Re: how to identify the superuser in C

2002-12-11 Thread Adrian 'Dagurashibanipal' von Bidder
On Wed, 2002-12-11 at 03:58, Chris Shafer wrote: Hello, Some documentation I found helpful when I was doing something similar in [...] Just wondering... Content-Type: multipart/mixed instead of multipart/signed. Your mailer buggy? cheers -- vbi -- featured link: http://fortytwo.ch/smtp

Re: how to identify the superuser in C

2002-12-11 Thread Chris Shafer
Well what happened is I secrued up and sent it to just Oohara and not to the list. Well I tried but sent it to [EMAIL PROTECTED] So that not working I opened it out of my sent items and just forwarded it to the list but the singing got screwed up. Chirs On Wed, 2002-12-11 at 06:14, Adrian

Re: how to identify the superuser in C

2002-12-11 Thread Matt Zimmerman
On Wed, Dec 11, 2002 at 11:07:11AM +0900, Oohara Yuuma wrote: The problem is that there is fakeroot. getuid() == 0 or geteuid() == 0 is not enough. PAM is an overkill. I think seteuid(0) == 0 is the best approach. fakeroot (or any other dynamic linker tricks) will not work on set[ug]id

Re: how to identify the superuser in C

2002-12-11 Thread Oohara Yuuma
On Wed, 11 Dec 2002 14:13:15 -0500, Matt Zimmerman [EMAIL PROTECTED] wrote: On Wed, Dec 11, 2002 at 11:07:11AM +0900, Oohara Yuuma wrote: The problem is that there is fakeroot. getuid() == 0 or geteuid() == 0 is not enough. PAM is an overkill. I think seteuid(0) == 0 is the best approach.

Re: how to identify the superuser in C

2002-12-11 Thread Matt Zimmerman
On Thu, Dec 12, 2002 at 08:38:27AM +0900, Oohara Yuuma wrote: On Wed, 11 Dec 2002 14:13:15 -0500, Matt Zimmerman [EMAIL PROTECTED] wrote: On Wed, Dec 11, 2002 at 11:07:11AM +0900, Oohara Yuuma wrote: The problem is that there is fakeroot. getuid() == 0 or geteuid() == 0 is not enough.

how to identify the superuser in C

2002-12-10 Thread Oohara Yuuma
I am working on adding a high score list to a game written in C. (It's already packaged.) The high score list will be 664 root:games and the game binary will be sgid games --- nothing special here. I want to dump and undump the list. Allowing everyone to undump the list will lead to cheating or

Re: how to identify the superuser in C

2002-12-10 Thread Chris Shafer
Hello, Some documentation I found helpful when I was doing something similar in a little game I was making. http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_25.html#SEC429 Chris Shafer Live Slow. Sail Fast On Tue, 2002-12-10 at 21:07, Oohara Yuuma wrote: I am working on

Re: how to identify the superuser in C

2002-12-10 Thread Chris Shafer
Hello, Some documentation I found helpful when I was doing something similar in a little game I was making. http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_25.html#SEC429 Chris Shafer Live Slow. Sail Fast On Tue, 2002-12-10 at 21:07, Oohara Yuuma wrote: I am working on