This allows not modifying priorities for selected login classes (or 'default' on custom-built systems). This also fixes inconsistent behavior compared to what is done for all other contexts: 'umask', 'cpumask', resource limits, etc., and aligns with what the login.conf(5) manual page says. While here, polish the syslog messages to contain readily useful information.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=d162d7e2ad327ceada4102c5d6779f9ecd809502 commit d162d7e2ad327ceada4102c5d6779f9ecd809502 Author: Olivier Certner <olce@FreeBSD.org> AuthorDate: 2023-06-21 08:53:37 +0000 Commit: Olivier Certner <olce@FreeBSD.org> CommitDate: 2024-01-29 21:58:09 +0000 setclasspriority(): New possible value 'inherit' It indicates to the login.conf machinery (setusercontext() / setclasscontext()) to leave priority alone, effectively inheriting it from the parent process. PR: 271749 Reviewed by: emaste, yuripv Approved by: emaste (mentor) MFC after: 3 days Relnotes: yes Sponsored by: Kumacom SAS Differential Revision: https://reviews.freebsd.org/D40690 lib/libutil/login_class.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=e074746fec21fbc4a66e936408e3b585f89b73bd commit e074746fec21fbc4a66e936408e3b585f89b73bd Author: Olivier Certner <olce@FreeBSD.org> AuthorDate: 2023-06-21 08:53:37 +0000 Commit: Olivier Certner <olce@FreeBSD.org> CommitDate: 2024-02-01 21:23:59 +0000 setclasspriority(): New possible value 'inherit' It indicates to the login.conf machinery (setusercontext() / setclasscontext()) to leave priority alone, effectively inheriting it from the parent process. PR: 271749 Reviewed by: emaste, yuripv Approved by: emaste (mentor) MFC after: 3 days Relnotes: yes Sponsored by: Kumacom SAS Differential Revision: https://reviews.freebsd.org/D40690 (cherry picked from commit d162d7e2ad327ceada4102c5d6779f9ecd809502) Approved by: markj (mentor) lib/libutil/login_class.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=a8c273b3c97fa3d0eaf566136d3784257f137d6e commit a8c273b3c97fa3d0eaf566136d3784257f137d6e Author: Olivier Certner <olce@FreeBSD.org> AuthorDate: 2023-06-21 08:53:37 +0000 Commit: Olivier Certner <olce@FreeBSD.org> CommitDate: 2024-02-01 21:29:55 +0000 setclasspriority(): New possible value 'inherit' It indicates to the login.conf machinery (setusercontext() / setclasscontext()) to leave priority alone, effectively inheriting it from the parent process. PR: 271749 Reviewed by: emaste, yuripv Approved by: emaste (mentor) MFC after: 3 days Relnotes: yes Sponsored by: Kumacom SAS Differential Revision: https://reviews.freebsd.org/D40690 (cherry picked from commit d162d7e2ad327ceada4102c5d6779f9ecd809502) Approved by: markj (mentor) lib/libutil/login_class.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)