From: guido@trentalancia.com (Guido Trentalancia)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] oidentd fixes
Date: Tue, 07 Aug 2012 21:48:08 +0200 [thread overview]
Message-ID: <502170F8.1050400@trentalancia.com> (raw)
In-Reply-To: <1344365757-12896-1-git-send-email-dominick.grift@gmail.com>
On 07/08/2012 20:55, Dominick Grift wrote:
>
> oident init script in debian is in /etc/init.d
> ~/.oidentd.conf is a single file
> remove oidentd_read_user_content because interfaces aren' for internal
> usage
>
> Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
> diff --git a/oident.fc b/oident.fc
> index 5840ea8..5a99b3d 100644
> --- a/oident.fc
> +++ b/oident.fc
> @@ -1,8 +1,9 @@
> -HOME_DIR/\.oidentd.conf gen_context(system_u:object_r:oidentd_home_t, s0)
> +HOME_DIR/\.oidentd.conf -- gen_context(system_u:object_r:oidentd_home_t, s0)
>
> /etc/oidentd\.conf -- gen_context(system_u:object_r:oidentd_config_t, s0)
> /etc/oidentd_masq\.conf -- gen_context(system_u:object_r:oidentd_config_t, s0)
>
> /etc/rc\.d/init\.d/oidentd -- gen_context(system_u:object_r:oidentd_initrc_exec_t, s0)
> +/etc/init\.d/oidentd -- gen_context(system_u:object_r:oidentd_initrc_exec_t, s0)
Why don't you use ifdef distro here ? And perhaps you might want to
align it further right, as it would be easier to read.
Also, does anybody know whether a complete and always updated list of
files for each distribution is available ? That would make the job of
creating file context specifications much easier...
> /usr/sbin/oidentd -- gen_context(system_u:object_r:oidentd_exec_t, s0)
> diff --git a/oident.if b/oident.if
> index bb4fae5..bfdcce2 100644
> --- a/oident.if
> +++ b/oident.if
> @@ -9,26 +9,6 @@
>
> ########################################
> ## <summary>
> -## Allow the specified domain to read
> -## Oidentd personal configuration files.
> -## </summary>
> -## <param name="domain">
> -## <summary>
> -## Domain allowed access.
> -## </summary>
> -## </param>
> -#
> -interface(`oident_read_user_content', `
> - gen_require(`
> - type oidentd_home_t;
> - ')
> -
> - allow $1 oidentd_home_t:file read_file_perms;
> - userdom_search_user_home_dirs($1)
> -')
> -
> -########################################
> -## <summary>
> ## Allow the specified domain to create, read, write, and delete
> ## Oidentd personal configuration files.
> ## </summary>
> diff --git a/oident.te b/oident.te
> index 8845174..6e5be53 100644
> --- a/oident.te
> +++ b/oident.te
> @@ -34,6 +34,8 @@
>
> allow oidentd_t oidentd_config_t:file read_file_perms;
>
> +allow oidentd_t oidentd_home_t:file read_file_perms;
> +
> corenet_all_recvfrom_unlabeled(oidentd_t)
> corenet_all_recvfrom_netlabel(oidentd_t)
> corenet_tcp_sendrecv_generic_if(oidentd_t)
> @@ -58,7 +60,7 @@
>
> sysnet_read_config(oidentd_t)
>
> -oident_read_user_content(oidentd_t)
> +userdom_search_user_home_dirs(oidentd_t)
>
> optional_policy(`
> nis_use_ypbind(oidentd_t)
Seems alright, although I am not using this.
Regards,
Guido
next prev parent reply other threads:[~2012-08-07 19:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-07 18:55 [refpolicy] [PATCH] oidentd fixes Dominick Grift
2012-08-07 19:48 ` Guido Trentalancia [this message]
2012-08-07 19:50 ` Dominick Grift
2012-08-08 13:11 ` Christopher J. PeBenito
2012-08-08 13:25 ` Christopher J. PeBenito
2012-08-08 13:46 ` Dominick Grift
2012-08-08 13:58 ` Christopher J. PeBenito
2012-08-08 14:01 ` Dominick Grift
2012-08-08 13:27 ` Dominick Grift
2012-08-08 14:19 ` 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=502170F8.1050400@trentalancia.com \
--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.