Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1223107pxb; Fri, 6 Nov 2020 04:23:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRSx2uki0u27WC9vpBMgThHEDT2qUhRzy4T6tISQLbh5iEtCAdVX2SzoBURvvBNx+7RL89 X-Received: by 2002:a50:eb0a:: with SMTP id y10mr1821790edp.342.1604665423142; Fri, 06 Nov 2020 04:23:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604665423; cv=none; d=google.com; s=arc-20160816; b=K9VYrBN3EaoJHBhe7m2UFKZImdZYosl3yVxJ1sHD6hgARz9wOp5IXRGp03uNAY0XCO kQHHmWmC7R7N6mjfHDyMUUyf4c9CeYnKth2bRlnuji7/RDWjDO0HRtUv4FVm5tDCmNln f7rokG6GQS8ntsVU4b2QOAj3SY82yoDqdynTWQNqw1WS8gPF3gJQ/YhaFMwnudOf33hF IphFqRR35fOsBxP/gXfpijkj8Z6LAfGgrxXTKifUQ7HnqNlVoJl0XnMUDeh1jth14bAL qlEucQhrWvbTHa4FXnr4FX0L9PhdpbMehkxsZkGcL8HpXR8+KEPZmfuL+VyRqZV1w/ZP EsHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=YUaSvirGjnftb3iKPYnFo0tj48LEYiycIQEKrdpMFyc=; b=0DGP7mFSMsRto8fMCgJzeOrt105nNTRO6iZrxpaG/NKUKi8MsC+FFerFTnubPQLCo0 j8DRAqGhU3Gdn3QmJAEP0NMMQ70G1q4Ts7Fymkvilgs3DN9iCB4FpL3nIF2x9lo4cgKp hJwF0iA7tgRwSS5oAmbwzqKuqoz2reRyzvI1HiefV7UR3R2VAw036Gnp2iZ/IyvYUimJ Jey0Ziz5zhc4uRwXw8qG8f2t6FizkxLMhn5YSoCTn3re0lErOrJzHHuhJTndBKC6iVxH /8OHfxdXv/z858pIBcFdUgdHL2UEcnWrCKpL1ljrnsvVpiZNs+ibM29x6WonTNXYC6JQ gaHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NE1sbJLH; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si1196478edc.298.2020.11.06.04.23.36; Fri, 06 Nov 2020 04:23:43 -0800 (PST) Received-SPF: pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NE1sbJLH; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726832AbgKFMXI (ORCPT + 17 others); Fri, 6 Nov 2020 07:23:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbgKFMXI (ORCPT ); Fri, 6 Nov 2020 07:23:08 -0500 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 074B5C0613CF; Fri, 6 Nov 2020 04:23:07 -0800 (PST) Received: by mail-qk1-x72b.google.com with SMTP id k9so805513qki.6; Fri, 06 Nov 2020 04:23:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YUaSvirGjnftb3iKPYnFo0tj48LEYiycIQEKrdpMFyc=; b=NE1sbJLHXHxLe1VKkyvAys8FCLfs8AAM0uBNLB6KQKGoXsAGa03B1Vg0hwCpy8vsFw XCWa8KPPlZ+kmssLPXS/KI7q3ysKzfe+Ou94jLsBjSPPP49QoiVHmYJybqG2wceXn8c4 heWyOoGnwFC8IeugfDGF4Rmw6Gr1/XraoSDjAxaW2fSAfPNqhhXGk6Jhb+h+sv2QBeMH 1EfDHyZBGCTtA7NCUpC+gafzYQ92mYbo+Pdq8DNkjcq+oMl464xwAhkAJOTidRo2I1g3 yI4qEhe2PebWpFMaLun6b0uf7fDYqy25fm1z0scMj+EOdzikhfb8hdjBErzo0ugpW7ra TZBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YUaSvirGjnftb3iKPYnFo0tj48LEYiycIQEKrdpMFyc=; b=TIPqzH5E4TZxxhsL1a3NVHi4leLmMDTjhODkibZEImfZV/lb8AdCUD/1eDCGsrwjaz //TOB394RQGjYTpOt//FYMdCcYIoeWCLS88wWRJbqsWm559oT62jTE+iJsmLwRjjncgF kd0hDDsns9ucFCIt/LW0uEJagvlaOsEjDd/0am0/f9obBSNJuEujgVhrXroBOFmurIr1 WN0jaH1WHlh2NGn6J9ieOSGJ3mMWz7G7hqAPe4flqHsvJZOfaadxwBO4uru9miB2V0L2 lk20Tf/ias/DPeXTi3V6lBO1YH002udtUsrV9UFz9Z/BIpcjEi6UftNPQlNae3BLkRyG jyIg== X-Gm-Message-State: AOAM531bVhJD9PFVzdBIFiPuN0k7W7ih46j9en80UgADgUR8Yyv1WcjI qlQWP6+/WVuYAqjVFAiJQHeybjT5Hhf3xWHcal0YNXBvMVj2mg== X-Received: by 2002:a05:620a:2443:: with SMTP id h3mr1086875qkn.447.1604665386816; Fri, 06 Nov 2020 04:23:06 -0800 (PST) MIME-Version: 1.0 From: rishi gupta Date: Fri, 6 Nov 2020 17:52:55 +0530 Message-ID: Subject: Selinux policy for x509_ima.der public certificate loaded by kernel during boot To: linux-integrity , selinux-refpolicy@vger.kernel.org, selinux@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org I am getting below error as selinux is denying access to the .ima keyring. Looking for guidance for asymmetric public key selinux policy. [ 172.014855] integrity: Request for unknown key 'id:87deb3bf' err -13 [ 172.015035] audit: type=1800 audit(1604596570.579:240): pid=825 uid=1021 auid=4294967295 ses=4294967295 subj=system_u:system_r:mydaemon_t:s0-s15:c0.c1023 op="appraise_data" cause="invalid-signature" comm="mydaemon" name="/usr/lib/libstdc++.so.6.0.25" dev="ubifs" ino=14353 res=0 (a) Do I need to set the selinux context of file /etc/keys/x509_ima.der. If yes what it should be. (b) Do I need to set some selinux rule for .ima keyring. If yes how. I tried a lot but could not find any resource. Regards, Rishi