selinux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] python: Fix typo in audit2allow.1 example
@ 2022-11-08 10:18 Petr Lautrbach
  2022-11-08 16:54 ` James Carter
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Lautrbach @ 2022-11-08 10:18 UTC (permalink / raw)
  To: selinux; +Cc: Petr Lautrbach

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
---
 python/audit2allow/audit2allow.1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/audit2allow/audit2allow.1 b/python/audit2allow/audit2allow.1
index c61067b33688..f1a4b8ea33b3 100644
--- a/python/audit2allow/audit2allow.1
+++ b/python/audit2allow/audit2allow.1
@@ -151,7 +151,7 @@ policy_module(local, 1.0)
 gen_require(`
         type myapp_t;
         type etc_t;
- };
+');
 
 files_read_etc_files(myapp_t)
 <review local.te and customize as desired>
-- 
2.37.3


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

* Re: [PATCH] python: Fix typo in audit2allow.1 example
  2022-11-08 10:18 [PATCH] python: Fix typo in audit2allow.1 example Petr Lautrbach
@ 2022-11-08 16:54 ` James Carter
  2022-11-08 17:02   ` Petr Lautrbach
  0 siblings, 1 reply; 3+ messages in thread
From: James Carter @ 2022-11-08 16:54 UTC (permalink / raw)
  To: Petr Lautrbach; +Cc: selinux

On Tue, Nov 8, 2022 at 5:20 AM Petr Lautrbach <plautrba@redhat.com> wrote:
>
> Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
> ---
>  python/audit2allow/audit2allow.1 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/python/audit2allow/audit2allow.1 b/python/audit2allow/audit2allow.1
> index c61067b33688..f1a4b8ea33b3 100644
> --- a/python/audit2allow/audit2allow.1
> +++ b/python/audit2allow/audit2allow.1
> @@ -151,7 +151,7 @@ policy_module(local, 1.0)
>  gen_require(`
>          type myapp_t;
>          type etc_t;
> - };
> +');

Should be:
+\[aq]);

Otherwise, the line does not show up.
You can't use \' because that is translated into a closing single quote.

Thanks,
Jim

>
>  files_read_etc_files(myapp_t)
>  <review local.te and customize as desired>
> --
> 2.37.3
>

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

* Re: [PATCH] python: Fix typo in audit2allow.1 example
  2022-11-08 16:54 ` James Carter
@ 2022-11-08 17:02   ` Petr Lautrbach
  0 siblings, 0 replies; 3+ messages in thread
From: Petr Lautrbach @ 2022-11-08 17:02 UTC (permalink / raw)
  To: James Carter; +Cc: selinux

James Carter <jwcart2@gmail.com> writes:

> On Tue, Nov 8, 2022 at 5:20 AM Petr Lautrbach <plautrba@redhat.com> wrote:
>>
>> Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
>> ---
>>  python/audit2allow/audit2allow.1 | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/python/audit2allow/audit2allow.1 b/python/audit2allow/audit2allow.1
>> index c61067b33688..f1a4b8ea33b3 100644
>> --- a/python/audit2allow/audit2allow.1
>> +++ b/python/audit2allow/audit2allow.1
>> @@ -151,7 +151,7 @@ policy_module(local, 1.0)
>>  gen_require(`
>>          type myapp_t;
>>          type etc_t;
>> - };
>> +');
>
> Should be:
> +\[aq]);
>
> Otherwise, the line does not show up.
> You can't use \' because that is translated into a closing single quote.
>

I haven't checked it, sorry for that.

I'll send a proper fix.


>
>>
>>  files_read_etc_files(myapp_t)
>>  <review local.te and customize as desired>
>> --
>> 2.37.3
>>


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

end of thread, other threads:[~2022-11-08 17:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-08 10:18 [PATCH] python: Fix typo in audit2allow.1 example Petr Lautrbach
2022-11-08 16:54 ` James Carter
2022-11-08 17:02   ` Petr Lautrbach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).