public inbox for gentoo-hardened@lists.gentoo.org
 help / color / mirror / Atom feed
From: Nico Baggus <gentoo@noci.xs4all.nl>
To: gentoo-hardened@lists.gentoo.org
Subject: [gentoo-hardened] Asterisk...
Date: Thu, 3 Nov 2011 02:24:44 +0100	[thread overview]
Message-ID: <201111030224.47326.gentoo@noci.xs4all.nl> (raw)

This fixed quite some messages.

module astnb 1.0;

require {
        type var_run_t;
        type var_log_t;
        type asterisk_t;
        type var_spool_t;
        type initrc_t;
        type var_lib_t;
        type sysadm_t;
        type asterisk_log_t;
        type initrc_var_run_t;
        type asterisk_var_run_t;
        class socket { write read };
        class process setpgid;
        class unix_stream_socket { connectto accept listen };
        class capability { dac_read_search chown };
        class file { rename setattr read create write getattr link unlink open append };
        class sock_file { write create unlink };
        class dir { read write add_name setattr remove_name };
}

#============= asterisk_t ==============
allow asterisk_t initrc_t:unix_stream_socket connectto;
allow asterisk_t initrc_var_run_t:file { write getattr };
allow asterisk_t self:capability { dac_read_search chown };
allow asterisk_t self:process setpgid;
allow asterisk_t self:socket { write read };
allow asterisk_t self:unix_stream_socket { accept listen };
allow asterisk_t var_lib_t:file { read write getattr open };
allow asterisk_t var_log_t:file { getattr open append };
allow asterisk_t var_run_t:dir setattr;
allow asterisk_t var_run_t:sock_file { write create unlink };
allow asterisk_t var_spool_t:dir { read write add_name remove_name };
allow asterisk_t var_spool_t:file { rename write getattr link create unlink open };

#============= initrc_t ==============
allow initrc_t asterisk_log_t:file setattr;
allow initrc_t asterisk_var_run_t:file setattr;
allow initrc_t var_run_t:dir setattr;

#============= sysadm_t ==============
allow sysadm_t asterisk_t:unix_stream_socket connectto



                 reply	other threads:[~2011-11-03  1:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=201111030224.47326.gentoo@noci.xs4all.nl \
    --to=gentoo@noci.xs4all.nl \
    --cc=gentoo-hardened@lists.gentoo.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox