From nobody Thu Feb 01 21:31:23 2024 X-Original-To: dev-commits-src-all@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 4TQsXr1tH6z58jH4; Thu, 1 Feb 2024 21:31:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TQsXq6M7Nz4c5f; Thu, 1 Feb 2024 21:31:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706823083; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8qz4LuJ9gejPquN3cb04+IHosrDhQAMNZJLol8dxu5M=; b=A7AfgZFlzdhcWQPaaA9i4b3PnKyMNYpvvo0cMfkwYDx0X0OlouXTkAOAoth+Bu11BXlnmN YDh62RcVz4L07p0zowjA7i02nJAh31y/wrSwZ7E1Z5Sv2OlYlWwdM2mfvrK3qJNvzP2F0b gnEVxNMcYMC9d3nvdVHT9gcIhXc1UZdExmrmk9zB3L1yYY/Fek8UXkbduZa4nh1WKDk/io yPf/EnlnhWaUDlb5ZWji9EYZmqkevi34UG5m/UcwpFng6Ukrdl6w71LjkBzT8xmndTowij PcteJGiChTZRa5ok0LaT4XFs4RinIU8rnSaCARjepJkVRt38BEW8uSZA+hInvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706823083; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8qz4LuJ9gejPquN3cb04+IHosrDhQAMNZJLol8dxu5M=; b=dGCSklI6mJ/vuifZT5v7dI/lfRn9CmBpgafaq6LK528Ijrd691cuBW3FQjHutN4HxyIPby bDe/wkNqg4jDk500At2Kc1ToHwGJjRjAQ3yqzaspZd7YJcNg7S3I9FgTina9dF/0ICtubu Wi2xiE7BuytduuQzDON/ZpQLjXwnj9Q7h4H82IzJpiCOD8po+QV42GU2hefDwYAb8mI2c5 O1IzH9Jmz5O7RQmEg4q30fH+pcpI0h9rh7MHpkmcBF0aWeXZNBW7iZkfNc1aSwy0+RB9c/ 9angyo5HcMf6wz8CMe+AxDy89Iyzf/s+tXfa2XpO5PHnUpgugA+A95Zh01tZgg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706823083; a=rsa-sha256; cv=none; b=D/glcubvdv9bihlk9h4SaSSpB2yA0pGE8K2MhGiQGW0U5SiJFm8rL3Wp9jYr+oFol55kRG mY6Z+VjjR2FR39W0ANDqzlR8SgWqPhu/1eP0e2eHGcOdPTtdjsHMHloVDFjXxyTCyytDpe EkjUumxg6rDTc/wOTGu9NMNFJENOJ+FkBt/C6zjkSBQ+kAW18my/VdKhZdzFmgU6EUzxAU wEnyaQBrcQVxIDw2EfcG5lUPsoj+Uf3uJ12qBZ3K7hLzka2PinYBMsek++BnlVwNUfieI4 u1cKIBLA7r7POFMGIbZ3Tko8y3CyxC/cZeFotvOGY7ALUSZHs8NmuJvYXF9tXA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TQsXq5T7Pz1HdC; Thu, 1 Feb 2024 21:31:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 411LVNKq081083; Thu, 1 Feb 2024 21:31:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 411LVNwK081080; Thu, 1 Feb 2024 21:31:23 GMT (envelope-from git) Date: Thu, 1 Feb 2024 21:31:23 GMT Message-Id: <202402012131.411LVNwK081080@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: 7e2bfa3d7a2a - stable/14 - login_cap.h: Remove LOGIN_DEFPRI List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olce X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 7e2bfa3d7a2a3025c6351a35b4ea52cdb2ea9c2f Auto-Submitted: auto-generated The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=7e2bfa3d7a2a3025c6351a35b4ea52cdb2ea9c2f commit 7e2bfa3d7a2a3025c6351a35b4ea52cdb2ea9c2f Author: Olivier Certner AuthorDate: 2024-01-25 22:25:10 +0000 Commit: Olivier Certner CommitDate: 2024-02-01 21:30:20 +0000 login_cap.h: Remove LOGIN_DEFPRI This is an implementation detail which is likely to become irrelevant in the future, as we move to not resetting the priority if the corresponding capability is not present in the configuration file ('/etc/login.conf'). GitHub's code search and Google show no use of this public constant, and it doesn't exist in OpenBSD and NetBSD. So, remove this definition and its sole use in-tree. PR: 276570 (exp-run) Reviewed by: emaste Approved by: emaste (mentor) MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D43609 (cherry picked from commit c7e645269f1c7e9872a7ccf6b72f045c55a66793) Approved by: markj (mentor) --- lib/libutil/login_cap.h | 1 - lib/libutil/login_class.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/libutil/login_cap.h b/lib/libutil/login_cap.h index a48246804a47..316d6e62d790 100644 --- a/lib/libutil/login_cap.h +++ b/lib/libutil/login_cap.h @@ -32,7 +32,6 @@ #define LOGIN_MECLASS "me" #define LOGIN_DEFSTYLE "passwd" #define LOGIN_DEFSERVICE "login" -#define LOGIN_DEFPRI 0 #define _PATH_LOGIN_CONF "/etc/login.conf" #define _FILE_LOGIN_CONF ".login_conf" #define _PATH_AUTHPROG "/usr/libexec/login_" diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c index b4e52951bf9c..eb16ad501881 100644 --- a/lib/libutil/login_class.c +++ b/lib/libutil/login_class.c @@ -462,7 +462,7 @@ setlogincontext(login_cap_t *lc, const struct passwd *pwd, unsigned long flags) static void setclasspriority(login_cap_t * const lc, struct passwd const * const pwd) { - const rlim_t def_val = LOGIN_DEFPRI, err_val = INT64_MIN; + const rlim_t def_val = 0, err_val = INT64_MIN; rlim_t p; int rc;