public inbox for gentoo-hardened@lists.gentoo.org
 help / color / mirror / Atom feed
From: Luis Ressel <aranea@aixah.de>
To: gentoo-hardened@lists.gentoo.org
Subject: Re: [gentoo-hardened] Selinux: /bin/su and pam_selinux
Date: Sat, 21 Jan 2017 20:04:14 +0100	[thread overview]
Message-ID: <20170121200414.05246327@gentp.lnet> (raw)
In-Reply-To: <9be896e1-beae-f94b-800f-d10f7862c67d@sharp.homelinux.org>

[-- Attachment #1: Type: text/plain, Size: 737 bytes --]

On Sat, 21 Jan 2017 18:04:51 +0000
Robert Sharp <selinux@sharp.homelinux.org> wrote:

>      type=AVC msg=audit(1485020695.038:10368): avc:  denied
> { create } for  pid=20374 comm="su"
> scontext=staff_u:sysadm_r:sysadm_su_t tcontext=root:sysadm_r:sysadm_t
> tclass=key permissive=1

I haven't looked at this in detail, so please forgive me if my answer
is utter nonsense: Have you considered that this denial might be caused
by UBAC (that's the fancy name for the restrictions refpolicy places
upon interactions between different selinux users, staff_u and root in
this case)?

Anyway, personally I've never tried making su work with SELinux.
"sudo -r sysadm_r -t sysadm_t" works like a charm.

Regards,
Luis Ressel

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2017-01-21 19:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-21 18:04 [gentoo-hardened] Selinux: /bin/su and pam_selinux Robert Sharp
2017-01-21 19:04 ` Luis Ressel [this message]
2017-01-24 15:50 ` Sven Vermeulen

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=20170121200414.05246327@gentp.lnet \
    --to=aranea@aixah.de \
    --cc=gentoo-hardened@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox