Re: [PATCH v1 1/2] sepolgen: initialize gen_cil

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 1, 2024 at 3:35 PM <dmitry.sharshakov@xxxxxxxxxxxxxx> wrote:
>
> From: Dmitry Sharshakov <dmitry.sharshakov@xxxxxxxxxxxxxx>
>
> Avoid errors when adding comments to CIL output like in audit2allow
>
> Signed-off-by: Dmitry Sharshakov <dmitry.sharshakov@xxxxxxxxxxxxxx>

For these two patches:
Acked-by: James Carter <jwcart2@xxxxxxxxx>

> ---
>  python/sepolgen/src/sepolgen/refpolicy.py | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/python/sepolgen/src/sepolgen/refpolicy.py b/python/sepolgen/src/sepolgen/refpolicy.py
> index 2ec75fba..32278896 100644
> --- a/python/sepolgen/src/sepolgen/refpolicy.py
> +++ b/python/sepolgen/src/sepolgen/refpolicy.py
> @@ -1217,6 +1217,7 @@ class Comment:
>              self.lines = l
>          else:
>              self.lines = []
> +        self.gen_cil = False
>
>      def to_string(self):
>          # If there are no lines, treat this as a spacer between
> --
> 2.45.2
>
>





[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux