All of lore.kernel.org
 help / color / mirror / Atom feed
From: dwalsh@redhat.com (Daniel J Walsh)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/2] Properly label /etc/ssh/ssh_host_ecdsa_key private key
Date: Thu, 13 Sep 2012 11:40:12 -0400	[thread overview]
Message-ID: <5051FE5C.1090600@redhat.com> (raw)
In-Reply-To: <1347479800-9847-1-git-send-email-bigon@debian.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/12/2012 03:56 PM, Laurent Bigonville wrote:
> From: Laurent Bigonville <bigon@bigon.be>
> 
> Since version 5.7, openssh supports ECDSA keys; properly label the private
> key file. --- policy/modules/services/ssh.fc |    1 + 1 file changed, 1
> insertion(+)
> 
> diff --git a/policy/modules/services/ssh.fc
> b/policy/modules/services/ssh.fc index 078bcd7..64b3e11 100644 ---
> a/policy/modules/services/ssh.fc +++ b/policy/modules/services/ssh.fc @@
> -3,6 +3,7 @@ HOME_DIR/\.ssh(/.*)?
> gen_context(system_u:object_r:ssh_home_t,s0) /etc/ssh/primes			--
> gen_context(system_u:object_r:sshd_key_t,s0) /etc/ssh/ssh_host_key 		--
> gen_context(system_u:object_r:sshd_key_t,s0) /etc/ssh/ssh_host_dsa_key	--
> gen_context(system_u:object_r:sshd_key_t,s0) +/etc/ssh/ssh_host_ecdsa_key
> --	gen_context(system_u:object_r:sshd_key_t,s0) /etc/ssh/ssh_host_rsa_key
> --	gen_context(system_u:object_r:sshd_key_t,s0)
> 
> /usr/bin/ssh			--	gen_context(system_u:object_r:ssh_exec_t,s0)
> 
How about /etc/ssh/.*_key --	gen_context(system_u:object_r:sshd_key_t,s0)

Then we will not need to worry about this.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBR/lwACgkQrlYvE4MpobOvdgCeMKvMsbrUyPdHySoDNqBGgYsT
9McAoJJpYrWXiPVGAsLCsU5JXwhwkgnD
=LvlC
-----END PGP SIGNATURE-----

  parent reply	other threads:[~2012-09-13 15:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-12 19:56 [refpolicy] [PATCH 1/2] Properly label /etc/ssh/ssh_host_ecdsa_key private key Laurent Bigonville
2012-09-12 19:56 ` [refpolicy] [PATCH 2/2] Add Debian location for ssh-keysign Laurent Bigonville
2012-11-04  1:23   ` [refpolicy] [PATCH 2/2 v2] " Laurent Bigonville
2012-11-26 16:13     ` Christopher J. PeBenito
2012-09-13 15:40 ` Daniel J Walsh [this message]
2012-09-13 16:24   ` [refpolicy] [PATCH 1/2] Properly label /etc/ssh/ssh_host_ecdsa_key private key Laurent Bigonville
2012-09-13 20:33     ` Daniel J Walsh
2012-11-27 19:21   ` [refpolicy] [PATCH 1/2 v2] Properly label all the ssh host keys Laurent Bigonville

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=5051FE5C.1090600@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=refpolicy@oss.tresys.com \
    /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.