Displaying 1 result from an estimated 1 matches for "suid_progs".
Did you mean:
sbin_progs
1997 May 26
1
an anti-overflow wrapper
...;);
exit(1);
}
}
}
fclose(cfgfile);
closelog();
execv(REALPROG ".wrapped", argv);
syslog(LOG_ERR, "WRAPPER: can''t exec %s: %m.",
REALPROG ".wrapped");
exit(1);
}
------------------------------ Makefile ------------------------------
SUID_PROGS=/usr/X11R6/bin/xterm
CFLAGS=-Wall -Wstrict-prototypes -pedantic
all: $(SUID_PROGS)
clean:
rm -f *~ *.o
for i in $(SUID_PROGS) ; do rm -f `basename $$i` ; done
$(SUID_PROGS): wrapper.c
$(CC) $(CFLAGS) -DREALPROG=\"$@\" -o `basename $@` $^
------------------------------ The End ------...