All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dominick Grift <dac.override@gmail.com>
To: Chris PeBenito <pebenito@ieee.org>
Cc: Russell Coker <russell@coker.com.au>,
	"selinux-refpolicy\@vger.kernel.org" 
	<selinux-refpolicy@vger.kernel.org>
Subject: Re: strange systemd audit message
Date: Thu, 31 Jan 2019 08:53:40 +0100	[thread overview]
Message-ID: <875zu56z5n.fsf@gmail.com> (raw)
In-Reply-To: <944e7a06-9372-f403-06ed-d0508102873e@ieee.org> (Chris PeBenito's message of "Wed, 30 Jan 2019 18:42:30 -0500")

Chris PeBenito <pebenito@ieee.org> writes:

> 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.

I think its the systemd --user instance spawned by systemd --system on
behalf of root. Basically systemd --system pam code reads /etc/pam.d/systemd-user which calls pam_selinux
and then ends up interpretting either failsafe_context or default_contexts 

Just a guess though. Baasically it boils down to not having support
for systemd --user functionality in the policy.

-- 
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8 02D5 3B6C 5F1D 2C7B 6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02
Dominick Grift

      reply	other threads:[~2019-01-31  7:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-30 13:02 strange systemd audit message Russell Coker
2019-01-30 23:42 ` Chris PeBenito
2019-01-31  7:53   ` Dominick Grift [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875zu56z5n.fsf@gmail.com \
    --to=dac.override@gmail.com \
    --cc=pebenito@ieee.org \
    --cc=russell@coker.com.au \
    --cc=selinux-refpolicy@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.