From nobody Mon Jul 24 02:44:10 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R8Pd51TZMz4nhSy for ; Mon, 24 Jul 2023 02:44:25 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R8Pd40crdz3xLY for ; Mon, 24 Jul 2023 02:44:23 +0000 (UTC) (envelope-from bakul@iitbombay.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1bba2318546so4447465ad.1 for ; Sun, 23 Jul 2023 19:44:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20221208.gappssmtp.com; s=20221208; t=1690166662; x=1690771462; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=Djr6Wzrnjn4V4knzNzVsx2uLWvIkcXYGZUB8ZodqXrw=; b=sKOrR6Pukww/g/m0/LxFiJ/UBqNwJXbe1udUkowwLRMmUVjuebpA4OaV5+9LK37rle T5BIqonGCrHNw63HwIvNxWAotAvgMwpX0OfV+7DWr9iP/xPpFpObtsZx44eXdfhpF73R 8Gil9m2oxYf2Rq1/KJvIg3OC2RyL9fV9c0bUspEE+R8OvIeWRtEffQM5YQMmzOv1lpxs suQS/DemRxDnfUFPKJEL9s87ApTPZX3KLgotBHVEh249ujzdgLIJ/U1ltPPxgPW6jD0H K3x+ftk9sXvB177MmLrEL+cEX3U8Ub6MjXHz9/+6bKjy6S20D9qV2vEc+Kntba7m+C6x tY7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690166662; x=1690771462; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Djr6Wzrnjn4V4knzNzVsx2uLWvIkcXYGZUB8ZodqXrw=; b=B3LYfmxQy2sXUnoKtFvD2CwyyceII7blGEhl7D6Z+R7mNs/oRSBC8RNUNyz0WNogcV sPog1IoueMsJz2XNm52UemHIuxvtCcAKgP9llYEGd3dNtmQ9pqmySPnzmzjWcx9B9AYW wVhbzVEkbMyZb28XeHCL5zl95e1ziQ29A2nRsxrWI0jUjDUH0VPjCMuWCTUyH7dcCc0g /JgFAGi3iuKvWzQvLFqL6kq1Ftr6MJdZhkR5mX6wgs7T0Dx0GGzCxkuxGAIoglVbpoaS I6iwRrj4VeJ4fEG+4HXvQXy1wBAbsTC8gk2ew3rdoANQdCeWo85U1S6jYv3xhwBSjhe0 Tj0g== X-Gm-Message-State: ABy/qLa8mR4r053vVQDikW/u7KC1kPnkDr10umjUrvOrXdQ8QwEZD0Mx 7RtAcG4fo/TIWUiyckKX/QNto2Y6+p6/VeNj794= X-Google-Smtp-Source: APBJJlEyy/FUx9vsqtmgQuoRXNchD8GJhr3FhVI3tLDl4tlgVG7p45CMiZ/vTZbo/DIuy67lXsh61w== X-Received: by 2002:a17:903:32c3:b0:1b0:f8:9b2d with SMTP id i3-20020a17090332c300b001b000f89b2dmr11838876plr.29.1690166661963; Sun, 23 Jul 2023 19:44:21 -0700 (PDT) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id j4-20020a170902c3c400b001aaecc0b6ffsm7566430plj.160.2023.07.23.19.44.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Jul 2023 19:44:21 -0700 (PDT) From: Bakul Shah Message-Id: <5EBDAA39-3512-4AA9-A4E2-72741FAE414C@iitbombay.org> Content-Type: multipart/alternative; boundary="Apple-Mail=_207BFE15-2476-48AF-89C3-BA8CBFD3A375" List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: Contributing to one of the projects in the Ideas page Date: Sun, 23 Jul 2023 19:44:10 -0700 In-Reply-To: Cc: imp@bsdimp.com, FreeBSD Hackers To: k sridhar References: X-Mailer: Apple Mail (2.3731.600.7) X-Rspamd-Queue-Id: 4R8Pd40crdz3xLY X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --Apple-Mail=_207BFE15-2476-48AF-89C3-BA8CBFD3A375 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Note that NetBSD seems to have the same version as FreeBSD's = ports/sysutils/isc-cron (modulo replacing sprintf, strcpy, strcat etc = with safer versions). Paul seems to be maintaining the original at = https://github.com/vixie/cron.git with a few fixes this year. Though his = CRON_VERSION says V4.999 compared to ports/isc-cron that has V5.0! I = would suggest keeping in sync with Paul's version at github and may be = feeding back improvements. > On Jul 23, 2023, at 7:06 PM, k sridhar wrote: >=20 > Sure, I will start by reviewing what OpenBSD and NetBSD have done. >=20 > Thanks a lot. >=20 > On Sun, Jul 23, 2023 at 10:04=E2=80=AFPM Warner Losh > wrote: >>=20 >>=20 >> On Sun, Jul 23, 2023, 7:59 PM k sridhar > wrote: >>>=20 >>> Hello, >>>=20 >>> I was browsing the Ideas page for ways to contribute to BSD. >>> I came across this (which does not have any contact, I think). >>>=20 >>> If it is still open, I wanted to check if I could try to do this. >>>=20 >>> Briefly - I am in IT, and have been using UNIX since grad school in = the early 90s (Solaris, briefly Ultrix/Aix and then different Linuxes = and MacOS). C/C++/Java programming, scripting, installs, etc... and = various other stuff.=20 >>>=20 >>> I want to give it a shot if you all think that is ok. >>=20 >>=20 >> Nobody is working on this. Might be best to see what openbsd and = netbsd have done first and start from there. It will be the first = question people ask when you start the review process. I think yhey = have some fixes and a newer vixie cron import, but I'm not sure.=20 >>=20 >> Happy coding >>=20 >> Warner >>=20 >>> Thanks a lot >>> k.sridhar (U.S resident in Virginia) >>> Improve cron(8) and atrun(8) >>>=20 >>> Currently, cron(8) and atrun(8) are outdated in their = implementation. Here are some directions for improvement: >>>=20 >>> Update cron(8) to ISC cron with security fixes from OpenBSD. >>> Integrate the atrun(8) functionality into cron(8), as it was done in = NetBSD. >>>=20 >>> Requirements >>>=20 >>> Strong knowledge of the C language and Unix API. --Apple-Mail=_207BFE15-2476-48AF-89C3-BA8CBFD3A375 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Note that = NetBSD seems to have the same version as FreeBSD's = ports/sysutils/isc-cron (modulo replacing sprintf, strcpy, strcat etc = with safer versions).

Paul seems to be maintaining = the original at https://github.com/vixie/cron.git with a few fixes this = year. Though his CRON_VERSION says V4.999 compared to ports/isc-cron = that has V5.0! I would suggest keeping in sync with Paul's version at = github and may be feeding back improvements.

On Jul 23, 2023, at 7:06 PM, k sridhar = <ksrdhrbsd@gmail.com> wrote:

Sure, I will = start by reviewing what OpenBSD and NetBSD have = done.

Thanks a lot.

On Sun, Jul = 23, 2023 at 10:04=E2=80=AFPM Warner Losh <imp@bsdimp.com> = wrote:


On Sun, Jul = 23, 2023, 7:59 PM k sridhar <ksrdhrbsd@gmail.com> = wrote:

Hello,

I was browsing the = Ideas page for ways to contribute to BSD.
I came across this = (which does not have any contact, I think).

If = it is still open, I wanted to check if I could try to do = this.

Briefly - I am in IT, and have been = using UNIX since grad school in the early 90s (Solaris, briefly = Ultrix/Aix and then different Linuxes and MacOS). C/C++/Java = programming, scripting, installs, etc... and various other = stuff. 

I want to give it a shot if you all = think that is = ok.

Nobody is working on this. = Might be best to see what openbsd and  netbsd have done first and = start from there. It will be the first question people ask when you = start the review process.  I think yhey have some fixes and a = newer vixie cron import, but I'm not sure. 

Happy coding

Warner

Thanks a = lot
k.sridhar (U.S resident in Virginia)

Improve cron(8) and = atrun(8)

Currently, cron(8) and atrun(8) are = outdated in their implementation. Here are some directions for = improvement:

  • Update cron(8) to ISC cron with = security fixes from OpenBSD.
  • Integrate the atrun(8) functionality into cron(8), as it was = done in NetBSD.

Requirements
  • Strong knowledge of the C language = and Unix API.

= --Apple-Mail=_207BFE15-2476-48AF-89C3-BA8CBFD3A375--