All of lore.kernel.org
 help / color / mirror / Atom feed
From: sven.vermeulen@siphos.be (Sven Vermeulen)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/1] Allow ssh to read cert_t files
Date: Fri, 19 Oct 2012 14:59:20 +0200	[thread overview]
Message-ID: <20121019125920.GA20787@siphos.be> (raw)
In-Reply-To: <1350651224.12496.16.camel@d30.localdomain>

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

  reply	other threads:[~2012-10-19 12:59 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 [this message]
2012-10-19 17:15       ` Daniel J Walsh
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=20121019125920.GA20787@siphos.be \
    --to=sven.vermeulen@siphos.be \
    --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.