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

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

    <bug>
          <bug_id>42873</bug_id>
          
          <creation_ts>2022-05-27 12:53:51 +0300</creation_ts>
          <short_desc>file из-под root не может открыть файл на чтение</short_desc>
          <delta_ts>2022-05-27 14:40:17 +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>file</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Vasilyev">andy</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>211180</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Vasilyev">andy</who>
    <bug_when>2022-05-27 12:53:51 +0300</bug_when>
    <thetext>Если файл принадлежит не-root и доступен на чтение только для 
  владельца, то команда file не может его открыть:

-rw------- 1 _libvirt vmusers 21478375424 мая 23 14:43 test.qcow2
# file test.qcow2
test.qcow2: regular file, no read permission

-rw------- 1 root vmusers 21478375424 мая 23 14:43 test.qcow2
# file -L test.qcow2
test.qcow2: QEMU QCOW2 Image (v3), 21474836480 bytes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>211183</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2022-05-27 13:46:30 +0300</bug_when>
    <thetext>Есть опция -S, но она не влияет на сброс root capabilities. Можно сделать, чтоб влияла.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>211186</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2022-05-27 14:36:47 +0300</bug_when>
    <thetext>file-5.41-alt4 -&gt; sisyphus:

 Fri May 27 2022 Vitaly Chikunov &lt;vt@altlinux&gt; 5.41-alt4
 - sandbox: Allow CAP_DAC_READ_SEARCH when sandboxing is disabled (ALT#42873).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>211188</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2022-05-27 14:40:17 +0300</bug_when>
    <thetext>В новой версии

    # file xenomai-3.1-alt2.x86_64.rpm
    xenomai-3.1-alt2.x86_64.rpm: regular file, no read permission
    # file -S xenomai-3.1-alt2.x86_64.rpm
    xenomai-3.1-alt2.x86_64.rpm: RPM v3.0 bin i386/x86_64 xenomai-3.1-alt2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>