]>
granicus.if.org Git - cronie/log
Sami Kerola [Tue, 27 Nov 2012 21:17:47 +0000 (21:17 +0000)]
crontab: make usage easier to read
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Marcela Mašláňová [Tue, 27 Nov 2012 09:35:28 +0000 (10:35 +0100)]
New release 1.4.10.
Marcela Mašláňová [Tue, 27 Nov 2012 09:23:41 +0000 (10:23 +0100)]
Condtionalize pam functions.
Tomas Mraz [Tue, 27 Nov 2012 09:01:10 +0000 (10:01 +0100)]
Drop duplicate -lselinux -laudit.
Tomas Mraz [Tue, 27 Nov 2012 08:50:49 +0000 (09:50 +0100)]
Fix missing includes for selinux and other types.
Marcela Mašláňová [Tue, 27 Nov 2012 07:37:08 +0000 (08:37 +0100)]
Fix some issues introduced in
c58b1d9 Documentation improvements based on Michael Lass suggestions.
* give -m an own line in manpage
* don't explain -P twice
* correct description of -P to what it actually does
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
Tomas Mraz [Mon, 26 Nov 2012 16:44:09 +0000 (17:44 +0100)]
Fix const usage in crontab.
Sami Kerola [Thu, 22 Nov 2012 23:18:09 +0000 (23:18 +0000)]
docs: anacron fix out dated information about open file limits
For quite a while open files limit has defaulted to 1024, but rather than
informing what might be the number user should inspect value from own
time.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 22 Nov 2012 23:05:05 +0000 (23:05 +0000)]
docs: fix reference to other manual
There is no crontabs(4). For user it makes most sense to look
crontab(1).
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 22 Nov 2012 22:58:48 +0000 (22:58 +0000)]
docs: fix various groff issues
* Add spaces after dots (English spacing).
* Remove use of inline emphasis where possible.
* Use mail and url macros.
* Wrap long and join short lines.
* Remove end of line white spaces.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 24 Nov 2012 21:53:13 +0000 (21:53 +0000)]
build-sys: make ./configure to seach vi path
Using "/usr/ucb/vi" as defaut fallback EDITOR is not going to work on
most of distributions where this package is installed. That said it
might work somewhere, so searching the vi editor at configure time is the
sensible thing to do, if user does not want to define the default.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 24 Nov 2012 20:06:13 +0000 (20:06 +0000)]
debuging: make Debug macro look like function
This will make indent(1) program not to think it is a clause.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 24 Nov 2012 19:09:38 +0000 (19:09 +0000)]
declarations: fix shadow declarations
user.c:68:7: warning: declaration of 'save_errno' shadows a previous local [-Wshadow]
user.c:64:14: warning: shadowed declaration is here [-Wshadow]
do_command.c:559:9: warning: declaration of 'pid' shadows a previous local [-Wshadow]
do_command.c:91:8: warning: shadowed declaration is here [-Wshadow]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 24 Nov 2012 11:43:35 +0000 (11:43 +0000)]
includes: make inclusions clean
This change makes files to include what they need, instead of having
generic inclusion headers which will include everything to everywhere.
Also the local headers havee ifndef & define protection, which makes them
to be save to include in any file, without one having to think in which
order the inclusions happen at compile time.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Tomas Mraz [Mon, 26 Nov 2012 16:16:30 +0000 (17:16 +0100)]
Fix up also the const in comment.
Sami Kerola [Sat, 24 Nov 2012 11:18:31 +0000 (11:18 +0000)]
variables: use const where ever possible
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 24 Nov 2012 10:57:58 +0000 (10:57 +0000)]
build-sys: reduce selinux and pam compiling scope when possible
This will fix following warnings, and makes compiled program to contain
less unnecessary references.
crontab.c:60:14: warning: 'selinux_context' defined but not used [-Wunused-variable]
security.c:188:12: warning: 'cron_open_pam_session' defined but not used [-Wunused-function]
security.c:250:12: warning: 'cron_authorize_context' defined but not used [-Wunused-function]
security.c:283:12: warning: 'cron_authorize_range' defined but not used [-Wunused-function]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 24 Nov 2012 10:51:18 +0000 (10:51 +0000)]
compliancy: do not mix declarations and code
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 24 Nov 2012 10:48:18 +0000 (10:48 +0000)]
clean up: reduce variable passing when they are not used
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 24 Nov 2012 10:45:14 +0000 (10:45 +0000)]
assingments: remove initialization if value is never used
The next operation with these variables will overwrite the values set at
init.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 24 Nov 2012 10:35:08 +0000 (10:35 +0000)]
compliancy: use memset() rather than bzero()
Reference: http://pubs.opengroup.org/onlinepubs/
9699919799 /xrat/V4_xsh_chap03.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 24 Nov 2012 10:29:04 +0000 (10:29 +0000)]
build-sys: make clean needs to remove cron-paths.h
The file is generated at build time. This change is needed to make
distcheck work without an error.
[...]
ERROR: files left in build directory after distclean:
./src/cron-paths.h
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 24 Nov 2012 10:18:54 +0000 (10:18 +0000)]
build-sys: add autotools helper script
The script will help building when source code is checked out from git.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Tomas Mraz [Mon, 26 Nov 2012 14:23:00 +0000 (15:23 +0100)]
Do not log that syslog will be used instead of sendmail if explicitly requested.
Tomas Mraz [Mon, 26 Nov 2012 10:41:55 +0000 (11:41 +0100)]
Enable system crontab by default and use AC_ARG_ENABLE instead of AC_ARG_WITH.
Marcela Mašláňová [Thu, 22 Nov 2012 14:07:59 +0000 (15:07 +0100)]
Minor release 1.4.9.
Marcela Mašláňová [Tue, 13 Nov 2012 07:07:56 +0000 (08:07 +0100)]
Documentation improvements based on Michael Lass suggestions.
Marcela Mašláňová [Fri, 2 Nov 2012 15:11:23 +0000 (16:11 +0100)]
Add time-sync.target. If synchronization is used, crond will start after sync by ntpd/chrony. rhbz#872516
Tom Jones [Thu, 11 Oct 2012 12:00:56 +0000 (14:00 +0200)]
The sysadmin may want to arrange for the PATH to be correct in the
environment from which cron is launched. This new option tells
cron to not overwrite this path for itself or for the child cron
jobs.
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
Marcela Mašláňová [Tue, 24 Jul 2012 09:09:54 +0000 (11:09 +0200)]
The enable-relro erased previously set LDFLAGS.
Marcela Mašláňová [Mon, 2 Jul 2012 07:02:23 +0000 (09:02 +0200)]
Fix typo in man page.
rhbz#836292
Thanks to: Dave Allan
Marcela Mašláňová [Fri, 22 Jun 2012 09:14:58 +0000 (11:14 +0200)]
Preferred hour of start of the job. If the hour is missed job will be skipped.
Marcela Mašláňová [Thu, 21 Jun 2012 11:33:10 +0000 (13:33 +0200)]
Range of hours for daily jobs must have lower-higher hour.
Marcela Mašláňová [Thu, 21 Jun 2012 11:01:30 +0000 (13:01 +0200)]
Crontab has wrong permission.
Based on rhbz#676081
Marcela Mašláňová [Tue, 19 Jun 2012 11:31:16 +0000 (13:31 +0200)]
syscrontab, the system crontab, is not mandatory anymore.
Cronie can be build without it. The patch was based on complaints of distribution without /etc/crontab file.
https://fedorahosted.org/cronie/ticket/10
Marcela Mašláňová [Wed, 13 Jun 2012 14:21:50 +0000 (16:21 +0200)]
Sendmail doesn't have to be installed.
The info message should make sense.
https://fedorahosted.org/cronie/ticket/15
Tim Landscheidt [Wed, 6 Jun 2012 15:14:06 +0000 (17:14 +0200)]
Previously, crond exited in the signal handler for SIGINT and SIGTERM.
Thus, the Inotify close code in main() was never reached. This commit
introduces a got_sigintterm variable that is set when SIGINT or SIGTERM
are received and leads to a clean exit of the main loop.
* src/cron.c: Rename quit() to sigintterm_handler(). Add got_sigintterm
variable and set it on SIGINT and SIGTERM. Shorten sleep and exit main
loop on got_sigintterm.
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
Tim Landscheidt [Wed, 6 Jun 2012 14:49:26 +0000 (16:49 +0200)]
9th bit is overwritten.
Hour bit fields have 24 bits (0..23, 3 bytes). bit_nclear() however in this case is called to clear bits 0..24! Thus, it overwrites the first bit of the following struct member (dom). This is not problematic for normal use as dom is set after hour as are all other fields.
The last field, dow, uses 8 bits so 9 are cleared. This could be the MIN_STAR bit of flags, but as flags is an int, there is probably a padding byte in between; at least I couldn't trigger it to be unset. So this could probably only cause problems on 8-bit systems.
https://fedorahosted.org/cronie/ticket/11
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
Tim Landscheidt [Wed, 6 Jun 2012 14:03:49 +0000 (16:03 +0200)]
Remove unused variables.
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
Tim Landscheidt [Wed, 6 Jun 2012 13:57:48 +0000 (15:57 +0200)]
Fix use of "const char *" in call to putenv().
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
Marcela Mašláňová [Thu, 12 Apr 2012 11:08:39 +0000 (13:08 +0200)]
The mail header for automatic reply will now contain another field:
"Precedence: bulk", which is not compulsory according to RFC3834.
Based on: Harald Reindl request in rhbz#811186
Sven Vermeulen [Thu, 12 Apr 2012 08:38:27 +0000 (10:38 +0200)]
setkeycreatecon is not needed. Users should inherited key context if it was already set for them.
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
Marcela Mašláňová [Wed, 11 Apr 2012 12:48:26 +0000 (14:48 +0200)]
systemd unit file was added into contrib
This unit file is used in Fedora. The systemd-user-sessions.service guarantees
everything, what is needed for log in of users, is already running
(ypbind, sssd, ldap, ...).
T.M. Abraham [Wed, 11 Apr 2012 12:15:42 +0000 (14:15 +0200)]
adjust documentation title to reference "crontab" instead of "anacrontab"
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
Tomas Mraz [Wed, 7 Dec 2011 12:19:57 +0000 (13:19 +0100)]
Adjust the documentation to better describe the current situation with crontab and anacrontab.
Marcela Mašláňová [Thu, 24 Nov 2011 14:41:51 +0000 (15:41 +0100)]
Add name of file, where can be set PAM configuration.
Petr Sabata [Mon, 24 Oct 2011 09:17:29 +0000 (11:17 +0200)]
Service restart needlessly reports failure.
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
Marcela Mašláňová [Thu, 6 Oct 2011 07:01:12 +0000 (09:01 +0200)]
Raw context should be used. Especially when mcstransd in older
releases is running.
Tomas Mraz [Tue, 20 Sep 2011 14:11:14 +0000 (16:11 +0200)]
No need to have full path in the ProgramName.
Tomas Mraz [Wed, 29 Jun 2011 12:30:45 +0000 (14:30 +0200)]
Merge branch 'master' of ssh://git.fedorahosted.org/git/cronie
Tomas Mraz [Wed, 29 Jun 2011 10:42:27 +0000 (12:42 +0200)]
Fix wrong condition in cron_set_unwatched(). Do not disable inotify when crontabs are missing.
Tomas Mraz [Wed, 29 Jun 2011 09:06:24 +0000 (11:06 +0200)]
Revert "Cronie disables inotify support when the /etc/crontab file does not exist at startup."
This reverts commit
acdf4ae8456888ed78201906ef528f4c28f54582 as it introduces
fd leaks.
Marcela Mašláňová [Mon, 27 Jun 2011 14:02:44 +0000 (16:02 +0200)]
Minor release 1.4.8
Marcela Mašláňová [Fri, 24 Jun 2011 10:10:11 +0000 (12:10 +0200)]
Cron writes job output to syslog incorrectly. When cron is invoked in a way to print job output to syslog, it does print only the first character of the output. Author: Vitezslav Cizek
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
Tomas Mraz [Tue, 21 Jun 2011 18:26:38 +0000 (20:26 +0200)]
Check orphaned crontabs for adoption.
Tomas Mraz [Tue, 21 Jun 2011 10:00:28 +0000 (12:00 +0200)]
Unify logging in case of SyslogOutput with the rest of crond.
Marcela Mašláňová [Thu, 26 May 2011 15:43:34 +0000 (17:43 +0200)]
Change of email adress of cluster support author.
Kiyoshi OHGISHI [Mon, 16 May 2011 13:56:43 +0000 (15:56 +0200)]
The charset of anacron's mail is always ANSI_X3.4-1968. There are no setlocale is anacron's source.
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
Marcela Mašláňová [Thu, 28 Apr 2011 08:32:17 +0000 (10:32 +0200)]
Cronie disables inotify support when the /etc/crontab file does not exist at startup.
Existence of crontab and directories wasn't controlled before creating
inotify watches.
Marcela Mašláňová [Tue, 15 Mar 2011 14:19:12 +0000 (15:19 +0100)]
Clean configure.
Marcela Mašláňová [Tue, 15 Mar 2011 12:13:34 +0000 (13:13 +0100)]
New release 1.4.7.
Marcela Mašláňová [Tue, 15 Mar 2011 12:04:10 +0000 (13:04 +0100)]
Split relro and pie into two options.
Tomas Mraz [Fri, 11 Mar 2011 17:34:38 +0000 (18:34 +0100)]
Add missing va_end() call.
Tomas Mraz [Fri, 11 Mar 2011 17:32:27 +0000 (18:32 +0100)]
Remove unused variable.
Tomas Mraz [Fri, 11 Mar 2011 17:30:06 +0000 (18:30 +0100)]
Fix incorrect pointer in sizeof.
Tomas Mraz [Fri, 11 Mar 2011 17:25:47 +0000 (18:25 +0100)]
Fixed leaking of env and members of entry in replace_cmd().
Tomas Mraz [Fri, 11 Mar 2011 17:08:45 +0000 (18:08 +0100)]
Fix memory leaks in load_user.
Tomas Mraz [Fri, 11 Mar 2011 16:42:56 +0000 (17:42 +0100)]
The last bit to set is always LAST_ - FIRST_.
Tomas Mraz [Fri, 11 Mar 2011 16:02:25 +0000 (17:02 +0100)]
Check malloc return for NULL.
Tomas Mraz [Fri, 11 Mar 2011 15:55:33 +0000 (16:55 +0100)]
Do not try to compile dead code.
Tomas Mraz [Fri, 11 Mar 2011 13:06:26 +0000 (14:06 +0100)]
Rename set_cron_cwd() to check_spool_dir() as we do not do any chdir
anymore.
Tomas Mraz [Fri, 11 Mar 2011 13:02:35 +0000 (14:02 +0100)]
Add missing check for stat() return value.
Tomas Mraz [Wed, 9 Mar 2011 07:37:38 +0000 (08:37 +0100)]
Safeguard for system time changes. Otherwise anacron might wait with the job
running for a too long time.
Tomas Mraz [Tue, 8 Mar 2011 14:22:37 +0000 (15:22 +0100)]
Fix the non-default timezone support. Do not run jobs multiple times
on DST change.
Tomas Mraz [Mon, 7 Mar 2011 14:01:26 +0000 (15:01 +0100)]
Set mailfrom to the user account, better PAM logging.
Tomas Mraz [Mon, 7 Mar 2011 13:27:46 +0000 (14:27 +0100)]
Set only groups in the process handling PAM calls. Keep uids at 0
so the process is not killable by the user.
Tomas Mraz [Wed, 2 Mar 2011 19:37:39 +0000 (20:37 +0100)]
Whitespace cleanups.
Tomas Mraz [Wed, 2 Mar 2011 19:34:08 +0000 (20:34 +0100)]
Fix SIGPIPE handling in do_command() and popen.
Ensure that PAM session is always closed.
Marcela Mašláňová [Mon, 21 Feb 2011 12:33:08 +0000 (13:33 +0100)]
Comment not freeing mailfrom - found during code review.
Marcela Mašláňová [Mon, 21 Feb 2011 12:29:17 +0000 (13:29 +0100)]
Free security contexts.
Marcela Mašláňová [Fri, 18 Feb 2011 14:20:47 +0000 (15:20 +0100)]
mkstemp needs only 6 X's
Marcela Mašláňová [Mon, 21 Feb 2011 12:23:35 +0000 (13:23 +0100)]
fdin could be tested before initialization.
Marcela Mašláňová [Thu, 17 Feb 2011 14:08:58 +0000 (15:08 +0100)]
PIE and RELRO flags to be set
We want all long running daemons to have PIE and RELRO flags set. This is a
missing security mechanism. Fixing this generally involves adding -fPIE -DPIE
to the CFLAGS, and -pie -Wl,-z,relro -Wl,-z,now to the LDFLAGS.
Expected results:
PIE and partial RELRO at a minimum.
Tomas Mraz [Thu, 16 Dec 2010 16:20:12 +0000 (17:20 +0100)]
Add translation for remaining hardcoded contexts and av bits.
Tomas Mraz [Thu, 16 Dec 2010 16:06:28 +0000 (17:06 +0100)]
Revert "Cache the security class and bit values and translate the remaining hardcoded values."
Caching cannot be done as the values can change on SELinux policy update.
This reverts commit
b15f72976965d2ae1a1273558bf45be7de077b79 .
Tomas Mraz [Thu, 16 Dec 2010 16:05:37 +0000 (17:05 +0100)]
Revert "Missing exit if cron_init_security() fails."
Caching cannot be done as the values can change on SELinux policy update.
This reverts commit
ac70de36ec6c403c28291689701bd2567c565107 .
Tomas Mraz [Thu, 16 Dec 2010 10:45:17 +0000 (11:45 +0100)]
Missing exit if cron_init_security() fails.
Tomas Mraz [Wed, 15 Dec 2010 21:51:38 +0000 (22:51 +0100)]
Cache the security class and bit values and translate the remaining hardcoded values.
Tomas Mraz [Wed, 15 Dec 2010 15:16:04 +0000 (16:16 +0100)]
Clean up unnecessary assignment.
Dan Walsh [Wed, 15 Dec 2010 13:31:46 +0000 (14:31 +0100)]
This patch causes cronie to ask kernel for constant definition
rather then using hard coded
Also add info to syslog message to help diagnose problems.
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
Tomas Mraz [Fri, 10 Dec 2010 17:12:36 +0000 (18:12 +0100)]
Do not lock jobs that fall out of allowed range - rhbz#661966
Marcela Mašláňová [Tue, 26 Oct 2010 09:54:18 +0000 (11:54 +0200)]
Man - another typo
Marcela Mašláňová [Tue, 26 Oct 2010 08:19:33 +0000 (10:19 +0200)]
Re-add missing option into man and fix some typos.
Thanks to Colin Dean.
Marcela Mašláňová [Fri, 22 Oct 2010 07:52:53 +0000 (09:52 +0200)]
New release 1.4.6
Martin Prpič [Thu, 21 Oct 2010 15:36:18 +0000 (17:36 +0200)]
Rewrite of man pages & correction.
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
Marcela Mašláňová [Thu, 21 Oct 2010 15:29:12 +0000 (17:29 +0200)]
Remove useless man page.
Thanks to Colin Dean.
Marcela Mašláňová [Thu, 21 Oct 2010 06:19:22 +0000 (08:19 +0200)]
Apply previous patch correctly.
Colin Dean [Wed, 20 Oct 2010 14:20:36 +0000 (16:20 +0200)]
Check clustering before un/watch function
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
Marcela Mašláňová [Wed, 13 Oct 2010 10:47:27 +0000 (12:47 +0200)]
Merge branch 'cluster'
Marcela Mašláňová [Fri, 8 Oct 2010 10:17:15 +0000 (12:17 +0200)]
Check clustering before un/watch function