From: cpebenito@tresys.com (Christopher J. PeBenito)
Date: Tue, 22 Feb 2011 10:53:17 -0500
Subject: [refpolicy] [PATCH 1/34]: patch to allow readahead read init_t
fifo files
In-Reply-To: <1297836035.3205.30.camel@tesla.lan>
References: <1297836035.3205.30.camel@tesla.lan>
Message-ID: <4D63DBED.5030100@tresys.com>
To: refpolicy@oss.tresys.com
List-Id: refpolicy.oss.tresys.com
On 02/16/11 01:00, Guido Trentalancia wrote:
> This patch adds a new interface init_read_fifo_file() and
> uses it so that readahead can read init_t fifo files.
This doesn't make sense to me. Its not run out of init; it shouldn't be
inheriting unnamed pipes from init. It also makes me question the
existing init_use_fds(readahead_t) rule in the policy.
> diff -pruN -x booleans.conf -x corenetwork.if -x corenetwork.te -x modules.conf refpolicy-git-02022011/policy/modules/admin/readahead.te refpolicy-git-02022011-new/policy/modules/admin/readahead.te
> --- refpolicy-git-02022011/policy/modules/admin/readahead.te 2011-01-08 19:07:21.165729194 +0100
> +++ refpolicy-git-02022011-new/policy/modules/admin/readahead.te 2011-01-26 01:40:07.208360132 +0100
> @@ -79,6 +79,7 @@ term_dontaudit_use_console(readahead_t)
>
> auth_dontaudit_read_shadow(readahead_t)
>
> +init_read_fifo_file(readahead_t)
> init_use_fds(readahead_t)
> init_use_script_ptys(readahead_t)
> init_getattr_initctl(readahead_t)
> diff -pruN -x booleans.conf -x corenetwork.if -x corenetwork.te -x modules.conf refpolicy-git-02022011/policy/modules/system/init.if refpolicy-git-02022011-new/policy/modules/system/init.if
> --- refpolicy-git-02022011/policy/modules/system/init.if 2011-02-06 23:07:41.774207748 +0100
> +++ refpolicy-git-02022011-new/policy/modules/system/init.if 2011-01-26 01:40:07.026309900 +0100
> @@ -947,6 +947,24 @@ interface(`init_read_state',`
>
> ########################################
> ##
> +## Read init fifo file.
> +##
> +##
> +##
> +## Domain allowed access.
> +##
> +##
> +#
> +interface(`init_read_fifo_file',`
> + gen_require(`
> + type init_t;
> + ')
> +
> + allow $1 init_t:fifo_file read_fifo_file_perms;
> +')
> +
> +########################################
> +##
> ## Ptrace init
> ##
> ##
>
>
> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com