From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 4/34]: patch to make cpufreqselector usable with dbus
Date: Tue, 22 Feb 2011 11:36:33 -0500 [thread overview]
Message-ID: <4D63E611.3090906@tresys.com> (raw)
In-Reply-To: <1297836056.3205.33.camel@tesla.lan>
On 02/16/11 01:00, Guido Trentalancia wrote:
> This patch adds a new interface to the cpufreqselector module
> to allow dbus chat. It then uses such interface to allow dbus chat
> with system_dbusd_t and xdm_t. This patch also adds some other
> permissions needed to run cpufreqselector.
Merged.
> diff -pruN refpolicy-git-02022011-test-apply/policy/modules/apps/cpufreqselector.if refpolicy-git-02022011-test-apply2/policy/modules/apps/cpufreqselector.if
> --- refpolicy-git-02022011-test-apply/policy/modules/apps/cpufreqselector.if 2011-01-08 19:07:21.176730930 +0100
> +++ refpolicy-git-02022011-test-apply2/policy/modules/apps/cpufreqselector.if 2011-02-07 00:44:07.572642438 +0100
> @@ -1 +1,22 @@
> ## <summary>Command-line CPU frequency settings.</summary>
> +
> +########################################
> +## <summary>
> +## Send and receive messages from
> +## cpufreq-selector over dbus.
> +## </summary>
> +## <param name="domain">
> +## <summary>
> +## Domain allowed access.
> +## </summary>
> +## </param>
> +#
> +interface(`cpufreqselector_dbus_chat',`
> + gen_require(`
> + type cpufreqselector_t;
> + class dbus send_msg;
> + ')
> +
> + allow $1 cpufreqselector_t:dbus send_msg;
> + allow cpufreqselector_t $1:dbus send_msg;
> +')
> diff -pruN refpolicy-git-02022011-test-apply/policy/modules/apps/cpufreqselector.te refpolicy-git-02022011-test-apply2/policy/modules/apps/cpufreqselector.te
> --- refpolicy-git-02022011-test-apply/policy/modules/apps/cpufreqselector.te 2011-01-08 19:07:21.177731088 +0100
> +++ refpolicy-git-02022011-test-apply2/policy/modules/apps/cpufreqselector.te 2011-02-07 00:44:07.573642603 +0100
> @@ -15,8 +15,11 @@ application_domain(cpufreqselector_t, cp
> #
>
> allow cpufreqselector_t self:capability { sys_nice sys_ptrace };
> +allow cpufreqselector_t self:process getsched;
> allow cpufreqselector_t self:fifo_file rw_fifo_file_perms;
>
> +kernel_read_system_state(cpufreqselector_t)
> +
> files_read_etc_files(cpufreqselector_t)
> files_read_usr_files(cpufreqselector_t)
>
> diff -pruN refpolicy-git-02022011-test-apply/policy/modules/services/dbus.te refpolicy-git-02022011-test-apply2/policy/modules/services/dbus.te
> --- refpolicy-git-02022011-test-apply/policy/modules/services/dbus.te 2011-01-08 19:07:21.238740722 +0100
> +++ refpolicy-git-02022011-test-apply2/policy/modules/services/dbus.te 2011-02-07 00:45:11.917246756 +0100
> @@ -141,6 +141,10 @@ optional_policy(`
> ')
>
> optional_policy(`
> + cpufreqselector_dbus_chat(system_dbusd_t)
> +')
> +
> +optional_policy(`
> policykit_dbus_chat(system_dbusd_t)
> policykit_domtrans_auth(system_dbusd_t)
> policykit_search_lib(system_dbusd_t)
> diff -pruN refpolicy-git-02022011-test-apply/policy/modules/services/xserver.te refpolicy-git-02022011-test-apply2/policy/modules/services/xserver.te
> --- refpolicy-git-02022011-test-apply/policy/modules/services/xserver.te 2011-01-08 19:07:21.344757464 +0100
> +++ refpolicy-git-02022011-test-apply2/policy/modules/services/xserver.te 2011-02-07 00:46:02.605388279 +0100
> @@ -516,6 +516,10 @@ optional_policy(`
> ')
>
> optional_policy(`
> + cpufreqselector_dbus_chat(xdm_t)
> +')
> +
> +optional_policy(`
> # Talk to the console mouse server.
> gpm_stream_connect(xdm_t)
> gpm_setattr_gpmctl(xdm_t)
>
>
> _______________________________________________
> 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
prev parent reply other threads:[~2011-02-22 16:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-16 6:00 [refpolicy] [PATCH 4/34]: patch to make cpufreqselector usable with dbus Guido Trentalancia
2011-02-22 16:36 ` Christopher J. PeBenito [this message]
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=4D63E611.3090906@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.