Changes to the kernel policy module
PATCH 1/1 Changes to the kernel policy module
Interface is needed by at least plymouth
policy/modules/kernel/kernel.if +19 -0
@@ -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">
PATCH 1/1 Changes to the kernel policy module
For which socket is this? Why isn't the stream_connect_pattern needed here?
Quoted 35 lines · Dominick Grift
Interface is needed by at least plymouth
Signed-off-by Dominick Grift <[email protected]>policy/modules/kernel/kernel.if +19
-0@@ -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">
Quoted 5 lines
_______________________________________________
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
PATCH 1/1 Changes to the kernel policy module
Quoted 2 lines · Sven Vermeulen
For which socket is this? Why isn't the
stream_connect_patternneeded 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.
Quoted 45 lines
On Oct 17, 2012 2:29 PM, "Dominick Grift" <[email protected]> wrote:
Interface is needed by at least plymouth Signed-off-by: Dominick Grift <[email protected]> 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
PATCH 1/1 Changes to the kernel policy module
In reply to Dominick GriftQuoted 18 lines · Dominick Grift
Interface is needed by at least plymouth
Signed-off-by Dominick Grift <[email protected]>policy/modules/kernel/kernel.if +6
-0@@ -565,6 +565,25 @@ ######################################## ## <summary> +## Connect to kernel using a unix +## domain stream socket. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access.
policy/modules/kernel/kernel.if line 583
Quoted 10 lines
policy/modules/kernel/kernel.if +10
-0+## </summary> +## </param> +# +interface(`kernel_stream_connect',` + gen_require(` + type kernel_t; + ') + + allow $1 kernel_t:unix_stream_socket connectto; +')
Merged.
Signature · 3 lines
Chris PeBenito Tresys Technology, LLC www.tresys.com | oss.tresys.com