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/1] Allow ssh to read cert_t files
Date: Fri, 19 Oct 2012 13:15:17 -0400	[thread overview]
Message-ID: <50818AA5.7020108@redhat.com> (raw)
In-Reply-To: <20121019125920.GA20787@siphos.be>

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

On 10/19/2012 08:59 AM, Sven Vermeulen wrote:
> On Fri, Oct 19, 2012 at 02:53:44PM +0200, Dominick Grift wrote:
>>> I think what makes more sense to to make sure /etc/ssl/openssl.cnf is
>>> still labeled etc_t, since its a config file, not a cert.
>> 
>> Maybe, but in /etc/pki/tls is the same issue and there it is also labeled
>> cert_t
>> 
>> ls -alZ /etc/pki/tls drwxr-xr-x. root root system_u:object_r:cert_t:s0
>> . drwxr-xr-x. root root system_u:object_r:cert_t:s0      .. lrwxrwxrwx.
>> root root system_u:object_r:cert_t:s0      cert.pem -> 
>> certs/ca-bundle.crt drwxr-xr-x. root root system_u:object_r:cert_t:s0
>> certs drwxr-xr-x. root root system_u:object_r:cert_t:s0      misc 
>> -rw-r--r--. root root system_u:object_r:cert_t:s0      openssl.cnf 
>> drwxr-xr-x. root root system_u:object_r:cert_t:s0      private
> 
> I don't have /etc/pki here, but from the looks of it, it's exactly what 
> /etc/ssl is here:
> 
> ~$ ls /etc/ssl certs  misc  openssl.cnf  private
> 
> So, it makes more sense to use something like
> 
> /etc/ssl/certs/*\.pem	--	gen_context(system_u:object_r:cert_t,s0)
> 
> and same for /etc/pki? Then the remainder stays etc_t. Perhaps it makes 
> sense for /etc/ssl/private as well, but I'll need some more feedback on
> the potential content of /etc/ssl/private to confirm.
> 
> Wkr, Sven Vermeulen _______________________________________________ 
> refpolicy mailing list refpolicy at oss.tresys.com 
> http://oss.tresys.com/mailman/listinfo/refpolicy
> 
I would rather then default be certs and then special case the cnf files.
Since users will be copying in files into this directory.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCBiqUACgkQrlYvE4MpobMkqQCeKY3Nl+WtIbD1DL/xj5oohKlS
YsMAnRPr5SFJY67BoTJfoo31Ti0Qe0gd
=kt5J
-----END PGP SIGNATURE-----

  reply	other threads:[~2012-10-19 17:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-11 18:45 [refpolicy] [PATCH 1/1] Allow ssh to read cert_t files Sven Vermeulen
2012-10-19 12:11 ` Christopher J. PeBenito
2012-10-19 12:53   ` Dominick Grift
2012-10-19 12:59     ` Sven Vermeulen
2012-10-19 17:15       ` Daniel J Walsh [this message]
2012-10-19 18:57         ` Sven Vermeulen

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=50818AA5.7020108@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.