From: Daniel J Walsh <dwalsh@redhat.com>
To: imsand@puzzle.ch
Cc: selinux@lists.fedoraproject.org, SELinux <selinux@tycho.nsa.gov>
Subject: Re: error: ssh_selinux_getctxbyname: Failed to get default SELinux security context
Date: Thu, 30 Sep 2010 14:24:20 -0400 [thread overview]
Message-ID: <4CA4D5D4.9090104@redhat.com> (raw)
In-Reply-To: <49903.193.5.216.100.1285856295.squirrel@mail.puzzle.ch>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 09/30/2010 10:18 AM, imsand@puzzle.ch wrote:
> another interesting thing is the following:
> (seen with the debug option in pam_selinux)
>
> assuming that the linux user is mat and the corresponding selinux user is
> mat_u. during ssh login this happens:
>
> Sep 30 16:09:49 testsrv sshd[4328]: pam_selinux(sshd:session): Open Session
> Sep 30 16:09:49 testsrv sshd[4328]: pam_selinux(sshd:session): Open Session
> Sep 30 16:09:49 testsrv sshd[4328]: pam_selinux(sshd:session): Username=
> mat SELinux User = mat_u Level= (null)
> Sep 30 16:09:49 testsrv sshd[4328]: pam_selinux(sshd:session): set mat
> security context to mat_u:staff_r:staff_t
> Sep 30 16:09:49 testsrv sshd[4328]: pam_selinux(sshd:session): set mat key
> creation context to mat_u:staff_r:staff_t
>
> As we can see, the user mapping works as desired and the new choosen
> context should be all right => mat_u:staff_r:staff_t.
>
> But then, when I do an id -Z after successful login, the shell's context
> is context=user_u:user_r:user_t.
>
> Very strange....
>
> --
> selinux mailing list
> selinux@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/selinux
>
>
You got me. If you create the mat_u user and login does the pam_selinux
session look different?
Why don't you ask on the upstream selinux list. More sles experience is
probably there that is not monitoring this list.
<selinux@tycho.nsa.gov>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkyk1dMACgkQrlYvE4MpobO7cQCeJt8x3QmnammA6NahRasyuK8l
jR8AnjmTIhLgBTOvBgJlhSqW9vm9fMt8
=Hx39
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
parent reply other threads:[~2010-09-30 18:24 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <49903.193.5.216.100.1285856295.squirrel@mail.puzzle.ch>]
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=4CA4D5D4.9090104@redhat.com \
--to=dwalsh@redhat.com \
--cc=imsand@puzzle.ch \
--cc=selinux@lists.fedoraproject.org \
--cc=selinux@tycho.nsa.gov \
/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.