-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Augeas can't parse systemd unit file entry ExecStartPre=+-command
#839
Comments
FYI this is the downstream bug filed against RHEL: https://issues.redhat.com/browse/RHEL-50778 |
Hello,
|
This commit allows the "+"(fullprivileges) command flag along with "-" and "@" flags. Fixes: hercules-team#839 Signed-off-by: [email protected] Reported-by: [email protected]
This commit allows the "+"(fullprivileges) command flag along with "-" and "@" flags. Fixes: hercules-team#839 Signed-off-by: Cosmin Tupangiu <[email protected]> Reported-by: Yongkui Guo <[email protected]>
This commit allows the "+"(fullprivileges) command flag along with "-" and "@" flags. Fixes: hercules-team#839 Signed-off-by: Cosmin Tupangiu <[email protected]> Reported-by: Yongkui Guo <[email protected]>
If the order of the flags is reversed, the existing lens will load, ie.
becomes
Pull Request #841 turns the '+' char into a separate path (flag) in augeas, but this it not strictly necessary as the '+' can be treated as part of the "value" The fact that this is dependant on the order of the '+-' flags is not desirable |
But the config file that exists uses
And this parsing is wrong. |
This commit allows the "+"(fullprivileges) command flag along with "-" and "@" flags. Order does not matter. Fixes: hercules-team#839 Signed-off-by: Cosmin Tupangiu <[email protected]> Reported-by: Yongkui Guo <[email protected]>
This commit allows the "+"(fullprivileges) command flag along with "-" and "@" flags. Order does not matter. Fixes: hercules-team#839 Signed-off-by: Cosmin Tupangiu <[email protected]> Reported-by: Yongkui Guo <[email protected]>
With the latest SSSD 2.10 was added a systemd unit file that contains:
The new
ExecStartPre=+-...
entries were added in this version and Augeas fails to parse them:I found through experimentation that the actual problem is the use of
+
and-
characters together. This is valid for systemd, but Augeas only understands a single character here (eg. just+
or just-
works, but not two or more).The text was updated successfully, but these errors were encountered: