From: russell@coker.com.au (Russell Coker)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/2] base: label generic SSL certificates as standard files
Date: Sun, 05 Nov 2017 11:39:32 +1100 [thread overview]
Message-ID: <5478997.5par0U7yFk@xev> (raw)
In-Reply-To: <1509848939.10522.8.camel@trentalancia.com>
On Sunday, 5 November 2017 3:28:59 AM AEDT Guido Trentalancia via refpolicy
wrote:
> Reserve the cert_t file label for SSL private keys only and
> label the generic SSL certificates as standard files (e.g.
> etc_t for files in /etc/pki/ or usr_t for files in /usr/
> subdirectories).
Are you sure that we can't have private keys under /etc/pki?
https://www.linux.com/BLOG/PKI-IMPLEMENTATION-LINUX-ADMIN
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/
Deployment_Guide/s1-secureserver-oldcert.html
The above URLs suggest that /etc/pki/.*/private(/.*)? should be labeled as
cert_t. But I don't have a setup to test this.
> This part (1/2) refers to the base policy changes.
>
> Signed-off-by: Guido Trentalancia <guido@trentalancia.com>
> ---
> policy/modules/system/miscfiles.fc | 1 -
> 1 file changed, 1 deletion(-)
>
> diff -pru a/policy/modules/system/miscfiles.fc
> b/policy/modules/system/miscfiles.fc ---
> a/policy/modules/system/miscfiles.fc 2017-11-04 20:14:02.301932938 +0100
> +++ b/policy/modules/system/miscfiles.fc 2017-11-05 03:00:59.361768672
> +0100 @@ -11,7 +11,6 @@ ifdef(`distro_gentoo',`
> /etc/avahi/etc/localtime -- gen_context(system_u:object_r:locale_t,s0)
> /etc/httpd/alias/[^/]*\.db(\.[^/]*)* --
> gen_context(system_u:object_r:cert_t,s0)
> /etc/localtime -- gen_context(system_u:object_r:locale_t,s0)
> -/etc/pki(/.*)? gen_context(system_u:object_r:cert_t,s0)
> /etc/ssl(/.*)? gen_context(system_u:object_r:cert_t,s0)
> /etc/timezone -- gen_context(system_u:object_r:locale_t,s0)
>
> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
next prev parent reply other threads:[~2017-11-05 0:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-05 2:28 [refpolicy] [PATCH 1/2] base: label generic SSL certificates as standard files Guido Trentalancia
2017-11-05 0:39 ` Russell Coker [this message]
2017-11-05 3:02 ` Guido Trentalancia
2017-11-05 2:55 ` [refpolicy] [PATCH 1/2 v2] " Guido Trentalancia
2017-11-05 3:06 ` [refpolicy] [PATCH 1/2 v3] " Guido Trentalancia
2017-11-05 4:43 ` [refpolicy] [PATCH 1/2 v4] " Guido Trentalancia
2017-11-05 22:32 ` [refpolicy] [PATCH 1/2 v5] base: create a type for SSL private keys (was: "label generic SSL certificates as standard files") Guido Trentalancia
2017-11-08 1:48 ` [refpolicy] [PATCH 1/2 v5] base: create a type for SSL private keys Chris PeBenito
2017-11-08 14:55 ` Guido Trentalancia
2017-11-08 17:30 ` [refpolicy] [PATCH 1/2 v6] " Guido Trentalancia
2017-11-09 22:26 ` Chris PeBenito
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=5478997.5par0U7yFk@xev \
--to=russell@coker.com.au \
--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.