2009-01-29 21:35:27

by David Smith

[permalink] [raw]
Subject: [2.6.29-rc2 regression] CRED changes causing setuid failures

CFLAGS = -D_GNU_SOURCE -Wall -Werror -Wunused
all: test1 test2

test1: test1.c
gcc $(CFLAGS) -o test1 test1.c
sudo chown root.root test1
sudo chmod +s test1

test2: test2.c
gcc $(CFLAGS) -o test2 test2.c -lpthread

clean:
rm -f *.o test1 test2


Attachments:
test1.c (1.42 kB)
test2.c (1.51 kB)
Makefile (249.00 B)
Download all attachments