diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-05-09 21:22:02 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-05-09 21:22:02 +0000 |
commit | 124d0347b10f2c64912889fab1379f308b796911 (patch) | |
tree | 1f009cb40f170648cc70571d89992e375b0fbf94 /usr.sbin/cron/externs.h | |
parent | 0fcf09b27f6901580349da84181cdf8f92d74a8c (diff) |
crontab is no longer setuid root, it is now setgid crontab.
These changes were modelled after the Owl version of vixie-cron,
but developed independently.
Our crontab used to send cron SIGUSR1 to tell cron to reread the
spool dir. Now that crontab is not setuid root this doesn't work.
Instead, crontab pokes cron via a Unix domain socket located in the
tabs dir.
Please note, after these changes, the owner on user crontab files
will have to be changed manually from root to the uid of the
corresponding user for crontab to be usable. cron itself will accept
tab files owned by either root or the user.
Also, any /var/cron/{allow,deny} files must be readable by group crontab.
Diffstat (limited to 'usr.sbin/cron/externs.h')
-rw-r--r-- | usr.sbin/cron/externs.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.sbin/cron/externs.h b/usr.sbin/cron/externs.h index 11b3e7c6cec..4d3c0625ca8 100644 --- a/usr.sbin/cron/externs.h +++ b/usr.sbin/cron/externs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: externs.h,v 1.3 2001/02/18 19:48:34 millert Exp $ */ +/* $OpenBSD: externs.h,v 1.4 2002/05/09 21:22:01 millert Exp $ */ /* Copyright 1993,1994 by Paul Vixie * All rights reserved @@ -24,7 +24,9 @@ #include <sys/param.h> #include <sys/types.h> +#if !defined(AIX) && !defined(UNICOS) #include <sys/time.h> +#endif #include <sys/wait.h> #include <sys/fcntl.h> #include <sys/file.h> @@ -84,18 +86,12 @@ extern char *tzname[2]; #endif #if (BSD >= 199103) -# define HAVE_SAVED_UIDS +# define HAVE_SAVED_GIDS #endif #define MY_UID(pw) getuid() #define MY_GID(pw) getgid() -#if !defined(AIX) && !defined(UNICOS) -# define SYS_TIME_H 1 -#else -# define SYS_TIME_H 0 -#endif - /* getopt() isn't part of POSIX. some systems define it in <stdlib.h> anyway. * of those that do, some complain that our definition is different and some * do not. to add to the misery and confusion, some systems define getopt() |