#1113911 libcgroup3: ignore rules are mis-handled

Package:
libcgroup3
Source:
libcgroup3
Submitter:
Paul Szabo
Date:
2025-09-04 22:59:02 UTC
Severity:
normal
Tags:
#1113911#5
Date:
2025-09-04 00:47:24 UTC
From:
To:
Now at trixie, I am using systemd and CGROUPv2 and also using
cgrulesengd quite successfully. While pondering how to better avoid
conflicts with systemd, noticed that cgrules.conf allows the "ignore"
option (though undocumented, documented only since upstream V3.2).

Trying the "ignore" option in cgrules.conf, I found that those rule
lines were mis-handled (simply ignored, skipped) by cgrulesengd. The
cause seems wrong logic in libcgroup3 code, and the patch below seems
to fix the issue.

The issue affects upstream code, including their V3.2 version. I have
not yet reported upstream since I have not fully tested that version.

Cheers, Paul

Paul Szabo       psz@maths.usyd.edu.au       www.maths.usyd.edu.au/u/psz
School of Mathematics and Statistics   University of Sydney    Australia

#1113911#10
Date:
2025-09-04 22:49:51 UTC
From:
To:
Now reported upstream:
https://github.com/libcgroup/libcgroup/issues/510

Cheers, Paul