All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Orr <martin@martinorr.name>
To: "Lisa R." <lraykow@cox.net>
Cc: selinux@tycho.nsa.gov
Subject: Re: Login Identities not applied when logging in...
Date: Sun, 30 Mar 2008 13:46:01 +0100	[thread overview]
Message-ID: <47EF8B89.6080007@martinorr.name> (raw)
In-Reply-To: <20080329145240.CDLBH.81847.imail@fed1rmwml42>

On 29/03/08 18:52, Lisa R. wrote:
> I realized that I need to run a restorecon after I semanage fcontext so
> that resolved my labeling issue.
> 
> However, I still have a problem with my logins.  They aren't being
> applied when I login.
> 
> When I semanage user -l as root I see my custom "selinux user" associated
> with the custom label.
> 
> When I semange login -l as root I see my custom "selinux user" associated
> with the "login name" that I created with adduser.
> 
> However, when I login and run id -Z as my new user I see the default
> security context set when I created the user under root.

This is because the PAM in etch (and even sid) is too old to work with
semanage login.  You need to set the login context by editing
/etc/selinux/refpolicy-strict/context/users/<user>
(I forget the details).

Alternatively if you want to use semanage login (I had some problems with
the old way, but I forget what) you need to upgrade to PAM 0.99.9 or better.
 I have made Debian packages of this at
http://www.martinorr.name/2007/pam/
and Vaclav Ovsik has some at
http://linux.i.cz/debian/pool/main/p/pam/
You will probable need to rebuild these for etch.

> All I am trying to do is apply a new login to one of my users but it
> won't take.
> 
> I tried a reboot...
> 
> Did I break something or do I need to apply something?
> 
> This worked the other day without a problem (likely story but it did).

I have no idea why this was - it shouldn't.

Best wishes,

-- 
Martin Orr

--
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:[~2008-03-30 12:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-29  6:05 Things were going great until Lisa R.
2008-03-29 18:52 ` Login Identities not applied when logging in Lisa R.
2008-03-30  6:02   ` Daniel J Walsh
2008-03-30 12:46   ` Martin Orr [this message]
2008-03-31 14:20 ` Things were going great until Stephen Smalley

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=47EF8B89.6080007@martinorr.name \
    --to=martin@martinorr.name \
    --cc=lraykow@cox.net \
    --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.