All of lore.kernel.org
 help / color / mirror / Atom feed
From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 7/7] Allow zabbix agent to query system state and other monitorable aspects
Date: Wed, 15 Jun 2011 09:26:45 -0400	[thread overview]
Message-ID: <4DF8B315.3060003@tresys.com> (raw)
In-Reply-To: <20110613084017.GH18072@siphos.be>

On 06/13/11 04:40, Sven Vermeulen wrote:
> The zabbix agent is responsible for collecting the system state and other
> monitorable aspects. This include
> - information from /proc
> - read attributes of various files (tamper detection)
> - connect to the ssh service (check if it is reachable)
> - get file system information
> - read login information
> - ...
> 
> It should be noted that the agent can do a lot more, depending on the target
> system (what is being monitored) and the running services. The allowed
> privileges here will in the future expand more as more templates are
> checked.

The style in this patch (and the others adding zabbix_agent_t) needs to
be cleaned up.

> Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
> ---
>  policy/modules/services/zabbix.te |   15 +++++++++++++++
>  1 files changed, 15 insertions(+), 0 deletions(-)
> 
> diff --git a/policy/modules/services/zabbix.te b/policy/modules/services/zabbix.te
> index ec4fccd..939d827 100644
> --- a/policy/modules/services/zabbix.te
> +++ b/policy/modules/services/zabbix.te
> @@ -104,9 +104,24 @@ rw_files_pattern(zabbix_agent_t, zabbix_tmpfs_t, zabbix_tmpfs_t)
>  fs_tmpfs_filetrans(zabbix_agent_t, zabbix_tmpfs_t, { dir file })
>  
>  ## kernel layer module calls
> +kernel_read_all_sysctls(zabbix_agent_t)
> +kernel_read_system_state(zabbix_agent_t)
> +corecmd_read_all_executables(zabbix_agent_t)
>  corenet_tcp_bind_generic_node(zabbix_agent_t)
>  corenet_tcp_bind_zabbix_agent_port(zabbix_agent_t)
> +corenet_tcp_connect_ssh_port(zabbix_agent_t)
>  corenet_tcp_connect_zabbix_port(zabbix_agent_t)
> +dev_getattr_all_blk_files(zabbix_agent_t)
> +dev_getattr_all_chr_files(zabbix_agent_t)
> +domain_search_all_domains_state(zabbix_agent_t)
> +files_getattr_all_dirs(zabbix_agent_t)
> +files_getattr_all_files(zabbxi_agent_t)
> +files_read_all_symlinks(zabbix_agent_t)
> +files_read_etc_files(zabbix_agent_t)
> +fs_getattr_all_fs(zabbix_agent_t)
>  
>  ## system layer module calls
> +init_read_utmp(zabbix_agent_t)
> +logging_search_logs(zabbix_agent_t)
> +miscfiles_read_localization(zabbix_agent_t)
>  sysnet_dns_name_resolve(zabbix_agent_t)


-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

  reply	other threads:[~2011-06-15 13:26 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-13  8:20 [refpolicy] [PATCH 0/7] Updates on zabbix service Sven Vermeulen
2011-06-13  8:25 ` [refpolicy] [PATCH 1/7] zabbix server spawns multiple processes Sven Vermeulen
2011-06-13  8:28   ` [refpolicy] [PATCH 2/7] Support shared memory Sven Vermeulen
2011-06-13  8:29     ` [refpolicy] [PATCH 3/7] Define zabbix port and allow server to listen/bind on it Sven Vermeulen
2011-06-13  8:31       ` [refpolicy] [PATCH 4/7] Support different domain for zabbix agent (start with skeleton) Sven Vermeulen
2011-06-13  8:34         ` [refpolicy] [PATCH 5/7] Zabbix agent binds on its own port, connects to zabbix server Sven Vermeulen
2011-06-13  8:35           ` [refpolicy] [PATCH 6/7] Allow zabbix server to connect to agent (active monitoring) Sven Vermeulen
2011-06-13  8:40             ` [refpolicy] [PATCH 7/7] Allow zabbix agent to query system state and other monitorable aspects Sven Vermeulen
2011-06-15 13:26               ` Christopher J. PeBenito [this message]
2011-06-15 16:59               ` Sven Vermeulen
2011-06-13 10:14             ` [refpolicy] [PATCH 6/7] Allow zabbix server to connect to agent (active monitoring) Sven Vermeulen
2011-06-15 16:58             ` Sven Vermeulen
2011-06-13 10:13           ` [refpolicy] [PATCH 5/7] Zabbix agent binds on its own port, connects to zabbix server Sven Vermeulen
2011-06-15 16:57           ` Sven Vermeulen
     [not found]         ` <20110613101151.GB26655@siphos.be>
2011-06-13 10:22           ` [refpolicy] [PATCH 4/7] Support different domain for zabbix agent (start with skeleton) Sven Vermeulen
2011-06-15 16:56         ` Sven Vermeulen
2011-06-13 10:10     ` [refpolicy] [PATCH 2/7] Support shared memory Sven Vermeulen
2011-06-15 18:20 ` [refpolicy] [PATCH 0/7] Updates on zabbix service Christopher J. 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=4DF8B315.3060003@tresys.com \
    --to=cpebenito@tresys.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.