All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sepolicy: clarify manual page of sepolicy interface
@ 2023-06-04 11:57 Topi Miettinen
  2023-06-05  8:56 ` Petr Lautrbach
  0 siblings, 1 reply; 3+ messages in thread
From: Topi Miettinen @ 2023-06-04 11:57 UTC (permalink / raw)
  To: selinux; +Cc: Topi Miettinen

Expand the description to make it more clear what "interfaces" mean
here. They're different from network interfaces used by SELinux
command `semanage interface`.

Add a note that the information comes from on-disk file which has been
installed and it doesn't necessarily match the policy loaded to the
kernel.

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
---
 python/sepolicy/sepolicy-interface.8 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/python/sepolicy/sepolicy-interface.8 b/python/sepolicy/sepolicy-interface.8
index 3e74ea62..c8985afb 100644
--- a/python/sepolicy/sepolicy-interface.8
+++ b/python/sepolicy/sepolicy-interface.8
@@ -8,7 +8,11 @@ sepolicy-interface \- Print interface information based on the installed SELinux
 .B sepolicy interface  [\-h] [\-c] [\-v] [\-a | \-u | \-l | \-i INTERFACE [INTERFACE ... ]]
 
 .SH "DESCRIPTION"
-Use sepolicy interface to print interfaces information based on SELinux Policy.
+Use sepolicy interface to print information of interface macros
+between domains in SELinux policy modules, as used in Reference
+Policy. The information is based on installed on-disk representation
+of the SELinux Policy and it may be different from the policy which is
+currently loaded.
 
 .SH "OPTIONS"
 .TP
-- 
2.39.2


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

* Re: [PATCH] sepolicy: clarify manual page of sepolicy interface
  2023-06-04 11:57 [PATCH] sepolicy: clarify manual page of sepolicy interface Topi Miettinen
@ 2023-06-05  8:56 ` Petr Lautrbach
  2023-06-08 19:52   ` James Carter
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Lautrbach @ 2023-06-05  8:56 UTC (permalink / raw)
  To: Topi Miettinen, selinux; +Cc: Topi Miettinen

Topi Miettinen <toiwoton@gmail.com> writes:

> Expand the description to make it more clear what "interfaces" mean
> here. They're different from network interfaces used by SELinux
> command `semanage interface`.
>
> Add a note that the information comes from on-disk file which has been
> installed and it doesn't necessarily match the policy loaded to the
> kernel.
>
> Signed-off-by: Topi Miettinen <toiwoton@gmail.com>

Acked-by: Petr Lautrbach <lautrbach@redhat.com>

Thanks!

> ---
>  python/sepolicy/sepolicy-interface.8 | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/python/sepolicy/sepolicy-interface.8 b/python/sepolicy/sepolicy-interface.8
> index 3e74ea62..c8985afb 100644
> --- a/python/sepolicy/sepolicy-interface.8
> +++ b/python/sepolicy/sepolicy-interface.8
> @@ -8,7 +8,11 @@ sepolicy-interface \- Print interface information based on the installed SELinux
>  .B sepolicy interface  [\-h] [\-c] [\-v] [\-a | \-u | \-l | \-i INTERFACE [INTERFACE ... ]]
>  
>  .SH "DESCRIPTION"
> -Use sepolicy interface to print interfaces information based on SELinux Policy.
> +Use sepolicy interface to print information of interface macros
> +between domains in SELinux policy modules, as used in Reference
> +Policy. The information is based on installed on-disk representation
> +of the SELinux Policy and it may be different from the policy which is
> +currently loaded.
>  
>  .SH "OPTIONS"
>  .TP
> -- 
> 2.39.2


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

* Re: [PATCH] sepolicy: clarify manual page of sepolicy interface
  2023-06-05  8:56 ` Petr Lautrbach
@ 2023-06-08 19:52   ` James Carter
  0 siblings, 0 replies; 3+ messages in thread
From: James Carter @ 2023-06-08 19:52 UTC (permalink / raw)
  To: Petr Lautrbach; +Cc: Topi Miettinen, selinux

On Mon, Jun 5, 2023 at 5:17 AM Petr Lautrbach <lautrbach@redhat.com> wrote:
>
> Topi Miettinen <toiwoton@gmail.com> writes:
>
> > Expand the description to make it more clear what "interfaces" mean
> > here. They're different from network interfaces used by SELinux
> > command `semanage interface`.
> >
> > Add a note that the information comes from on-disk file which has been
> > installed and it doesn't necessarily match the policy loaded to the
> > kernel.
> >
> > Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
>
> Acked-by: Petr Lautrbach <lautrbach@redhat.com>
>

Merged.
Thanks,
Jim

> Thanks!
>
> > ---
> >  python/sepolicy/sepolicy-interface.8 | 6 +++++-
> >  1 file changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/python/sepolicy/sepolicy-interface.8 b/python/sepolicy/sepolicy-interface.8
> > index 3e74ea62..c8985afb 100644
> > --- a/python/sepolicy/sepolicy-interface.8
> > +++ b/python/sepolicy/sepolicy-interface.8
> > @@ -8,7 +8,11 @@ sepolicy-interface \- Print interface information based on the installed SELinux
> >  .B sepolicy interface  [\-h] [\-c] [\-v] [\-a | \-u | \-l | \-i INTERFACE [INTERFACE ... ]]
> >
> >  .SH "DESCRIPTION"
> > -Use sepolicy interface to print interfaces information based on SELinux Policy.
> > +Use sepolicy interface to print information of interface macros
> > +between domains in SELinux policy modules, as used in Reference
> > +Policy. The information is based on installed on-disk representation
> > +of the SELinux Policy and it may be different from the policy which is
> > +currently loaded.
> >
> >  .SH "OPTIONS"
> >  .TP
> > --
> > 2.39.2
>

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

end of thread, other threads:[~2023-06-08 19:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-04 11:57 [PATCH] sepolicy: clarify manual page of sepolicy interface Topi Miettinen
2023-06-05  8:56 ` Petr Lautrbach
2023-06-08 19:52   ` James Carter

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.