Bug 270433 - sysutils/tuptime: installation upgrade with '_tuptime' UID/GID
Summary: sysutils/tuptime: installation upgrade with '_tuptime' UID/GID
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Fernando Apesteguía
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-24 16:42 UTC by Ricardo Fraile
Modified: 2023-04-06 18:22 UTC (History)
2 users (show)

See Also:
jeremy: maintainer-feedback+


Attachments
Patch to create _tuptime UID/GID, cron exec. and rc.d script. (3.91 KB, patch)
2023-03-24 16:42 UTC, Ricardo Fraile
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Fraile 2023-03-24 16:42:17 UTC
Created attachment 241090 [details]
Patch to create _tuptime UID/GID, cron exec. and rc.d script.

Hi,


With the attached patch, the tuptime installation creates an unprivileged user/group for their execution.

Also, it adds the cron file and update the rc.d script.


Thanks,
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2023-04-06 18:22:11 UTC
Committed,

Thanks!
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-04-06 18:22:42 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=98513a91396304c764dd40563b479c6ef4b17755

commit 98513a91396304c764dd40563b479c6ef4b17755
Author:     Ricardo Fraile <r@rfmoz.eu>
AuthorDate: 2023-04-05 08:12:20 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-04-06 18:16:48 +0000

    sysutils/tuptime: installation upgrade with _tuptime UID/GID

    Create an unprivileged user/group for their execution.
    Also, add the cron file and update the rc.d script.

    PR:             270433
    Reported by:    r@rfmoz.eu
    Approved by:    jeremy@smart-serv.net (maintainer)

 GIDs                                  |  2 +-
 UIDs                                  |  2 +-
 sysutils/tuptime/Makefile             | 16 +++++++++++++++-
 sysutils/tuptime/files/cron (new)     |  1 +
 sysutils/tuptime/files/pkg-message.in | 11 ++++++-----
 sysutils/tuptime/files/tuptime.in     | 16 +++++-----------
 6 files changed, 29 insertions(+), 19 deletions(-)