From: Diyab <diyab@diyab.net>
To: russell@coker.com.au
Cc: SELinux Mail List <selinux@tycho.nsa.gov>
Subject: Re: ssh policy hassles
Date: Thu, 25 Sep 2003 20:16:11 -0400 [thread overview]
Message-ID: <3F73854B.1080408@diyab.net> (raw)
In-Reply-To: <200309260247.39337.russell@coker.com.au>
Russell Coker wrote:
> On Thu, 25 Sep 2003 22:55, Diyab wrote:
>
>>Dale Amon wrote:
>>
>>>On Thu, Sep 25, 2003 at 08:46:17AM +0200, Tom wrote:
>>>
>>>>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
>>
>>I did this when I installed it on slackware. In ssh.fc I added
>>
>> /var/empty system_u:object_r:sshd_privsep_dir_t
>>
>>and in sshd.te I added
>>
>> type sshd_privsep_dir_t, file_type, sysadmfile;
>>
>>and
>>
>> allow sshd_t sshd_privsep_dir_t:dir { getattr search };
>
>
> Why not just label it as var_run_t?
When I initially setup sshd with the default setting of /var/empty I
decided to just give it it's own type in case there was ever a need to
change the privsep location or the permissions it needs.
> In my latest policy I have the privsep directory (which is under /var/run in
> Debian) labeled as var_run_t. In the case of sshd as a daemon it can create
> files under that, but in the case of sshd run from inetd (which is what you
> will be doing if you want to lock down sshd) then it gets { getattr search }
> access.
What do you get by running sshd through inetd that you don't get by
running sshd alone?
Timothy,
--
I put instant coffee in a microwave and almost went back in time.
-- Steven Wright
--
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.
next prev parent reply other threads:[~2003-09-26 0:16 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
2003-09-25 12:55 ` Diyab
2003-09-25 16:47 ` Russell Coker
2003-09-26 0:16 ` Diyab [this message]
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=3F73854B.1080408@diyab.net \
--to=diyab@diyab.net \
--cc=russell@coker.com.au \
--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.