2016-08-13 18:40:40

by guido

[permalink] [raw]
Subject: [refpolicy] [PATCH] Update for the telepathy module

Update the telepathy module:

- add an interface to support chat over dbus in the mission
control domain;
- add support for dbus chat in the mission control domain for
the telepathy role.

Signed-off-by: Guido Trentalancia <[email protected]>
---
policy/modules/contrib/telepathy.if | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

--- refpolicy-git-06082016-orig/policy/modules/contrib/telepathy.if 2016-08-06
21:27:11.430095204 +0200
+++ refpolicy-git-06082016/policy/modules/contrib/telepathy.if 2016-08-13
20:34:01.475608454 +0200
@@ -114,6 +114,8 @@ template(`telepathy_role_template',`
allow $3 telepathy_tmp_content:dir { manage_dir_perms relabel_dir_perms };
allow $3 telepathy_tmp_content:file { manage_file_perms relabel_file_perms };
allow $3 telepathy_tmp_content:sock_file { manage_sock_file_perms
relabel_sock_file_perms };
+
+ telepathy_mission_control_dbus_chat($1)
')

########################################
@@ -158,6 +160,27 @@ interface(`telepathy_gabble_dbus_chat',`
')

########################################
+## <summary>
+## Send dbus messages to and from
+## mission control.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(`telepathy_mission_control_dbus_chat',`
+ gen_require(`
+ type telepathy_mission_control_t;
+ class dbus send_msg;
+ ')
+
+ allow $1 telepathy_mission_control_t:dbus send_msg;
+ allow telepathy_mission_control_t $1:dbus send_msg;
+')
+
+########################################
## <summary>
## Read mission control process state files.
## </summary>


2016-08-13 22:27:22

by guido

[permalink] [raw]
Subject: [refpolicy] [PATCH v2] Update for the telepathy module

Update the telepathy module:

- add an interface to support chat over dbus in the mission
control domain;
- add support for dbus chat in the mission control domain for
the telepathy role.

Signed-off-by: Guido Trentalancia <[email protected]>
---
policy/modules/contrib/telepathy.if | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

--- refpolicy-git-06082016-orig/policy/modules/contrib/telepathy.if 2016-08-06
21:27:11.430095204 +0200
+++ refpolicy-git-06082016/policy/modules/contrib/telepathy.if 2016-08-14
00:20:25.382226265 +0200
@@ -114,6 +114,8 @@ template(`telepathy_role_template',`
allow $3 telepathy_tmp_content:dir { manage_dir_perms relabel_dir_perms };
allow $3 telepathy_tmp_content:file { manage_file_perms relabel_file_perms };
allow $3 telepathy_tmp_content:sock_file { manage_sock_file_perms
relabel_sock_file_perms };
+
+ telepathy_mission_control_dbus_chat($3)
')

########################################
@@ -158,6 +160,27 @@ interface(`telepathy_gabble_dbus_chat',`
')

########################################
+## <summary>
+## Send dbus messages to and from
+## mission control.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(`telepathy_mission_control_dbus_chat',`
+ gen_require(`
+ type telepathy_mission_control_t;
+ class dbus send_msg;
+ ')
+
+ allow $1 telepathy_mission_control_t:dbus send_msg;
+ allow telepathy_mission_control_t $1:dbus send_msg;
+')
+
+########################################
## <summary>
## Read mission control process state files.
## </summary>

2016-08-14 18:09:00

by Chris PeBenito

[permalink] [raw]
Subject: [refpolicy] [PATCH v2] Update for the telepathy module

On 08/13/16 18:27, Guido Trentalancia wrote:
> Update the telepathy module:
>
> - add an interface to support chat over dbus in the mission
> control domain;
> - add support for dbus chat in the mission control domain for
> the telepathy role.

Merged.



> Signed-off-by: Guido Trentalancia <[email protected]>
> ---
> policy/modules/contrib/telepathy.if | 23 +++++++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> --- refpolicy-git-06082016-orig/policy/modules/contrib/telepathy.if 2016-08-06
> 21:27:11.430095204 +0200
> +++ refpolicy-git-06082016/policy/modules/contrib/telepathy.if 2016-08-14
> 00:20:25.382226265 +0200
> @@ -114,6 +114,8 @@ template(`telepathy_role_template',`
> allow $3 telepathy_tmp_content:dir { manage_dir_perms relabel_dir_perms };
> allow $3 telepathy_tmp_content:file { manage_file_perms relabel_file_perms };
> allow $3 telepathy_tmp_content:sock_file { manage_sock_file_perms
> relabel_sock_file_perms };
> +
> + telepathy_mission_control_dbus_chat($3)
> ')
>
> ########################################
> @@ -158,6 +160,27 @@ interface(`telepathy_gabble_dbus_chat',`
> ')
>
> ########################################
> +## <summary>
> +## Send dbus messages to and from
> +## mission control.
> +## </summary>
> +## <param name="domain">
> +## <summary>
> +## Domain allowed access.
> +## </summary>
> +## </param>
> +#
> +interface(`telepathy_mission_control_dbus_chat',`
> + gen_require(`
> + type telepathy_mission_control_t;
> + class dbus send_msg;
> + ')
> +
> + allow $1 telepathy_mission_control_t:dbus send_msg;
> + allow telepathy_mission_control_t $1:dbus send_msg;
> +')
> +
> +########################################
> ## <summary>
> ## Read mission control process state files.
> ## </summary>
> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy
>


--
Chris PeBenito