All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dale Amon <amon@vnl.com>
To: Tom <tom@lemuria.org>
Cc: SELinux Mail List <selinux@tycho.nsa.gov>
Subject: Re: ssh policy hassles
Date: Thu, 25 Sep 2003 11:29:55 +0100	[thread overview]
Message-ID: <20030925102955.GC10234@vnl.com> (raw)
In-Reply-To: <20030925084613.H11866@lemuria.org>

On Thu, Sep 25, 2003 at 08:46:17AM +0200, Tom wrote:
> Because it is not hard-coded. It's whatever home-directory you set in
> /etc/passwd for the privsep account.
> That's also why others don't see that access. On Debian, for example,
> it defaults to /var/empty

Some ssh documentation recommends this as the default setup, 

 mkdir /var/empty
 chown root:sys /var/empty
 chmod 755 /var/empty
 groupadd sshd
 useradd -g sshd -c 'sshd privsep' -d /var/empty -s /bin/false sshd

But debian has this setup:

/etc/passwd
	sshd:x:102:65534::/var/run/sshd:/dev/null

/etc/group
	ssh:x:105:

/var
	drwxr-xr-x    2 root     root         1024 Aug 27  2002 empty

/var/run
	drwxr-xr-x    2 root     root         1024 Aug 22 22:26 /var/run/sshd

Which looks like it should be using /var/run/sshd insteady of /var/empty,
and yet the search priv on /var fixed one problem. 

> You might want to define a special type for the empty dir, so you can
> move it around and don't have to give sshd access to all of /var

That might be necessary. As far as I can tell, I've got
a straight out of the dpkg openssh install on this box. I'd think
anyone else on debian should be seeing the same problem if this
is the case, so I'm very interested in seeing where the real
problem lies, ie specific to my test machine, or a general
package problem for debian, or a generic problem for ssh policy.

I've now also got to follow up on Russ's suggestions. His note
that the missing inode is a /proc item might be very helpful on
that one.



--
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:[~2003-09-25 10:30 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-24 21:55 ssh policy hassles Inger, Slav (S.B.)
2003-09-24 22:11 ` Dale Amon
2003-09-24 22:27   ` Dale Amon
2003-09-25  3:01     ` Diyab
2003-09-25  8:30       ` Dale Amon
2003-09-25  6:46   ` Tom
2003-09-25  8:14     ` Russell Coker
2003-09-25 10:29     ` Dale Amon [this message]
2003-09-25 12:55       ` Diyab
2003-09-25 16:47         ` Russell Coker
2003-09-26  0:16           ` Diyab
2003-09-26  2:42             ` Russell Coker
2003-09-29 20:27               ` SELinux & UML FAQ Nick Davis
2003-09-29 20:51                 ` Stephen Smalley
2003-09-30  6:36                 ` Russell Coker
  -- strict thread matches above, loose matches on Subject: below --
2003-09-23 15:09 Some minor thoughts on syntax/semantics Dale Amon
2003-09-24 13:34 ` Russell Coker
2003-09-24 20:31   ` ssh policy hassles Dale Amon
2003-09-24 21:20     ` Kerry Thompson
2003-09-25  3:32     ` Russell Coker
2003-09-25 10:44       ` Dale Amon
2003-09-25 11:31         ` Dale Amon
2003-09-25 12:17         ` Dale Amon
2003-09-25 12:21           ` Russell Coker
2003-09-25 12:55             ` Stephen Smalley
2003-09-25 14:20               ` Dale Amon
2003-09-27 10:47               ` Dale Amon
     [not found] ` <20030927133244.GC22582@vnl.com>
     [not found]   ` <20030927133352.GD22582@vnl.com>
2003-09-27 14:13     ` Russell Coker
2003-09-27 23:00       ` Dale Amon

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=20030925102955.GC10234@vnl.com \
    --to=amon@vnl.com \
    --cc=selinux@tycho.nsa.gov \
    --cc=tom@lemuria.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.