[parisc-linux] Issues with seteuid()?

Randolph Chung Randolph Chung <tausq@debian.org>
Wed, 29 Jan 2003 23:03:40 -0800


> A. On a testing debian system (ie gcc-3.0 3.0.4-10 && libc6 2.2.5-14.3) and
> the very last kernel 2.4.20-pa23:
> 
> Compile with gcc -O 2 -Wall -D_REENTRANT foo.c -o foo
> 
> [ Create a user and a group named proxy with id 13 for both ]
> 
> First as it is ./foo would failled to fork() immediately with 'Segmentation
> fault'.

# uname -a
Linux legolas 2.4.20-pa23 #110 Mon Jan 27 23:44:18 PST 2003 parisc unknown unknown GNU/Linux

ii  gcc-3.0        3.0.4-7        The GNU C compiler.
ii  libc6          2.2.5-14.3     GNU C Library: Shared libraries and Timezone

# gcc-3.0 -O2 -Wall -D_REENTRANT seteuid.c -o seteuid
# ./seteuid
leave_suid: PID 18443 called
leave_suid: PID 18443 giving up root, becoming 'proxy'
Creating Swap Directories
[....]

no segfault... 

can you maybe run it with strace and send the last few lines of output?

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/