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

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

    <bug>
          <bug_id>810</bug_id>
          
          <creation_ts>2002-04-09 23:38:41 +0400</creation_ts>
          <short_desc>APT: run download methods with less permissions</short_desc>
          <delta_ts>2020-08-19 14:02: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>apt</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="imz">vanyaz</reporter>
          <assigned_to name="Ivan Zakharyaschev">imz</assigned_to>
          <cc>boyarsh</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>msp</cc>
    
    <cc>placeholder</cc>
    
    <cc>svd</cc>
    
    <cc>voins</cc>
    
    <cc>vt</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>770</commentid>
    <comment_count>0</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2002-04-09 23:38:41 +0400</bug_when>
    <thetext>/usr/lib/apt/ftp (and others) doesn\&apos;t need all the root\&apos;s permissions and access to the whole filesystem to do its job, only read access to the source (URL, CD-ROM) and write access to the cache.

So running the download methods under a simple special user and (perhaps) in a chrooted environment could be a security improvement.

I\&apos;m not sure whether this would be a real important security improvement... But the download stage seems to be the only one when the APT system has to deal with untrusted environment like the Internet; after the downoad is complete, the signatures of the packages can be checked and a decision made whether to trust them.

---

---

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113425</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2010-10-09 19:06:01 +0400</bug_when>
    <thetext>Seems like requisite example in stock /etc/apt/apt.conf suffices in practice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113427</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2010-10-09 19:09:14 +0400</bug_when>
    <thetext>Ouch, missed the tab! (see #608)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143737</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2013-11-10 19:38:29 +0400</bug_when>
    <thetext>apparently wontfix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>164830</commentid>
    <comment_count>4</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2017-07-24 16:50:34 +0300</bug_when>
    <thetext>This is about to be fixed in task #185681</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>