Control: tags -1 - moreinfo

Boris,

Actually, I have managed to reproduce. There is a stray '[' in the SecureBits
substitution.

Does the attached patch work for you?

Mark

commit 0b0b53ffc67f6e14004fc894284f973cbe71fef5
Author: Mark Hindley <m...@hindley.org.uk>
Date:   Mon Jan 27 09:40:40 2025 +0000

    b/lsb: remove stray '[' in SecureBits subsitution.
    
    Closes: #1094329

diff --git a/backends/lsb b/backends/lsb
index 3a88674..065be16 100644
--- a/backends/lsb
+++ b/backends/lsb
@@ -238,7 +238,7 @@ export_service() {
 
                if [[ -n "${service[SecureBits]:-}" ]]; then
                        secbits=${service[SecureBits]/-/_}
-                       lsb[SETPRIV_ARGS]+="--securebits +${secbits//[$[' 
\r\t\n']/,+} "
+                       lsb[SETPRIV_ARGS]+="--securebits +${secbits//[$' 
\r\t\n']/,+} "
                fi
 
                if [[ "${service[CapabilityBoundingSet]+defined}" ]] ; then

Reply via email to