From patchwork Tue Oct 31 12:32:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Mosnacek X-Patchwork-Id: 16098 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b90f:0:b0:403:3b70:6f57 with SMTP id t15csp201561vqg; Tue, 31 Oct 2023 05:33:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFVuTuNh1wROkbCbcV3kIyvV+8/pAEAyvaPzef/oBCYrnaHonMBcJzXedJLLdYMyb3nqPef X-Received: by 2002:a05:6a00:1810:b0:68e:3bc8:17d1 with SMTP id y16-20020a056a00181000b0068e3bc817d1mr12621917pfa.29.1698755599083; Tue, 31 Oct 2023 05:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698755599; cv=none; d=google.com; s=arc-20160816; b=KYdYNkThQPaXvRBlIAJuSBHZUJDj0w37VhIyzidUbqg8eT10yYveELbctlQu8Hnnwo ECW2iVVi+p8s4nozlFiqjjoi+bYmYbudwPHTpAyJK9TpvaMyRjYNcRTS51og75QjbPni 8L4zNJ0J/kz7OAZG3OllxA1MOHgAL3xMmzaan9fiL2Lcb6z/s1afOp0ArqMGjAbnxL0i RJ/o3idgDvBIKv3qfmxjpbDRfO1AT/PS6O0jdOX9now4dtZ+ugD3fi6Gbk5A3/gI6oaR VzrHdfKACPW5hRX5o4bzmCyJHsmo45VhQ/I2tol4nwPLZolnUJZvHKk+YeBhx4wvGV6A hEiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3DnaCdie6hqZryBnxfeM3IpTCv2hUsxvT+f5bpebJE4=; fh=3AN7ORKc66AQYSTl23VmdYm3vXIU7gdmsvq6+mhfy+0=; b=oJwEjYT02YkPQ6OanpdifuL1a9D+WkZg5JG6kPHkD+qI8gN7hOM8PZNilbyw7uX8dB Gid+Qke3dBWjHYsTTnHkPYRVhzPzgCk9SGq8GxpjEarKDCD+GX2Db5+/FFbk75pj0vp+ kEDkxI1UR/G0yErE8N+Xj0OAr59eleS1gbDuHUA95aXKd6tZnFLZlPwZUa2nrRnOyoss t2ZwOebZOeciQC3NntSIo7FKjulR3OkZppwPdXedbGh2vcbbXa5qY+GvhOooOulf9MFU PAVBPoM8Ck0dla5+fyVNim/uPvc7G3xr/h68aJgO1mJlvBx8uk6n5SI0VTnX81KbahKy OCpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=c1BRe9qN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id e62-20020a636941000000b0056949ba3f3fsi1007340pgc.253.2023.10.31.05.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 05:33:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=c1BRe9qN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B7ABD802C923; Tue, 31 Oct 2023 05:33:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344263AbjJaMc6 (ORCPT + 33 others); Tue, 31 Oct 2023 08:32:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344044AbjJaMc4 (ORCPT ); Tue, 31 Oct 2023 08:32:56 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 872EFB7 for ; Tue, 31 Oct 2023 05:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698755536; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=3DnaCdie6hqZryBnxfeM3IpTCv2hUsxvT+f5bpebJE4=; b=c1BRe9qNm8b87vPyUGX8p25CFwIxJGN5aVLu3MRADHuhPiLZ4vroJc0+sA3b+Ml2ktuCz0 CaDrhIiGdEEt5RrIJqHwpvGjNt2kOt+yIHLH6QfzG+tb7VyFwm1CluSLCgECnxAo5bbxoj HIDwN89XtgMeJkfKsEhuOsRVVXY6/28= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-362-7nt6u-DQPCOeR0mAprKKCA-1; Tue, 31 Oct 2023 08:32:10 -0400 X-MC-Unique: 7nt6u-DQPCOeR0mAprKKCA-1 Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-779f645c74cso698897185a.0 for ; Tue, 31 Oct 2023 05:32:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698755530; x=1699360330; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3DnaCdie6hqZryBnxfeM3IpTCv2hUsxvT+f5bpebJE4=; b=gNtlsoA59b3M7Juz9zzlYNu04E7bK0Na1+g4b31FxehyPWRwanx2x71BPm5cn5GSyo /StANHL0kNbHjJR+nDfn7vn1t+n+tQMNbSB5MUFx0m9O23/5UNAthj1Mtt4jIwpPO7ts +MHuoEdN9edo8nXydLL600v/f1TODGGmSSPEYwhUmJfoRvmJtIauuJkkLRB1c88EJxcl mmCNuKFk9ldvskx6L1vXdzClD/IcepPvDgpMPgtTOUMmedQlCFufkJJ0Tbnsc+NSA4Cj Bp1EHSSc4ETaTcIZm/l1pK6sIhnepdmbzVyd8DuzdFbqGy1eBgfJ91FyVkRVjUp3qMk3 TkSQ== X-Gm-Message-State: AOJu0YyXPl9KYBUVbA5v8MIu1YtSO+JOdrYQvPapjR76jgn00d0DMmJ/ 9EL3GRp6wUYRQ7qnTZ6GP8cunDIb7ljVdqLGfTZ/UzLxizetACEKK23wNzYOCAuIL+RBXjatsQR jKGr3u6cz8kMcB+cC0Dske0HU X-Received: by 2002:a05:620a:371a:b0:774:11c4:45cb with SMTP id de26-20020a05620a371a00b0077411c445cbmr15316844qkb.53.1698755530346; Tue, 31 Oct 2023 05:32:10 -0700 (PDT) X-Received: by 2002:a05:620a:371a:b0:774:11c4:45cb with SMTP id de26-20020a05620a371a00b0077411c445cbmr15316823qkb.53.1698755530070; Tue, 31 Oct 2023 05:32:10 -0700 (PDT) Received: from localhost.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id g23-20020a05620a13d700b00777063b89casm457697qkl.5.2023.10.31.05.32.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 05:32:09 -0700 (PDT) From: Ondrej Mosnacek To: Paul Moore Cc: linux-security-module@vger.kernel.org, Benjamin Coddington , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] lsm: fix default return values for some hooks Date: Tue, 31 Oct 2023 13:32:05 +0100 Message-ID: <20231031123207.758655-1-omosnace@redhat.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 31 Oct 2023 05:33:07 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781274350903014258 X-GMAIL-MSGID: 1781274350903014258 Some of the default return values listed in don't match the actual no-op value and can be trivially fixed. Ondrej Mosnacek (2): lsm: fix default return value for vm_enough_memory lsm: fix default return value for inode_getsecctx include/linux/lsm_hook_defs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)