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=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_PASS 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 25E86C282D8 for ; Wed, 30 Jan 2019 23:56:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B20112081B for ; Wed, 30 Jan 2019 23:56:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="BUhIgBfw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726719AbfA3X4r (ORCPT ); Wed, 30 Jan 2019 18:56:47 -0500 Received: from mail-qt1-f173.google.com ([209.85.160.173]:44639 "EHLO mail-qt1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725811AbfA3X4r (ORCPT ); Wed, 30 Jan 2019 18:56:47 -0500 Received: by mail-qt1-f173.google.com with SMTP id n32so1593722qte.11 for ; Wed, 30 Jan 2019 15:56:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=ZZ49HMXkYe3B3Poq1UQ459GZB2GlbJ1dILS+9btfN9k=; b=BUhIgBfwgbXzpYh70ftmWGBSOe3Hmm6Ob+zEA9LEguCmWDh8aP9vzBVQdt11p+jZeH xlQIqO47v9RfCMBiqwajgssYu5BM9YfYCBX6qY8Cj/N4StF2sCI0/YVPtDu+hOvQn/Wi 3ItVCOI4VgsMrX3601nVBACWIggevEjyr+qAY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZZ49HMXkYe3B3Poq1UQ459GZB2GlbJ1dILS+9btfN9k=; b=GO6geS8EEIg0PibR5wvGpwG5BibfkpPEUTpnCsH3Nix+OvkY3b49C0vne3eYpGvxxR 61WUVVRCxG8dM/3rDXMHjvPc2DIOa2JuoVpBk+UFWoMO2FhweZvNEcSwAdK0jE4HafuI UnzyGDQLnJxuJvmFipepkDekBrpyhcGqsBMbo629O4wZ7usWfmwpraRPK3U0EPOrLkj9 VjsW3qpwzVLz6kSmmzsS/7IETViHsfaAdh3PX/jDpPV+SboAnrVx1raJaBR1tCks2e6+ nmSZ/Kjk2wlFoEPf6/Msvxw810G5wprdOnee4WrNqexFcA99ycuSqnHJBnE/6Jmw8OWB C7sQ== X-Gm-Message-State: AJcUukeepJFLkG7EPaIxVA6knhFz2cQ4qCgcRuovbqCjahFI4xirY9pL Kwyn9xhDjyeVBcUwPGILdlzjOW5+VGY= X-Google-Smtp-Source: ALg8bN5ffhQ31xx+WLWT1D/53KHsYoXtJe7JPqM9FHQOUsHkTSGYBOB2oCv7QhI6JNVIAnGg54ptfw== X-Received: by 2002:a0c:8c8a:: with SMTP id p10mr30548762qvb.218.1548892606239; Wed, 30 Jan 2019 15:56:46 -0800 (PST) Received: from [192.168.1.190] (pool-108-15-23-247.bltmmd.fios.verizon.net. [108.15.23.247]) by smtp.gmail.com with ESMTPSA id l4sm4790919qtf.22.2019.01.30.15.56.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 15:56:45 -0800 (PST) Subject: Re: strange systemd audit message To: Russell Coker , "selinux-refpolicy@vger.kernel.org" References: <2405565.z5mHNXCWPO@liv> From: Chris PeBenito Message-ID: <944e7a06-9372-f403-06ed-d0508102873e@ieee.org> Date: Wed, 30 Jan 2019 18:42:30 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <2405565.z5mHNXCWPO@liv> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On 1/30/19 8:02 AM, Russell Coker wrote: > I'm seeing the following every time I login as sysadm_r, whether it's via / > bin/login or sshd. But the login works correctly anyway. Any suggestions for > what I should investigate? > > type=PROCTITLE msg=audit(30/01/19 23:58:01.196:1595535) : proctitle=(systemd) > type=SYSCALL msg=audit(30/01/19 23:58:01.196:1595535) : arch=x86_64 > syscall=execve success=no exit=EACCES(Permission denied) a0=0x55f2c3008780 > a1=0x55f2c2fbe740 a2=0x55f2c302f1e0 a3=0x55f2c2e06010 items=0 ppid=1 pid=19802 > auid=root uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root > fsgid=root tty=(none) ses=189 comm=(systemd) exe=/lib/systemd/systemd > subj=system_u:system_r:init_t:s0 key=(null) > type=AVC msg=audit(30/01/19 23:58:01.196:1595535) : avc: denied { transition > } for pid=19802 comm=(systemd) path=/lib/systemd/systemd dev="dm-0" > ino=3069920 scontext=system_u:system_r:init_t:s0 > tcontext=root:sysadm_r:sysadm_t:s0 tclass=process permissive=0 I never login directly as sysadm, but now that I try, I see it too. I'm unaware of why this is happening; I'd have to look at the code to try to figure it out. -- Chris PeBenito