1. Описание стенда: ALT Server p11 x86_64, обновлённый до Sisyphus 2. Версия пакета: control++-0.25.0-alt1.x86_64 libcontrol++-0.36.0-alt1.x86_64 3. Шаги воспроизведения: 1. Создать тестовый режим со скриптом (валидный shebang #!/bin/bash, права 0755): # cat >> /etc/control++/control++.conf << 'EOF' [test_mode] scripts = test_s1 EOF # mkdir -p /etc/control++/scripts/test_s1 # cat > /etc/control++/scripts/test_s1/do << 'EOF' #!/bin/bash touch /root/test_s1_DO EOF # chmod 755 /etc/control++/scripts/test_s1/do 2. Применить режим: # control++ test_mode 4. Ожидаемый результат: Режим успешно применяется («Mode set OK»), скрипт /etc/control++/scripts/test_s1/do исполняется, создаётся файл /root/test_s1_DO. 5. Реальный результат: Утилита завершается с ошибкой применения скрипта: Setting 'test_mode' mode: Current mode is unknown, restoring will not be performed Setting 'test_mode' mode for the 'scripts' unit Applying 'test_s1' mode of the scripts unit.......................................[ERROR: Can't execute the script (no interpreter, noexec mount or no shebang)] [ERROR: Can't apply mode for the scripts] Restoring initial state for the 'scripts' unit Applying '.reset' mode of the scripts unit................................[DONE] - [WARNING: Previous scripts mode not stated] Set mode failed Скрипт не выполняется (файл /root/test_s1_DO отсутствует), код возврата 1. 6. Дополнительная информация: Регрессия возникла в версии 0.25.0 при исправлении OVE-20261127-0015 (защита от гонок при выполнении скриптов). При анализе системных вызовов через strace обнаружено: [pid 4512] execveat(3, , ["/etc/control++/scripts/test_s1/d"...], ..., AT_EMPTY_PATH) = -1 ENOENT (No such file or directory) [pid 4512] exit_group(204) В ядре Linux механизм binfmt_script (fs/binfmt_script.c) возвращает ENOENT при вызове execveat с флагом AT_EMPTY_PATH, так как дескриптор без имени в VFS помечается флагом BINPRM_FLAGS_PATH_INACCESSIBLE и ядро не может передать путь к файлу интерпретатору (bash/sh/python). При подстановке скомпилированного ELF-бинарника (например, /bin/true вместо do) execveat(..., AT_EMPTY_PATH) отрабатывает успешно: Applying 'test_s1' mode of the scripts unit...............................[DONE] Mode set OK Таким образом, в 0.25.0 полностью заблокировано исполнение любых интерпретируемых шелл-скриптов в юните scripts.
control++-0.25.1-alt1 -> sisyphus: Mon Nov 30 2026 Alexey Appolonov <alexey@altlinux> 0.25.1-alt1 - Fix a regression of OVE-20261127-0015: Scripts with a shebang don't run (Closes: #61720); - Corrected samples of the scripts.