All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] refpolicy: apps_wine changes add run interface
@ 2007-08-02 19:55 dwalsh
  2007-09-07 13:33 ` Christopher J. PeBenito
  0 siblings, 1 reply; 2+ messages in thread
From: dwalsh @ 2007-08-02 19:55 UTC (permalink / raw)
  To: cpebenito; +Cc: selinux

--- nsaserefpolicy/policy/modules/apps/wine.if	2007-05-29 14:10:48.000000000 -0400
+++ serefpolicy-3.0.5/policy/modules/apps/wine.if	2007-08-02 11:02:02.000000000 -0400
@@ -18,3 +18,34 @@
 	corecmd_search_bin($1)
 	domtrans_pattern($1, wine_exec_t, wine_t)
 ')
+
+########################################
+## <summary>
+##	Execute wine in the wine domain, and
+##	allow the specified role the wine domain.
+## </summary>
+## <param name="domain">
+##	<summary>
+##	The type of the process performing this action.
+##	</summary>
+## </param>
+## <param name="role">
+##	<summary>
+##	The role to be allowed the wine domain.
+##	</summary>
+## </param>
+## <param name="terminal">
+##	<summary>
+##	The type of the terminal allow the wine domain to use.
+##	</summary>
+## </param>
+#
+interface(`wine_run',`
+	gen_require(`
+		type wine_t;
+	')
+
+	wine_domtrans($1)
+	role $2 types wine_t;
+	allow wine_t $3:chr_file rw_term_perms;
+')

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] refpolicy: apps_wine changes add run interface
  2007-08-02 19:55 [PATCH] refpolicy: apps_wine changes add run interface dwalsh
@ 2007-09-07 13:33 ` Christopher J. PeBenito
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher J. PeBenito @ 2007-09-07 13:33 UTC (permalink / raw)
  To: dwalsh; +Cc: selinux

On Thu, 2007-08-02 at 15:55 -0400, dwalsh@redhat.com wrote:
> --- nsaserefpolicy/policy/modules/apps/wine.if  2007-05-29 14:10:48.000000000 -0400
> +++ serefpolicy-3.0.5/policy/modules/apps/wine.if       2007-08-02 11:02:02.000000000 -0400
> @@ -18,3 +18,34 @@
>         corecmd_search_bin($1)
>         domtrans_pattern($1, wine_exec_t, wine_t)
>  ')
> +
> +########################################
> +## <summary>
> +##     Execute wine in the wine domain, and
> +##     allow the specified role the wine domain.
> +## </summary>
> +## <param name="domain">
> +##     <summary>
> +##     The type of the process performing this action.
> +##     </summary>
> +## </param>
> +## <param name="role">
> +##     <summary>
> +##     The role to be allowed the wine domain.
> +##     </summary>
> +## </param>
> +## <param name="terminal">
> +##     <summary>
> +##     The type of the terminal allow the wine domain to use.
> +##     </summary>
> +## </param>
> +#
> +interface(`wine_run',`
> +       gen_require(`
> +               type wine_t;
> +       ')
> +
> +       wine_domtrans($1)
> +       role $2 types wine_t;
> +       allow wine_t $3:chr_file rw_term_perms;
> +')

Merged.

-- 
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-07 13:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-02 19:55 [PATCH] refpolicy: apps_wine changes add run interface dwalsh
2007-09-07 13:33 ` Christopher J. PeBenito

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.