c2b5bf99ef
I simplified the patch addressed certain security concerns. I only allowed setusercontext() to set resource limits/priority and umask, because these are the values that are relevant from login.conf. The rest of the settings (uid/gid/initgroups) should be done using e->uid and e->gid like they were before, not from: struct passwd *pwd = getpwnam(getenv("LOGNAME")); Finally login_cap's (path/env) are irrelevant in this context since we want to use our e->envp anyway to execute the command.
11 lines
241 B
Makefile
11 lines
241 B
Makefile
# $NetBSD: Makefile,v 1.10 2003/03/14 21:56:07 christos Exp $
|
|
|
|
PROG= cron
|
|
SRCS= cron.c database.c do_command.c entry.c env.c job.c \
|
|
misc.c popen.c user.c
|
|
CPPFLAGS+=-I${.CURDIR} -DLOGIN_CAP
|
|
LDADD+=-lutil
|
|
MAN= cron.8
|
|
|
|
.include <bsd.prog.mk>
|