From nobody Mon Jan 29 22:32:22 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 4TP32Z67Fbz57Zdw; Mon, 29 Jan 2024 22:32:22 +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 4TP32Z3hTKz4gFH; Mon, 29 Jan 2024 22:32:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706567542; 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=GdGGMf3YQtKTiJv0S534/OzjUb2FfHLYScOaEC0ROqw=; b=x79vJaePVjezyKV3T+Y/ZOLovkB4Doqd8c0cn3VwzXyC2ORfh1lyj6AnZJy7O210PEPa1v yOr3NSxp3WY1CAopN3sB1jquC8Z1ZiVekTYUmNN+tIQoehMGh4aDZ7MBWFo0xX8f2e1aAh 1VZfp6m6lqj+g98Uyygx3pEjmKrCC3QDTRt5SfAi0azvgeda4LsZdIGUaGy9ZFVpajU7Aq MEWkvmdaPe8h5QsMwO0o2DskkGMhXG6XGO2rIcNvO6iEi58cwyY1T+q5nfOjN1pHOu3DYP ILfegmtKIVZekHg3VQfyBAq6dVrgEzFq+riymsIqAc5uwM+5Jo6kz4ktLagWgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706567542; 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=GdGGMf3YQtKTiJv0S534/OzjUb2FfHLYScOaEC0ROqw=; b=uGh8sCM1zHDE9JFe2in9uHX4QxosBgasCJ1B7pRMJBeUpWBdWw8aoL/Hh/5TjcJr3SSGgr GGd6/0v6kXQGE1x21ag02juFYVfG/AnqvYWbq7UdbszrEukpkvpM8bw5lpMvFU56o4xBXs RhPwJjr4Rm/KpjjlyQdJH8OlFcquEgpZziav9nGMrK0OdoNUykRIlg/IsFsnr5WxpAM4zc /z5lLmnvY06z+Aq53LBAd4vwmbbN109OsReomsqgxJ2zjdW8Fy2c326GHQQdRBTIvVNB3f /oqobbO8d2xaC/XcOoWTEZHahLmxqR3oa7vREdtQuxtEkr7fYSG7wF0JsZB67w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706567542; a=rsa-sha256; cv=none; b=LRgKH2dbL6te48riYrD3q0Q1XaLd7s+laxNjN22dOc3S9omVCwMx7dMtWtxoz2tCevztd8 9ny5nnrshJWsdfkcEpEe+c5owosNvARlhNF5eV+Vqjg0CGQSaRf85bJDy9/7mNPq7sN+iV SqEApHRpFed8mgE8yPlFxWGKTRSXqBaHfYlPsd1MlfzR19VolpLeyhM4kO8OiOE/yqTqX3 Z1SyVZE/5k4j4P4irYPw15vaK+P+kHR+COs6mORgrmL6SsCwuWh08lOJfDnkAplEDyOE9+ GDc2E2+vgWa8ovglIDQv0C4kTWzJSUAoM7VmD+TBXX1rWjkw8g1/QB4QNBPg0w== 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 4TP32Z2llLz197N; Mon, 29 Jan 2024 22:32:22 +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 40TMWMO4013945; Mon, 29 Jan 2024 22:32:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40TMWMHs013942; Mon, 29 Jan 2024 22:32:22 GMT (envelope-from git) Date: Mon, 29 Jan 2024 22:32:22 GMT Message-Id: <202401292232.40TMWMHs013942@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Certner Subject: git: c7e645269f1c - main - 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/main X-Git-Reftype: branch X-Git-Commit: c7e645269f1c7e9872a7ccf6b72f045c55a66793 Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=c7e645269f1c7e9872a7ccf6b72f045c55a66793 commit c7e645269f1c7e9872a7ccf6b72f045c55a66793 Author: Olivier Certner AuthorDate: 2024-01-25 22:25:10 +0000 Commit: Olivier Certner CommitDate: 2024-01-29 21:58:10 +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 --- 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 5ae0fbfb80b8..916e69065320 100644 --- a/lib/libutil/login_class.c +++ b/lib/libutil/login_class.c @@ -461,7 +461,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;