Message ID | 20240801193241.1627605-1-dmitry.sharshakov@siderolabs.com (mailing list archive) |
---|---|
State | Accepted |
Commit | b6910aa68a0e |
Delegated to: | Petr Lautrbach |
Headers | show |
Series | [v1,1/2] sepolgen: initialize gen_cil | expand |
On Thu, Aug 1, 2024 at 3:35 PM <dmitry.sharshakov@siderolabs.com> wrote: > > From: Dmitry Sharshakov <dmitry.sharshakov@siderolabs.com> > > Avoid errors when adding comments to CIL output like in audit2allow > > Signed-off-by: Dmitry Sharshakov <dmitry.sharshakov@siderolabs.com> For these two patches: Acked-by: James Carter <jwcart2@gmail.com> > --- > 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 > >
On Tue, Aug 13, 2024 at 1:42 PM James Carter <jwcart2@gmail.com> wrote: > > On Thu, Aug 1, 2024 at 3:35 PM <dmitry.sharshakov@siderolabs.com> wrote: > > > > From: Dmitry Sharshakov <dmitry.sharshakov@siderolabs.com> > > > > Avoid errors when adding comments to CIL output like in audit2allow > > > > Signed-off-by: Dmitry Sharshakov <dmitry.sharshakov@siderolabs.com> > > For these two patches: > Acked-by: James Carter <jwcart2@gmail.com> > These two patches have been merged. Thanks, Jim > > --- > > 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 > > > >
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