** Description changed: + [Impact] + + * zkey utility attempts to execute cryptsetup binary and fails to find + it, due to setting invalid PATH variable (which is missing /sbin). Stop + resetting the PATH, and use the correct system default PATH which leads + to correct execution of cryptsetup binary. + + + [Test Case] + + * enroll system with crypto adapters / get ready to use zkey + * generate appropriate zkey for an encryption device + * Use `$ zkey cryptsetup --run` to perform cryptsetup commands via zkey + + [Regression Potential] + + * Currently only '--run' argument is broken, without '--run' the + commands are printed that one can simply copy&paste and execute + correctly under sudo. The effects of broken path, and using system path, + have been discussed in depth at + https://github.com/ibm-s390-tools/s390-tools/commit/9100327092c470c2e5b5819087c8094822a1c751 + and will result in correctly attempting to execute cryptsetup binary. + (it may later fail for other reasons, but that's beyond the scope here). + + [Other Info] + + * Original bug report. + Description: zkey: Fails to run commands generated by 'zkey cryptsetup' Symptom: Fails to run commands generated by 'zkey cryptsetup'. Problem: When using 'zkey cryptsetup' with --run option the execution of the generated commands may fail, when the executable to be run is located in '/sbin'. Solution: Include /sbin into PATH when executing commands. Reproduction: Use 'zkey cryptsetup' with option --run on a distribution - where 'cryptsetup' is located in '/sbin'. + where 'cryptsetup' is located in '/sbin'. Upstream commit: https://github.com/ibm-s390-tools/s390-tools/commit/9100327092c470c2e5b5819087c8094822a1c751
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1803958 Title: [UBUNTU] zkey: Fails to run commands generated by 'zkey cryptsetup' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1803958/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
