<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.sbin/cron, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-04-29T04:06:29Z</updated>
<entry>
<title>cron: log when a crontab path is too long</title>
<updated>2026-04-29T04:06:29Z</updated>
<author>
<name>Chris Longros</name>
<email>chris.longros@gmail.com</email>
</author>
<published>2026-04-29T04:06:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=91bfba010bcda665cc24a76af631cc85fcb0c688'/>
<id>urn:sha1:91bfba010bcda665cc24a76af631cc85fcb0c688</id>
<content type='text'>
Log via syslog when snprintf truncates the crontab path, instead of
silently skipping the entry.

Signed-off-by:	Christos Longros &lt;chris.longros@gmail.com&gt;
Reviewed by:	bcr, kevans
Differential Revision:	https://reviews.freebsd.org/D56235
</content>
</entry>
<entry>
<title>cron.8: clarify system crontab format</title>
<updated>2026-01-21T06:33:48Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2026-01-21T06:28:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=53d6b23765ca27ac7eca4096b2a83e84631c4ec8'/>
<id>urn:sha1:53d6b23765ca27ac7eca4096b2a83e84631c4ec8</id>
<content type='text'>
PR:		234504
MFC after:	1 week
</content>
</entry>
<entry>
<title>cron: Implement full PAM session lifecycle for user jobs</title>
<updated>2026-01-21T02:47:16Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2025-12-29T09:32:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=12444a4da514e91fdf984b31e1691d042d5f88d2'/>
<id>urn:sha1:12444a4da514e91fdf984b31e1691d042d5f88d2</id>
<content type='text'>
Extend PAM integration beyond account checks to include credential
establishment and session management, allowing PAM modules to configure
the execution environment for user cron jobs.

Previously, cron only called pam_acct_mgmt() to verify account validity
but immediately terminated the PAM handle before job execution. This
prevented PAM modules from establishing sessions, setting credentials
(e.g., Kerberos tickets), or exporting environment variables needed by
jobs.

The PAM handle now persists in the intermediate process throughout the
job execution, enabling proper session open/close pairing. Credentials
are established and sessions opened while still running as root, before
dropping privileges in the grandchild. PAM environment variables are
exported in the job process with user crontab variables taking precedence.

A session rule (pam_permit.so) is added to /etc/pam.d/cron to enable
session support without changing default behavior. Administrators can
replace this with other modules as needed.

System crontab entries continue to bypass all PAM operations.

PR:		bin/244844
Reviewed by:	des
MFC after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D54415
</content>
</entry>
<entry>
<title>Cron: add CC and BCC option for crontab variables</title>
<updated>2026-01-09T20:17:12Z</updated>
<author>
<name>Lakshmikanth Ayyadevara</name>
<email>lakshmikanth.a.ayyadevara@oracle.com</email>
</author>
<published>2025-10-02T16:08:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3e72ce4081f4a8d6b1d879dae201d569ce450261'/>
<id>urn:sha1:3e72ce4081f4a8d6b1d879dae201d569ce450261</id>
<content type='text'>
Signed-off-by: Lakshmikanth Ayyadevara &lt;lakshmikanth.a.ayyadevara@oracle.com&gt;
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1865
</content>
</entry>
<entry>
<title>cron: Use reallocarray() to prevent integer overflow</title>
<updated>2025-11-03T05:59:46Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2025-11-03T05:59:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=40d21618382108fefa84f8576b14302f65452718'/>
<id>urn:sha1:40d21618382108fefa84f8576b14302f65452718</id>
<content type='text'>
Apply OpenBSD env.c,v 1.24 and 1.25, which replaces manual size
calculations with reallocarray() to prevent possible integer
overflow.

MFC after:	3 days
</content>
</entry>
<entry>
<title>cron: Fix comment from "root's" to "system" crontab</title>
<updated>2025-09-13T00:38:48Z</updated>
<author>
<name>Jose Luis Duran</name>
<email>jlduran@FreeBSD.org</email>
</author>
<published>2025-09-13T00:38:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c806defe8fee62c4738f46e555d69b085e8d1259'/>
<id>urn:sha1:c806defe8fee62c4738f46e555d69b085e8d1259</id>
<content type='text'>
It is referred to in the documentation as the system crontab, not root's
crontab.

PR:		289099
Reviewed by:	emaste
Approved by:	emaste (mentor)
Fixes:	d33daab9348a ("Call /etc/crontab the "system crontab", not "root's crontab".  While here, fix some other wording issues")
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D52503
</content>
</entry>
<entry>
<title>SPDX: Tag BSD-4.3TAHOE</title>
<updated>2025-05-21T16:37:10Z</updated>
<author>
<name>Alexander Ziaee</name>
<email>ziaee@FreeBSD.org</email>
</author>
<published>2025-05-15T13:53:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7098712bbfd60df9db324decbc1a5dd8f751356f'/>
<id>urn:sha1:7098712bbfd60df9db324decbc1a5dd8f751356f</id>
<content type='text'>
TIL traceroute.8 has one of the oldest liceses, predating BSD-4-Clause!
The SPDX tag was not even on Wikipedia. These are all the files I could
find in the tree with git grep that look like the license reported on
the SPDX website, including one that was misfiled.

Ref:			https://spdx.org/licenses/BSD-4.3TAHOE.html
MFC after:		3 days
Reported by:		brooks
Reviewed by:		brooks, carlavilla, imp, ivy
Approved by:		carlavilla (mentor)
Differential Revision:	https://reviews.freebsd.org/D50362
</content>
</entry>
<entry>
<title>Remove residual blank line at start of Makefile</title>
<updated>2024-07-15T22:43:39Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-07-15T04:46:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e9ac41698b2f322d55ccf9da50a3596edb2c1800'/>
<id>urn:sha1:e9ac41698b2f322d55ccf9da50a3596edb2c1800</id>
<content type='text'>
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
</content>
</entry>
<entry>
<title>Explain cron.d</title>
<updated>2024-05-10T04:34:36Z</updated>
<author>
<name>Paweł Krawczyk</name>
<email>p+freebsd@krvtz.net</email>
</author>
<published>2024-05-10T04:21:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=042267e0cdda5cd90803b00a3d6a7dd1f403938d'/>
<id>urn:sha1:042267e0cdda5cd90803b00a3d6a7dd1f403938d</id>
<content type='text'>
Add details on the format of system cron files, which are mentioned in
cron(8) which refers here but barely explained here.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1106
</content>
</entry>
<entry>
<title>package: move cron into its own package</title>
<updated>2024-04-23T04:36:35Z</updated>
<author>
<name>Lexi Winter</name>
<email>lexi@le-Fay.ORG</email>
</author>
<published>2024-04-22T22:05:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7209444a80fd37de0e19c7cf93623f84709827e3'/>
<id>urn:sha1:7209444a80fd37de0e19c7cf93623f84709827e3</id>
<content type='text'>
Reviewed by: imp, manu, Mina Galic
Pull Request: https://github.com/freebsd/freebsd-src/pull/1172
</content>
</entry>
</feed>
