bin_PROGRAMS = crontab cronnext
crond_SOURCES = \
- cron.c database.c user.c job.c do_command.c popen.c \
+ cron.c database.c user.c job.c do_command.c popen.c security.c \
$(common_src)
-crontab_SOURCES = crontab.c $(common_src)
+crontab_SOURCES = crontab.c security.c $(common_src)
cronnext_SOURCES = \
- cronnext.c database.c user.c job.c do_command.c popen.c \
+ cronnext.c database.c user.c job.c \
$(common_src)
-common_src = entry.c env.c misc.c pw_dup.c security.c \
+common_src = entry.c env.c misc.c pw_dup.c \
externs.h funcs.h globals.h macros.h pathnames.h structs.h \
bitstring.h
common_nodist = cron-paths.h
#include "funcs.h"
#include "cron-paths.h"
+#ifdef WITH_INOTIFY
+void set_cron_watched(int fd) {
+/* empty stub */
+ (void)fd;
+}
+#endif
+
+void do_command(entry *e, user *u) {
+/* empty stub */
+ (void)e;
+ (void)u;
+}
+
+#ifdef WITH_SELINUX
+int get_security_context(const char *name, int crontab_fd,
+ security_context_t *rcontext, const char *tabname) {
+/* empty stub */
+ (void)name;
+ (void)crontab_fd;
+ (void)tabname;
+ *rcontext = NULL;
+ return 0;
+}
+
+void free_security_context(security_context_t *scontext) {
+/* empty stub */
+ (void)scontext;
+}
+#endif
+
/*
* print entry flags
*/