All of lore.kernel.org
 help / color / mirror / Atom feed
From: "James Bishop" <james.bishop@jrc.it>
To: Stephen Smalley <sds@tislabs.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: Compiling for SuSE 7.2
Date: Mon, 08 Oct 2001 12:14:43 +0200	[thread overview]
Message-ID: <3BC17C93.9080601@jrc.it> (raw)
In-Reply-To: Pine.GSO.4.33.0110050931280.29582-100000@raven

Thankyou for your reply, and your patience in helping me "get up to 
speed" with SELinux.

I can live without X for this project, where we have to implement a root 
certification authority for a system using public key cryptography. I'm 
interested in using Linux for the registration service of the root CA, 
and SELinux appears to be ideal for this task. So, X is neither 
required, nor desirable if it bypasses the login choke-point.

I've applied the Makefile and stack patches you recommended, and edited 
the file_contexts as you suggested, but I'm still getting a variety of 
avc denied messages.

In reply to your questions:

1) My modified login does not work on my original SuSE (7.2 running a 
2.4.4 kernel); I go through the motions of logging in, but just get 
returned to the login screen, as in SELinux.

2) The SuSE login uses PAM.

3) My /etc/security/default_context file is simply:

root:sysadm_r:sysadm_t
bishop:user_r:user_t

After running SELinux (no X), the following messages appear in 
/var/log/messages:

login: ROOT LOGIN ON tty1 USING root:sysadm_r:sysadm_t
and
login: LOGIN ON tty1 BY bishop USING bishop:user_r:user_t

and after running SuSE 7.2, in runlevel 3 (no X), /var/log/messages contains

login: ROOT LOGIN ON tty1
and
login: LOGIN ON tty1 BY bishop

Looking through the login.c source, it appears to me that this message 
results from a successful login attempt. So either something goes wrong 
in forking the shell, or my code has a bug which just causes it to exit 
before normal completion (I'll just chuck in some printf's and see what 
happens...).

By the way, sshd is not working either, but that's not an issue right now.

Stephen Smalley wrote:

>On Fri, 5 Oct 2001, James Bishop wrote:
>
>>I had that feeling that it was too easy...
>>
>>When I boot selinux (or SuSE linux) into runlevel 3 (no X), I get the
>>login prompt, I enter username and password, and then answer the query
>>about choosing a new context (in selinux only). After replying "no", I'm
>>back at the login prompt again; not the shell prompt.
>>
>>So my modified login doesn't actually work - awareness dawns (somewhat
>>slowly). I had assumed that the same login binary was used for all
>>logins to the system, but apparently X, and / or Gnome, do things
>>differently. Is this really so?
>>
>
>Yes, the X Display Manager handles login separately from the login
>program.  Likewise, sshd handles remote logins without ever running the
>login program.
>
>Does the modified login program still work when running the original SuSE
>kernel?  It is supposed to function as usual when SELinux is not running.
>If it doesn't work on the SuSE kernel, then this suggests that your
>util-linux MCONFIG is wrong for SuSE.  Does the SuSE login use PAM?
>
>If the modified login program does work when running the original SuSE
>kernel, then check /var/log/messages to see if there were any error
>messages from login.  Did you remember to edit and install the
>/etc/security/default_context file?
>
>--
>Stephen D. Smalley, NAI Labs
>ssmalley@nai.com
>
>
>
>



--
You have received this message because you are subscribed to the selinux 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.

  reply	other threads:[~2001-10-08 10:15 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-03 13:17 Compiling for SuSE 7.2 James Bishop
2001-10-03 14:01 ` Stephen Smalley
2001-10-04 12:58   ` James Bishop
2001-10-04 15:24     ` Stephen Smalley
2001-09-04 21:45       ` John Scroggins
2001-10-05 12:56         ` Stephen Smalley
2001-10-05  7:21       ` James Bishop
2001-10-05 12:40         ` Russell Coker
2001-10-05 15:35           ` Stephen Smalley
2001-10-05 13:39         ` Stephen Smalley
2001-10-08 10:14           ` James Bishop [this message]
2001-10-08 13:50             ` Stephen Smalley
2001-10-08 16:31               ` James Bishop
2001-10-08 17:41                 ` Stephen Smalley
2001-10-11 16:43                   ` James Bishop
2001-10-04 17:05     ` debugging tools Conan Callen
2001-10-04 18:08       ` Stephen Smalley
2001-10-04 19:01       ` Jose Nazario
2001-10-04 12:47 ` Compiling for SuSE 7.2 Russell Coker
  -- strict thread matches above, loose matches on Subject: below --
2001-10-05 17:09 Westerman, Mark
     [not found] <Pine.GSO.4.33.0110111248230.18477-100000@raven>
2001-10-15 15:33 ` James Bishop

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=3BC17C93.9080601@jrc.it \
    --to=james.bishop@jrc.it \
    --cc=sds@tislabs.com \
    --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.