* [refpolicy] [PATCH] Changes to the kernel policy module
@ 2012-10-17 12:29 Dominick Grift
2012-10-17 12:46 ` Sven Vermeulen
2012-10-19 13:20 ` Christopher J. PeBenito
0 siblings, 2 replies; 4+ messages in thread
From: Dominick Grift @ 2012-10-17 12:29 UTC (permalink / raw)
To: refpolicy
Interface is needed by at least plymouth
Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
diff --git a/policy/modules/kernel/kernel.if b/policy/modules/kernel/kernel.if
index 4bf45cb..7cbf5d6 100644
--- a/policy/modules/kernel/kernel.if
+++ b/policy/modules/kernel/kernel.if
@@ -565,6 +565,25 @@
########################################
## <summary>
+## Connect to kernel using a unix
+## domain stream socket.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(`kernel_stream_connect',`
+ gen_require(`
+ type kernel_t;
+ ')
+
+ allow $1 kernel_t:unix_stream_socket connectto;
+')
+
+########################################
+## <summary>
## Get information on all System V IPC objects.
## </summary>
## <param name="domain">
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [refpolicy] [PATCH] Changes to the kernel policy module
2012-10-17 12:29 [refpolicy] [PATCH] Changes to the kernel policy module Dominick Grift
@ 2012-10-17 12:46 ` Sven Vermeulen
2012-10-17 14:15 ` Dominick Grift
2012-10-19 13:20 ` Christopher J. PeBenito
1 sibling, 1 reply; 4+ messages in thread
From: Sven Vermeulen @ 2012-10-17 12:46 UTC (permalink / raw)
To: refpolicy
For which socket is this? Why isn't the stream_connect_pattern needed here?
On Oct 17, 2012 2:29 PM, "Dominick Grift" <dominick.grift@gmail.com> wrote:
>
> Interface is needed by at least plymouth
>
> Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
> diff --git a/policy/modules/kernel/kernel.if
> b/policy/modules/kernel/kernel.if
> index 4bf45cb..7cbf5d6 100644
> --- a/policy/modules/kernel/kernel.if
> +++ b/policy/modules/kernel/kernel.if
> @@ -565,6 +565,25 @@
>
> ########################################
> ## <summary>
> +## Connect to kernel using a unix
> +## domain stream socket.
> +## </summary>
> +## <param name="domain">
> +## <summary>
> +## Domain allowed access.
> +## </summary>
> +## </param>
> +#
> +interface(`kernel_stream_connect',`
> + gen_require(`
> + type kernel_t;
> + ')
> +
> + allow $1 kernel_t:unix_stream_socket connectto;
> +')
> +
> +########################################
> +## <summary>
> ## Get information on all System V IPC objects.
> ## </summary>
> ## <param name="domain">
> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20121017/76256525/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [refpolicy] [PATCH] Changes to the kernel policy module
2012-10-17 12:46 ` Sven Vermeulen
@ 2012-10-17 14:15 ` Dominick Grift
0 siblings, 0 replies; 4+ messages in thread
From: Dominick Grift @ 2012-10-17 14:15 UTC (permalink / raw)
To: refpolicy
On Wed, 2012-10-17 at 14:46 +0200, Sven Vermeulen wrote:
> For which socket is this? Why isn't the stream_connect_pattern needed
> here?
This is probably initramfs i believe.
There is no audit of a write to any sock file related to this
Not sure exactly why but i suspect it has do do with the fact that this
happens so early in the boot process.
> On Oct 17, 2012 2:29 PM, "Dominick Grift" <dominick.grift@gmail.com>
> wrote:
>
> Interface is needed by at least plymouth
>
> Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
> diff --git a/policy/modules/kernel/kernel.if
> b/policy/modules/kernel/kernel.if
> index 4bf45cb..7cbf5d6 100644
> --- a/policy/modules/kernel/kernel.if
> +++ b/policy/modules/kernel/kernel.if
> @@ -565,6 +565,25 @@
>
> ########################################
> ## <summary>
> +## Connect to kernel using a unix
> +## domain stream socket.
> +## </summary>
> +## <param name="domain">
> +## <summary>
> +## Domain allowed access.
> +## </summary>
> +## </param>
> +#
> +interface(`kernel_stream_connect',`
> + gen_require(`
> + type kernel_t;
> + ')
> +
> + allow $1 kernel_t:unix_stream_socket connectto;
> +')
> +
> +########################################
> +## <summary>
> ## Get information on all System V IPC objects.
> ## </summary>
> ## <param name="domain">
> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy
> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy
^ permalink raw reply [flat|nested] 4+ messages in thread
* [refpolicy] [PATCH] Changes to the kernel policy module
2012-10-17 12:29 [refpolicy] [PATCH] Changes to the kernel policy module Dominick Grift
2012-10-17 12:46 ` Sven Vermeulen
@ 2012-10-19 13:20 ` Christopher J. PeBenito
1 sibling, 0 replies; 4+ messages in thread
From: Christopher J. PeBenito @ 2012-10-19 13:20 UTC (permalink / raw)
To: refpolicy
On 10/17/12 08:29, Dominick Grift wrote:
>
> Interface is needed by at least plymouth
>
> Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
> diff --git a/policy/modules/kernel/kernel.if b/policy/modules/kernel/kernel.if
> index 4bf45cb..7cbf5d6 100644
> --- a/policy/modules/kernel/kernel.if
> +++ b/policy/modules/kernel/kernel.if
> @@ -565,6 +565,25 @@
>
> ########################################
> ## <summary>
> +## Connect to kernel using a unix
> +## domain stream socket.
> +## </summary>
> +## <param name="domain">
> +## <summary>
> +## Domain allowed access.
> +## </summary>
> +## </param>
> +#
> +interface(`kernel_stream_connect',`
> + gen_require(`
> + type kernel_t;
> + ')
> +
> + allow $1 kernel_t:unix_stream_socket connectto;
> +')
Merged.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-19 13:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-17 12:29 [refpolicy] [PATCH] Changes to the kernel policy module Dominick Grift
2012-10-17 12:46 ` Sven Vermeulen
2012-10-17 14:15 ` Dominick Grift
2012-10-19 13:20 ` 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.