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. |
||
---|---|---|
.. | ||
Makefile | ||
compat.c | ||
compat.h | ||
config.h | ||
cron.8 | ||
cron.c | ||
cron.h | ||
crontab.1 | ||
crontab.5 | ||
crontab.c | ||
database.c | ||
do_command.c | ||
entry.c | ||
env.c | ||
externs.h | ||
job.c | ||
misc.c | ||
pathnames.h | ||
popen.c | ||
user.c |