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

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

    <bug>
          <bug_id>59354</bug_id>
          
          <creation_ts>2026-05-28 09:27:10 +0300</creation_ts>
          <short_desc>Неправильно устанавливаются права на папку с основным диском контейнера</short_desc>
          <delta_ts>2026-07-23 21:53:32 +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>pve-container</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Алексей">altlinux</reporter>
          <assigned_to name="darisishe@altlinux.org">darisishe</assigned_to>
          <cc>altlinux</cc>
    
    <cc>andy</cc>
    
    <cc>darisishe</cc>
    
    <cc>glinkinvd</cc>
    
    <cc>shaba</cc>
    
    <cc>shrek</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>288459</commentid>
    <comment_count>0</comment_count>
    <who name="Алексей">altlinux</who>
    <bug_when>2026-05-28 09:27:10 +0300</bug_when>
    <thetext>Неправильно устанавливаются права на папку с основным диском контейнера

После обновления на версию 6.0.18-alt3 при запуске контейнера на папку с основным диском контейнера с ним устанавливаются права root:root 755. До этого были права 100000:100000 755.

После установки права root:root в контейнере нет доступа на запись в корень. Часть программ в контейнере перестаёт работать например rsyslog.

Исправляется в файле LXC.pm комментарием строк, но это не совсем правильное решение.

#    PVE::Tools::fchownat(fileno($mount_fd), &apos;&apos;, $uid, $gid, PVE::Tools::AT_EMPTY_PATH)
#        or die &quot;failed to propagate uid and gid to mountpoint: $!\n&quot;;
#    PVE::Tools::fchmodat(fileno($mount_fd), &apos;.&apos;, $mode, 0)
#        or die &quot;failed to propagate access mode to mountpoint: $!\n&quot;;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288591</commentid>
    <comment_count>1</comment_count>
    <who name="Vladislav Glinkin">glinkinvd</who>
    <bug_when>2026-05-29 10:12:30 +0300</bug_when>
    <thetext>Подтверждаю проблему. На непривилегированных контейнерах запись в корень невозможна. 
Данное поведение было вызвано коммитом https://git.altlinux.org/gears/p/pve-container.git?p=pve-container.git;a=commitdiff;h=0db559517ac645c7add15e3005a201511052b77f

В upstream&apos;е проблема была устранена:
https://git.proxmox.com/?p=pve-container.git;a=commitdiff;h=abebdaa0573092ac1a7cc18ee2cf15ff3c54ff56

После патча всё работает:
```
[root@pve /]# ls -l /var/lib/lxc/100/ &lt;- старый контейнер с rootfs до патча
итого 16
-rw-r--r--  1 root root  949 мая 29 10:06 config
drwxr-xr-x  2 root root 4096 мая 28 17:59 passthrough
drwxr-xr-x 18 root root 4096 мая 29 09:56 rootfs
-rw-r--r--  1 root root  265 мая 29 10:06 rules.seccomp
[root@pve /]# ls -l /var/lib/lxc/102 &lt;- новый контейнер с rootfs с патчем
итого 16
-rw-r--r--  1 root   root    953 мая 29 10:06 config
drwxr-xr-x  2 root   root   4096 мая 29 09:57 passthrough
drwxr-xr-x 20 100000 100000 4096 мая 29 10:03 rootfs
-rw-r--r--  1 root   root    265 мая 29 10:06 rules.seccomp
```

Необходимо обновить пакет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>291587</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-07-23 21:53:32 +0300</bug_when>
    <thetext>pve-container-6.1.11-alt1 -&gt; sisyphus:

Tue Jul 21 2026 Sergey Konev &lt;darisishe@altlinux&gt; 6.1.11-alt1
- 6.1.11 (Closes: 59354, 58095)
- Clear ENV before calling &apos;pct exec&apos; (Closes: 58166)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>