[autobackport: sssd-2-9] Use macro rather than shell expansion for string processing in spec file#8520
Conversation
There was a problem hiding this comment.
Code Review
This pull request contains an unresolved merge conflict in contrib/sssd.spec.in. The conflict markers have been committed directly into the file, which makes it invalid and will break the build. This is a critical issue that must be resolved before merging.
df2b025 to
6b297f6
Compare
ebfa0f1 to
cad04a1
Compare
|
Looks good, thanks. Would it make things easier to add 'backport-to-sssd-2-9-4' label here and to close #8522? |
|
It also needs to be moved out of Draft. |
Based on commit f9697d4. But %gsub macro is not present in older (el9) version therefore we use %{lua:} to do the same thing. Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Nikola Forró <nforro@redhat.com> Reviewed-by: Tomáš Halman <thalman@redhat.com> (cherry picked from commit caa0ec2) Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
|
The pull request was accepted by @alexey-tikhonov with the following PR CI status: 🟢 CodeQL (success) There are unsuccessful or unfinished checks. Make sure that the failures are not related to this pull request before merging. |
cad04a1 to
7dcf233
Compare
This is an automatic backport of PR#8511 Use macro rather than shell expansion for string processing in spec file to branch sssd-2-9, created by @nforro.
Caution
@nforro The patches did not apply cleanly. It is necessary to resolve conflicts before merging this pull request. Commits that introduced conflict are marked with
CONFLICT!.You can push changes to this pull request
Original commits
f9697d4 - Use macro rather than shell expansion for string processing in spec file
caa0ec2 - Add a default for %samba_package_version
Backported commits
Conflicting Files Information (check for deleted and re-added files)
Original Pull Request Body
We've hardened security in Packit Service and shell expansions in spec files are now rejected as they can be used to execute arbitrary code. There is no need to use shell expansion for string processing, there is an existing macro for this very purpose.