From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A78AC54EEB for ; Mon, 27 Apr 2020 20:23:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 59320206E2 for ; Mon, 27 Apr 2020 20:23:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jeoBRwfJ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726775AbgD0UXh (ORCPT ); Mon, 27 Apr 2020 16:23:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726501AbgD0UXg (ORCPT ); Mon, 27 Apr 2020 16:23:36 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEE12C0610D5 for ; Mon, 27 Apr 2020 13:23:36 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id l20so1261081pgb.11 for ; Mon, 27 Apr 2020 13:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LiSqBGVfe5hAcik2WCFSuq49veVlaqUwalAvJGlQXvg=; b=jeoBRwfJn7YyYeTMOA5SJ3Axt6rQnS+h3YUIK23QXz5A3zTDE1wRYi19Qhzn5wNld5 UKIyQxbojC+lxxlfXtrW277fMNcremNwWJ5g5wo82aPd7hBwHE8k6JBVjzlkjH7s3u9L WgYYdy4PnlFzPAxtI5iJF0H4zbRW+gV6tJUoZTkUSDtWUeu7G+0AzMw9hSDRunLhlevi CXvwHWBc/cA6vgYpyG20pw//Yqc2x7rDcVJ5p/qKPboN8ABdkBPiyKK4BD2VaKqyvcGm 8JjaH8bKzYbNy3mQzeaehQhpLXwQkKFX6SM3VhK5qsy5YQX/wO9pksf54ggu8pp+0Jwf T8rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LiSqBGVfe5hAcik2WCFSuq49veVlaqUwalAvJGlQXvg=; b=R2GqIlAxUSA6D7NLK0NCfOl6y00LPj4qszobJMHMg2KmKjh9O9emVUSCplD++EVocI KF4iss8X21oJxoqAr/LqgBuR2Uh5HCH6GhAu/CkW0r3glQz4tdW2b8Z1w8sBBKoPOxmH 2v+zZo1CbUCN2OX3Eswo6mPNmMTwck3os47b8qiUbdr2b2EJkg8ty4ZOO+nibQsu7OjK odr55cIFAgoyesvuh/kXNnxIT1BRPEKBL05pSw/3PmzgGE3dXwKSYl/kP+xotdOjjfVE X9iu4GaK6tHgVv36vIqNv0EIM0G4kpBZvQtVLqGAjGprCVs0P0VPjblzrLN3x9cUJXpg IppQ== X-Gm-Message-State: AGi0PuZGYuhiHP46ngoxaaLgF4Sy4k5m+9Ikv5NbSQbEjh+Mg+zCUouJ JTJFviqik2zOFCUhyyIyy6w= X-Google-Smtp-Source: APiQypJadLmeOOiXe9Pbkp+2SCVtRFpCyyfpjmDyVlTLj5DbfnqvLsxLK6pqTqXMtzdNWSVixgvMvw== X-Received: by 2002:a62:1d1:: with SMTP id 200mr27071354pfb.286.1588019015347; Mon, 27 Apr 2020 13:23:35 -0700 (PDT) Received: from localhost.localdomain ([134.134.139.76]) by smtp.gmail.com with ESMTPSA id n30sm13329438pfq.88.2020.04.27.13.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2020 13:23:34 -0700 (PDT) From: bill.c.roberts@gmail.com X-Google-Original-From: william.c.roberts@intel.com To: bill.c.roberts@gmail.com Cc: plautrba@redhat.com, sds@tycho.nsa.gov, selinux@vger.kernel.org, William Roberts Subject: [PATCH v4 08/18] checkPasswdAccess: annotate deprecated Date: Mon, 27 Apr 2020 15:23:05 -0500 Message-Id: <20200427202315.4943-9-william.c.roberts@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200427202315.4943-1-william.c.roberts@intel.com> References: <20200225200219.6163-1-william.c.roberts@intel.com> <20200427202315.4943-1-william.c.roberts@intel.com> Sender: selinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org From: William Roberts Signed-off-by: William Roberts --- libselinux/include/selinux/selinux.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libselinux/include/selinux/selinux.h b/libselinux/include/selinux/selinux.h index deaa3f172586..9dcb3220264a 100644 --- a/libselinux/include/selinux/selinux.h +++ b/libselinux/include/selinux/selinux.h @@ -619,7 +619,11 @@ extern int selinux_check_access(const char * scon, const char * tcon, const char /* Check a permission in the passwd class. Return 0 if granted or -1 otherwise. */ extern int selinux_check_passwd_access(access_vector_t requested); -extern int checkPasswdAccess(access_vector_t requested); +extern int checkPasswdAccess(access_vector_t requested) +#ifdef __GNUC__ + __attribute__ ((deprecated("Use selinux_check_access"))) +#endif +; /* Check if the tty_context is defined as a securetty Return 0 if secure, < 0 otherwise. */ -- 2.17.1