Message ID | 20221108101854.1136685-1-plautrba@redhat.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | python: Fix typo in audit2allow.1 example | expand |
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 >
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 >>
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>
Signed-off-by: Petr Lautrbach <plautrba@redhat.com> --- python/audit2allow/audit2allow.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)