[Bug 271749] setusercontext(), login.conf: Only set priority if explicit in the login class specification

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 31 May 2023 15:56:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271749

            Bug ID: 271749
           Summary: setusercontext(), login.conf: Only set priority if
                    explicit in the login class specification
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: olivier.freebsd@free.fr

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.