<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>61317</bug_id>
          
          <creation_ts>2026-11-03 12:32:42 +0300</creation_ts>
          <short_desc>control++: первый вызов от непривилегированного пользователя завершается ошибкой «Can&apos;t create config file &apos;/var/lib/control++/.current_mode.conf&apos;», control++gui не запускается</short_desc>
          <delta_ts>2026-11-28 02:01:08 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>control++</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="obidinog@basealt.ru">obidinog</reporter>
          <assigned_to>alexey</assigned_to>
          <cc>alexey</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>303832</commentid>
    <comment_count>0</comment_count>
    <who name="obidinog@basealt.ru">obidinog</who>
    <bug_when>2026-11-03 12:32:42 +0300</bug_when>
    <thetext>Стенд: ALT KWorkstation 11.4, обновлённый до Sisyphus (x86_64)
Версия пакета: control++-0.24.2-alt1 (также python3-module-control++gui-0.2.0-alt2)

Шаги воспроизведения:
1. Установить пакет control++ на свежую систему (ни разу не выполняя control++ от root).
2. От обычного пользователя выполнить:
$ control++ --list

Ожидаемый результат:
Команда выполняется успешно (код возврата 0), выводится список режимов.
State-файл должен создаваться при установке пакета, либо его отсутствие не
должно быть фатальной ошибкой для read-only операций.

Реальный результат:
$ control++ --list
Reading internal conf file &quot;/var/lib/control++/.current_mode.conf&quot;...[ERROR]
        - [ERROR: Can&apos;t create config file &apos;/var/lib/control++/.current_mode.conf&apos;]
$ echo $?
1

Дополнительно:
Пакет поставляет только каталог /var/lib/control++/ (root:root 0755); state-файл
.current_mode.conf создаётся при первом запуске. Непривилегированный пользователь
не может его создать, что обрабатывается как фатальная ошибка даже для read-only
операций (--list, --status).

Побочный эффект: не запускается control++gui — при первом запуске от пользователя
показывается фатальный диалог «Can&apos;t get a list of control++ modes:
Command [&apos;control++&apos;, &apos;--list&apos;] returned non-zero exit status 1» и приложение
завершается.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>303844</commentid>
    <comment_count>1</comment_count>
    <who name="">alexey</who>
    <bug_when>2026-11-03 13:40:37 +0300</bug_when>
    <thetext>Сейчас готовлю новую версию с мелкими исправлениями, учту в ней и это, спасибо.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>305428</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-11-28 02:01:08 +0300</bug_when>
    <thetext>control++-0.25.0-alt1 -&gt; sisyphus:

Fri Nov 27 2026 Alexey Appolonov &lt;alexey@altlinux&gt; 0.25.0-alt1
- Fixes:
  + OVE-20261127-0012 Shell special symbols were not filtered out of mode names
  + OVE-20261127-0013 Missing validation of mode names obtained from the file system
  + OVE-20261127-0014 Script path reached a shell and its exit status was misread
  + OVE-20261127-0015 Race between checking a script and running it
- Various minor bug fixes, including a few memory leaks;
- The mode check during a micro reset now works properly;
- Scripts without a shebang line are no longer run by the starter unit;
- The ulimits unit is improved (in particular, the precedence of its ulimits
  files is now guaranteed in all situations, while a specially crafted catalog
  could previously break the hierarchy in which mode-specific files come first);
- The mode status is now available before the first run by root
  (Closes: #61317).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>