]> granicus.if.org Git - cronie/log
cronie
16 years agoAdded patch from Stepan Kasal, which fixed all autotools issues.
Marcela Mašláňová [Wed, 30 Jan 2008 14:59:25 +0000 (15:59 +0100)]
Added patch from Stepan Kasal, which fixed all autotools issues.
Also the pam's configure file is now installed directly into
correct path, if it's configure runned with pam.

16 years agoCleaning git from unnecessary files, which were generated from
Marcela Mašláňová [Thu, 17 Jan 2008 13:02:24 +0000 (14:02 +0100)]
Cleaning git from unnecessary files, which were generated from
autotools. Add files or rename according to autotools custom practice.

There were also alternation of configure and makefiles.

16 years agoAdd missing files generated after running ./configure
Marcela Maslanova [Wed, 9 Jan 2008 09:45:20 +0000 (10:45 +0100)]
Add missing files generated after running ./configure

16 years agoIn CHANGES could be found git-log with last changes.
Marcela Maslanova [Wed, 9 Jan 2008 09:19:05 +0000 (10:19 +0100)]
In CHANGES could be found git-log with last changes.

16 years agoNow really add all files generated by autotools.
Marcela Maslanova [Wed, 9 Jan 2008 09:17:58 +0000 (10:17 +0100)]
Now really add all files generated by autotools.

16 years agoAdd binary configure.
Marcela Maslanova [Wed, 9 Jan 2008 09:08:34 +0000 (10:08 +0100)]
Add binary configure.

16 years agoUse changelog instead of spec.
Marcela Maslanova [Thu, 3 Jan 2008 12:56:19 +0000 (13:56 +0100)]
Use changelog instead of spec.

17 years agoDon't set up MAIL_DATE, because if the user doesn't use
Marcela Maslanova [Fri, 30 Nov 2007 15:14:39 +0000 (16:14 +0100)]
Don't set up MAIL_DATE, because if the user doesn't use
sendmail, then he has incorrect time format.

17 years agoUpload spec file with fixed bcond macro.
Marcela Maslanova [Mon, 19 Nov 2007 16:17:38 +0000 (17:17 +0100)]
Upload spec file with fixed bcond macro.

17 years agoMan pages are updated for time zone and some small changes.
Marcela Maslanova [Mon, 12 Nov 2007 13:05:05 +0000 (14:05 +0100)]
Man pages are updated for time zone and some small changes.

17 years agoTime zones are now supported.
Marcela Maslanova [Mon, 12 Nov 2007 12:34:21 +0000 (13:34 +0100)]
Time zones are now supported.
Setting in cron table CRON_TZ=SomeTimeZone does jobs in
this time zone. There was problem with syslog, because
it print local time into log only, when I remove
ifdef parts from misc.c. With ifdef parts print out the time
of 'highest' time zone, which could be bug of rsyslog.

17 years agoIn configure was incorrect path for sendmail. The error occured
Marcela Maslanova [Mon, 12 Nov 2007 12:27:56 +0000 (13:27 +0100)]
In configure was incorrect path for sendmail. The error occured
only when sendmail wasn't set up like default MTA.

17 years agoOpening credentials is really needed for cron jobs, but
Marcela Maslanova [Mon, 5 Nov 2007 13:02:29 +0000 (14:02 +0100)]
Opening credentials is really needed for cron jobs, but
not for crontab. Crontab doesn't use credentials from
file security.c so we can leave it as it was.

17 years agoChange version of cron in configure.
Marcela Maslanova [Tue, 30 Oct 2007 08:26:36 +0000 (09:26 +0100)]
Change version of cron in configure.

17 years agoUpdate spec file - new bcond macro. v4.3
Marcela Maslanova [Mon, 29 Oct 2007 15:18:46 +0000 (16:18 +0100)]
Update spec file - new bcond macro.

17 years agoSome cron jobs failed without error message. If the job had
Marcela Maslanova [Mon, 29 Oct 2007 15:00:57 +0000 (16:00 +0100)]
Some cron jobs failed without error message. If the job had
too "big" output and no mail client set, then only a part from
job was done. The reason was pipe, which has restricted size.
rh bugzilla #247228

17 years agoThe file LICENSE is used instead of COPYING.
Marcela Maslanova [Wed, 3 Oct 2007 14:30:26 +0000 (16:30 +0200)]
The file LICENSE is used instead of COPYING.

17 years agoAdd spec file from rpm package, because there is
Marcela Maslanova [Wed, 3 Oct 2007 14:28:17 +0000 (16:28 +0200)]
Add spec file from rpm package, because there is
changelog.

17 years agoDeleting and modyfing files with license etc.
Marcela Maslanova [Wed, 3 Oct 2007 14:27:31 +0000 (16:27 +0200)]
Deleting and modyfing files with license etc.
The compilation with selinux and audit is optional.

17 years agoThe jobs in RH_CROND_DIR weren't syntactically checked.
Marcela Maslanova [Tue, 2 Oct 2007 10:41:51 +0000 (12:41 +0200)]
The jobs in RH_CROND_DIR weren't syntactically checked.
Also SYSCRON wasn't checked. The problem is reported into log.

17 years agoFix reading arguments from configure file. v4.2
Marcela Mašláňová [Tue, 28 Aug 2007 10:56:06 +0000 (12:56 +0200)]
Fix reading arguments from configure file.

17 years agoCommented out cron_open_pam_session, it's unused.
Tomas Janousek [Mon, 27 Aug 2007 17:48:31 +0000 (19:48 +0200)]
Commented out cron_open_pam_session, it's unused.

Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
17 years agoProtect the call to setexeccon with WITH_SELINUX.
Tomas Janousek [Mon, 27 Aug 2007 17:47:34 +0000 (19:47 +0200)]
Protect the call to setexeccon with WITH_SELINUX.

Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
17 years agoCompile fix in misc.c.
Tomas Janousek [Mon, 27 Aug 2007 17:46:52 +0000 (19:46 +0200)]
Compile fix in misc.c.

(I have no f*cking idea why do I do this change now...)

Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
17 years agoKill a few warnings.
Tomas Janousek [Mon, 27 Aug 2007 17:45:16 +0000 (19:45 +0200)]
Kill a few warnings.

Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
17 years agoFix the MAILARG and MAILFMT definitions and regenerate config.h.in.
Tomas Janousek [Mon, 27 Aug 2007 17:44:10 +0000 (19:44 +0200)]
Fix the MAILARG and MAILFMT definitions and regenerate config.h.in.

Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
17 years agoMove #define _GNU_SOURCE from security.c to CFLAGS.
Tomas Janousek [Mon, 27 Aug 2007 17:43:14 +0000 (19:43 +0200)]
Move #define _GNU_SOURCE from security.c to CFLAGS.

(it's needed for HAVE_SELINUX as well)

Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
17 years agoDon't define SYSLOG in pathnames.h.
Tomas Janousek [Mon, 27 Aug 2007 17:42:03 +0000 (19:42 +0200)]
Don't define SYSLOG in pathnames.h.

It's in configure.ac and gets defined in config.h.

Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
17 years agoCRON_GROUP shall not be defined at all.
Tomas Janousek [Mon, 27 Aug 2007 17:40:43 +0000 (19:40 +0200)]
CRON_GROUP shall not be defined at all.

(also filled in a sensible default in case someone enables it again)

Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
17 years agoAdded -laudit to LDADD.
Tomas Janousek [Mon, 27 Aug 2007 17:39:23 +0000 (19:39 +0200)]
Added -laudit to LDADD.

Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
17 years agoVersion of cron is used from configure.
mmaslano [Mon, 27 Aug 2007 15:25:34 +0000 (17:25 +0200)]
Version of cron is used from configure.

17 years agoCorrect setting of path to mail program.
mmaslano [Mon, 27 Aug 2007 15:22:05 +0000 (17:22 +0200)]
Correct setting of path to mail program.

17 years agoUse config.h generated by autotools.
mmaslano [Mon, 27 Aug 2007 15:21:07 +0000 (17:21 +0200)]
Use config.h generated by autotools.

17 years agoAdded missing #ifdef WITH_PAM.
mmaslano [Mon, 27 Aug 2007 12:46:32 +0000 (14:46 +0200)]
Added missing #ifdef WITH_PAM.

17 years agoCorrect definition of cron_popen in .h file.
mmaslano [Mon, 27 Aug 2007 12:45:11 +0000 (14:45 +0200)]
Correct definition of cron_popen in .h file.

17 years agoAdded missing #ifdef WITH_PAM.
Tomas Janousek [Mon, 27 Aug 2007 10:42:50 +0000 (12:42 +0200)]
Added missing #ifdef WITH_PAM.

Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
17 years agoMake cron_restore_default_security_context return void.
Tomas Janousek [Mon, 27 Aug 2007 11:05:15 +0000 (13:05 +0200)]
Make cron_restore_default_security_context return void.

Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
17 years agoRevert "System table wasn't sometimes checked for changes."
Tomas Janousek [Mon, 27 Aug 2007 11:01:50 +0000 (13:01 +0200)]
Revert "System table wasn't sometimes checked for changes."

This reverts commit b18c0c9a01bef691c7b696709cd2f9736ba98a82.

Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
17 years agorhbz#247228 cron jobs fail semi-randomly if sendmail (or other mail)
mmaslano [Fri, 24 Aug 2007 11:41:29 +0000 (13:41 +0200)]
rhbz#247228 cron jobs fail semi-randomly if sendmail (or other mail)

isn't set. The jobs aren't "sometimes" run, because output, which
has to be sent isn't set and the stdin pipe, which is used haven't
enough capacity.
The problem is at least reported in log.

17 years agoAdd crond.8 (the same as cron.8) manual page
mmaslano [Fri, 24 Aug 2007 11:36:22 +0000 (13:36 +0200)]
Add crond.8 (the same as cron.8) manual page

and other man pages were updated.

17 years agoChange definiton from popen.c in header file.
mmaslano [Fri, 24 Aug 2007 11:29:22 +0000 (13:29 +0200)]
Change definiton from popen.c in header file.

17 years agoFor the same license for whole cron, I've removed two
mmaslano [Fri, 24 Aug 2007 06:38:13 +0000 (08:38 +0200)]
For the same license for whole cron, I've removed two

files and found almost the same with correct license.

17 years agoCron source was ready for merge with patches. After the merge
mmaslano [Fri, 24 Aug 2007 06:35:07 +0000 (08:35 +0200)]
Cron source was ready for merge with patches. After the merge

I used autotools (files were copied to new dirs and configure.ac
and Makefile.am were written).

17 years agoPam authentication wasn't used wise. User's crontab
mmaslano [Fri, 24 Aug 2007 06:28:24 +0000 (08:28 +0200)]
Pam authentication wasn't used wise. User's crontab

didn't use pam and functions, which were for pam
opening etc. were incorrect (wrong credetials).

17 years agoChecking homedir is last, because we need at first set up gid and uid.
mmaslano [Fri, 24 Aug 2007 06:18:36 +0000 (08:18 +0200)]
Checking homedir is last, because we need at first set up gid and uid.

17 years agoIt's possible to use your own tmp dir. Before was /tmp hardwired.
mmaslano [Fri, 24 Aug 2007 06:18:19 +0000 (08:18 +0200)]
It's possible to use your own tmp dir. Before was /tmp hardwired.

17 years agoSystem table in manual page is mentioned.
mmaslano [Fri, 24 Aug 2007 06:17:59 +0000 (08:17 +0200)]
System table in manual page is mentioned.

17 years agoHard links on system table break doing jobs.
mmaslano [Fri, 24 Aug 2007 06:17:37 +0000 (08:17 +0200)]
Hard links on system table break doing jobs.

17 years agoSystem table wasn't sometimes checked for changes.
mmaslano [Fri, 24 Aug 2007 06:16:40 +0000 (08:16 +0200)]
System table wasn't sometimes checked for changes.

17 years agoAudit: new auditing message is print, when the user isn't allowed
mmaslano [Fri, 24 Aug 2007 06:15:53 +0000 (08:15 +0200)]
Audit: new auditing message is print, when the user isn't allowed

to use mls range. Job wasn't runned without warning message.

17 years agoBecause there was typo (- instead of +) jobs wasn't runned after new year.
mmaslano [Fri, 24 Aug 2007 06:15:37 +0000 (08:15 +0200)]
Because there was typo (- instead of +) jobs wasn't runned after new year.

17 years agoErrors in manual was fixed and mls range was mentioned.
mmaslano [Fri, 24 Aug 2007 06:15:11 +0000 (08:15 +0200)]
Errors in manual was fixed and mls range was mentioned.

17 years agoForce reload of database when SIGGUP is received.
mmaslano [Fri, 17 Aug 2007 13:19:37 +0000 (15:19 +0200)]
Force reload of database when SIGGUP is received.
max_mtime uses dir_name instead of SPOOL_DIR now. (which caused a bug
preventing correct detection of changes in RH_CROND_DIR)

(comment updated by <tjanouse@redhat.com>)

17 years agoSelinux ranges: for every selinux operation are now checked
mmaslano [Fri, 17 Aug 2007 13:19:26 +0000 (15:19 +0200)]
Selinux ranges: for every selinux operation are now checked

the ranges of user. Now is set not only context for user, but
even ranges(enabled selinux or selinux in mls mode).

17 years agoIt's possible to change file without changing mtime of file.
mmaslano [Fri, 17 Aug 2007 13:19:05 +0000 (15:19 +0200)]
It's possible to change file without changing mtime of file.

So we're stat'ing files for the changes of files.
The detection of not_a_crontab files was added: files started with
dot aren't crontabs etc.

17 years agopam.limits.so was substitued by system-auth (pam progress).
mmaslano [Fri, 17 Aug 2007 13:18:46 +0000 (15:18 +0200)]
pam.limits.so was substitued by system-auth (pam progress).

17 years agoPart with_selinux now include even the testing of linux context.
mmaslano [Fri, 17 Aug 2007 13:18:33 +0000 (15:18 +0200)]
Part with_selinux now include even the testing of linux context.

17 years agoLoading database before reaping the child take up time of
mmaslano [Fri, 17 Aug 2007 13:18:15 +0000 (15:18 +0200)]
Loading database before reaping the child take up time of

running the jobs.

17 years agoThe Auto-Submitted header is defined (and suggested by) RFC3834.
mmaslano [Fri, 17 Aug 2007 13:17:56 +0000 (15:17 +0200)]
The Auto-Submitted header is defined (and suggested by) RFC3834.

Added into mail header: 'Auto-Submitted: auto-generated'

17 years agoFix typo in man pages.
mmaslano [Fri, 17 Aug 2007 13:17:11 +0000 (15:17 +0200)]
Fix typo in man pages.

17 years agoIt's possible to change file without changing mtime of file.
mmaslano [Fri, 17 Aug 2007 13:16:44 +0000 (15:16 +0200)]
It's possible to change file without changing mtime of file.

So we're stat'ing files for the changes of files.
The detection of not_a_crontab files was added: files started with
dot aren't crontabs etc.

17 years agoSelinux: option -s added. Header from crontab was removed and
mmaslano [Fri, 17 Aug 2007 13:16:31 +0000 (15:16 +0200)]
Selinux: option -s added. Header from crontab was removed and

now is print into crontab the SELINUX_ROLE_TYPE which specify
the permission of user. With mls could one user run some jobs
with different roles and security level.

17 years agoInto with_selinux and with_pam part was added variables
mmaslano [Fri, 17 Aug 2007 13:16:14 +0000 (15:16 +0200)]
Into with_selinux and with_pam part was added variables

used only there. In Makefile are libs set by variables.

17 years agoNow is possible to use different character encodings for mailed cron job output by
mmaslano [Fri, 17 Aug 2007 13:15:49 +0000 (15:15 +0200)]
Now is possible to use different character encodings for mailed cron job output by

setting the CONTENT_TYPE and CONTENT_TRANSFER_ENCODING variables in crontabs,
to the correct values of the mail headers of those names.

17 years agoModule pam_limit.so was added to default configuration.
mmaslano [Fri, 17 Aug 2007 13:15:35 +0000 (15:15 +0200)]
Module pam_limit.so was added to default configuration.

17 years agoFixing "security": minutely job are made realy only one time per
mmaslano [Fri, 17 Aug 2007 13:15:24 +0000 (15:15 +0200)]
Fixing "security": minutely job are made realy only one time per

minute. If the job is delayed into next minute, then it's skipped
for this minute.

17 years agoThe security.c file was filled with selinux and pam often
mmaslano [Fri, 17 Aug 2007 13:15:07 +0000 (15:15 +0200)]
The security.c file was filled with selinux and pam often

used functions, which were removed from other files.

17 years agoOption -m was added: it's possible to use something else then sendmail.
mmaslano [Fri, 17 Aug 2007 13:13:20 +0000 (15:13 +0200)]
Option -m was added: it's possible to use something else then sendmail.

17 years agoNow is cron with audit. Complaining about denying users.
mmaslano [Fri, 17 Aug 2007 13:13:09 +0000 (15:13 +0200)]
Now is cron with audit. Complaining about denying users.

17 years agoThe return value were added because of too many warning messages
mmaslano [Fri, 17 Aug 2007 13:12:59 +0000 (15:12 +0200)]
The return value were added because of too many warning messages

from compiler. Also the variables were initialized.

17 years ago'Build enviroment' is set in pam section for better security.
mmaslano [Fri, 17 Aug 2007 13:12:45 +0000 (15:12 +0200)]
'Build enviroment' is set in pam section for better security.

17 years agoComments were changed.
mmaslano [Fri, 17 Aug 2007 13:10:50 +0000 (15:10 +0200)]
Comments were changed.

17 years agoSelinux: Instead of getting context and then the username is
mmaslano [Fri, 17 Aug 2007 13:10:36 +0000 (15:10 +0200)]
Selinux: Instead of getting context and then the username is

used function getuserbyname.

17 years agoToo many flags was set for lstating crontab. Time of change is
mmaslano [Fri, 17 Aug 2007 13:10:16 +0000 (15:10 +0200)]
Too many flags was set for lstating crontab. Time of change is

checked and uids for reading new crontab are ok.

17 years agoList corruption when items are removed from /etc/cron.d.
mmaslano [Fri, 17 Aug 2007 13:09:50 +0000 (15:09 +0200)]
List corruption when items are removed from /etc/cron.d.

Variable tabname is filled with file or NULL and checked
when crontab is changed.

17 years agoCrond.pam was changed according to pam modules.
mmaslano [Fri, 17 Aug 2007 13:09:30 +0000 (15:09 +0200)]
Crond.pam was changed according to pam modules.

The pam_limits.so could be used.

17 years agolstat instead of stat can stat even symlink itself, not the file
mmaslano [Fri, 17 Aug 2007 13:04:56 +0000 (15:04 +0200)]
lstat instead of stat can stat even symlink itself, not the file

that it refers to.

17 years agoRedefined limits of macros.
mmaslano [Fri, 17 Aug 2007 13:04:41 +0000 (15:04 +0200)]
Redefined limits of macros.

17 years agoIf fork fails, pam has to close session.
mmaslano [Fri, 17 Aug 2007 13:04:30 +0000 (15:04 +0200)]
If fork fails, pam has to close session.

17 years agofix of bug rhbz#154065: crontab should not use waitpid(...,WUNTRACED)
mmaslano [Fri, 17 Aug 2007 13:04:18 +0000 (15:04 +0200)]
fix of bug rhbz#154065: crontab should not use waitpid(...,WUNTRACED)

and stop itself if its child is stopped

17 years agoPAM hadn't closed session.
mmaslano [Fri, 17 Aug 2007 13:04:04 +0000 (15:04 +0200)]
PAM hadn't closed session.

17 years agoSelinux doesn't segfault, because of: permissive mode returns 0
mmaslano [Fri, 17 Aug 2007 13:03:51 +0000 (15:03 +0200)]
Selinux doesn't segfault, because of: permissive mode returns 0

and selinux enabled is also check context.

17 years agoCron validate the recipient only when CRON_VALIDATE_MAILRCPTS isn't null.
mmaslano [Fri, 17 Aug 2007 13:03:34 +0000 (15:03 +0200)]
Cron validate the recipient only when CRON_VALIDATE_MAILRCPTS isn't null.
Validating of email recipient is default off.

17 years agoSet item in pam - "cron".
mmaslano [Fri, 17 Aug 2007 13:03:24 +0000 (15:03 +0200)]
Set item in pam - "cron".

17 years agoInitialize some important variables.
mmaslano [Fri, 17 Aug 2007 13:03:13 +0000 (15:03 +0200)]
Initialize some important variables.

17 years agoAdd -p option for crontab.
mmaslano [Fri, 17 Aug 2007 13:03:01 +0000 (15:03 +0200)]
Add -p option for crontab.

Without the -p option /etc/crontab must not be writable by any
user other than root, no crontab files may be links, or linked
to by any other file, and no crontab files may be executable,
or be writable by any user other than their owner

17 years agoFix for ppc: int ch='\0' is initialized.
mmaslano [Fri, 17 Aug 2007 13:02:43 +0000 (15:02 +0200)]
Fix for ppc: int ch='\0' is initialized.

17 years agoDon't read the header of crontab.
mmaslano [Fri, 17 Aug 2007 13:02:33 +0000 (15:02 +0200)]
Don't read the header of crontab.

17 years agoFor setegid are used saved gid instead of getgid().
mmaslano [Fri, 17 Aug 2007 13:02:23 +0000 (15:02 +0200)]
For setegid are used saved gid instead of getgid().

Now are swaped back the correct gid.

17 years agoAllow root's crontab (check with getuid).
mmaslano [Fri, 17 Aug 2007 13:02:07 +0000 (15:02 +0200)]
Allow root's crontab (check with getuid).

17 years agoAccording to changes in selinux selinux_check_passwd_access
mmaslano [Fri, 17 Aug 2007 13:01:57 +0000 (15:01 +0200)]
According to changes in selinux selinux_check_passwd_access

is now enough for examinitaion of user's password.

17 years agoContext in selinux is now correctly undone.
mmaslano [Fri, 17 Aug 2007 13:01:43 +0000 (15:01 +0200)]
Context in selinux is now correctly undone.

17 years ago/etc/crontab is now writable only by root. No links on this file are allowed.
mmaslano [Fri, 17 Aug 2007 13:01:32 +0000 (15:01 +0200)]
/etc/crontab is now writable only by root. No links on this file are allowed.

17 years agoAdd -i option to crontab, which print prompt before removing crontab.
mmaslano [Fri, 17 Aug 2007 13:01:19 +0000 (15:01 +0200)]
Add -i option to crontab, which print prompt before removing crontab.

17 years agoNicknames were mentioned in man pages (@yearly, @hourly, etc).
mmaslano [Fri, 17 Aug 2007 13:01:06 +0000 (15:01 +0200)]
Nicknames were mentioned in man pages (@yearly, @hourly, etc).

17 years agoCrontab is stat instead of fstat and crontab is reopened for
mmaslano [Fri, 17 Aug 2007 13:00:52 +0000 (15:00 +0200)]
Crontab is stat instead of fstat and crontab is reopened for
reading new stdin.
This change should:
Allowed editors such as 'gedit' which do not modify original
file, but which rename(2) a temp file to original, to be used
by crontab -e (bug 129170).

17 years agoIn lower version of pam was re-open log needed (rhel-4 and lower).
mmaslano [Fri, 17 Aug 2007 13:00:31 +0000 (15:00 +0200)]
In lower version of pam was re-open log needed (rhel-4 and lower).

17 years agoChange in pam configuration file (auth sufficient is now used).
mmaslano [Fri, 17 Aug 2007 13:00:21 +0000 (15:00 +0200)]
Change in pam configuration file (auth sufficient is now used).

17 years agoSelinux for crontab: checking users with selinux.
mmaslano [Fri, 17 Aug 2007 13:00:05 +0000 (15:00 +0200)]
Selinux for crontab: checking users with selinux.
User is fixed from char to const char.

17 years agoHardwired 'system' wasn't needed.
mmaslano [Fri, 17 Aug 2007 12:59:53 +0000 (14:59 +0200)]
Hardwired 'system' wasn't needed.