All of lore.kernel.org
 help / color / mirror / Atom feed
From: guido@trentalancia.com (Guido Trentalancia)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [patch 1/3] Implementation of system conf type
Date: Tue, 22 Feb 2011 17:27:20 +0100	[thread overview]
Message-ID: <1298392040.16004.15.camel@tesla.lan> (raw)
In-Reply-To: <4D63DA61.3050705@tresys.com>

Hello again Christopher !

On Tue, 22/02/2011 at 10.46 -0500, Christopher J. PeBenito wrote:
> On 02/21/11 15:11, Guido Trentalancia wrote:
> > On Mon, 21/02/2011 at 10.40 -0500, Daniel J Walsh wrote:
> >> On 02/20/2011 12:37 AM, Guido Trentalancia wrote:
> >>> On Sat, 19/02/2011 at 10.57 +0100, Sven Vermeulen wrote:
> >>>> On Fri, Feb 18, 2011 at 03:52:33PM +0000, Miroslav Grepl wrote:
> >>>>> http://mgrepl.fedorapeople.org/F15/system_conf_implemantion_p1.patch
> >>>>>
> >>>>>      * Implementation of system conf type for manageable system 
> >>>>> configuration files.
> >>>>
> >>>> Isn't a generic system configuration type a bit too broad for a security
> >>>> policy? We already have etc_t.
> >>>
> >>> I agree with Sven, it appears to be rather useless (at least for the use
> >>> that is being made so far in the patches that have been posted) and it
> >>> just introduces a redundancy of types.
> >>>
> >>> But Sven, I believe this is stuff just intended for Fedora 15. It won't
> >>> affect the rest of us. I don't even understand why it has been posted
> >>> with the [PATCH] tag in the subject on this mailing list. Some stuff
> >>> won't even build on refpolicy because there are missing bits (such as
> >>> missing interfaces that have never been defined in refpolicy and that
> >>> are only being used by Fedora as part of their customisations).
> >>>
> >>
> >> When you have a type a domain needs to write, you do not want that type
> >> to be etc_t.  In this case several confined domains needs to be able to
> >> write firewall rules, I believe.  If we give tools like
> >> system-config-firewall the ability to write etc_t, it can replace
> >> /etc/passwd and other key config files.  So an exploit can be used to
> >> take over the entire machine, if we add a new type, then
> >> system-config-firewall will only be allowed to write firewall rules and
> >> not most files within the /etc tree.
> 
> I am against system_conf_t as it is too generic.  Yes, we'd like to curb
> writing to etc_t.  But creating another generic type is not the answer.
>  In a year or two, we'd be in the same boat except with system_conf_t
> instead of (or maybe in addition to) etc_t.

However, a label for configuration files that tweak kernel parameters
could be a nice thing to have. So, it would not be generic. And it could
bring security benefits, as kernel parameters are critical.

Something like kernel_conf_t ? That could be used for Fedora's sysconf
(if it has something to do with kernel parameters),
Debian's /etc/sysctl.conf and so on. It could be used for things such as
grub that also has kernel boot parameters.

What do you say ?

Regards,

Guido

Regards,

Guido

  parent reply	other threads:[~2011-02-22 16:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-18 15:52 [refpolicy] [patch 1/3] Implementation of system conf type Miroslav Grepl
2011-02-19  9:57 ` Sven Vermeulen
2011-02-20  5:37   ` Guido Trentalancia
2011-02-21 15:40     ` Daniel J Walsh
2011-02-21 20:11       ` Guido Trentalancia
2011-02-22 15:46         ` Christopher J. PeBenito
2011-02-22 15:57           ` Daniel J Walsh
2011-02-22 17:27             ` Miroslav Grepl
2011-02-22 16:18           ` Guido Trentalancia
2011-03-01 19:57             ` Christopher J. PeBenito
2011-03-01 20:41               ` Guido Trentalancia
2011-03-02 14:33                 ` Christopher J. PeBenito
2011-03-02 19:10                   ` Daniel J Walsh
2011-03-03 14:36                   ` Guido Trentalancia
2011-03-03 15:32                     ` Daniel J Walsh
2011-03-04 14:21                     ` Christopher J. PeBenito
2011-03-04 19:01                       ` Guido Trentalancia
2011-03-18 22:53                       ` [refpolicy] mtab lock files label (was [patch 1/3] Implementation of system conf type) Guido Trentalancia
2011-02-22 16:27           ` Guido Trentalancia [this message]
2011-03-01 20:01             ` [refpolicy] [patch 1/3] Implementation of system conf type Christopher J. PeBenito
2011-03-01 20:32               ` Guido Trentalancia

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=1298392040.16004.15.camel@tesla.lan \
    --to=guido@trentalancia.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.