<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5259</bug_id>
          
          <creation_ts>2013-09-24 12:49:58 +0000</creation_ts>
          <short_desc>adt-installer uses wrong permissions when extracting the sysroot</short_desc>
          <delta_ts>2013-10-03 11:11:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>adt</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.5 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Georgescu">alexandru.c.georgescu</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37107</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-09-24 12:49:58 +0000</bug_when>
    <thetext>poky: 853bc53cd58a621918f0e5ce662dba263d1befb4

If adt-installer is insatlled in the default location, e.g. /opt/poky, the user is asked to enter the sudo passwd in order to perform the install.
However, the sysroot is not installed as root, but as a normal user. 

In this commit, the sysroot is installed as root and this prevents the user to use ADT because of persmission denied.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37162</commentid>
    <comment_count>1</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-09-25 08:44:43 +0000</bug_when>
    <thetext>I did more testing about this issue. The ownership for sysroot directory is same with adt-installer location&apos;s ownership. The adt-installer will inherit the ownership of its parent directory. So if the parent directory owner is root, the adt-installer and the sysroot also be installed with root.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37174</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-09-25 09:53:24 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I did more testing about this issue. The ownership for sysroot directory is
&gt; same with adt-installer location&apos;s ownership. The adt-installer will inherit
&gt; the ownership of its parent directory. So if the parent directory owner is
&gt; root, the adt-installer and the sysroot also be installed with root.

Hi,
When running the installer the user is asked for sudo passwd. Then with that user (superuser) the installer extracts the sysroot, therefore the root user in that folder. 

I have tested running as a normal user, and this behavior is consistent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37289</commentid>
    <comment_count>3</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-09-27 09:02:20 +0000</bug_when>
    <thetext>Patch merged:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=1ffa203dd5cfc8c1b717ff3c7222eb3f0c21f5d5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37535</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-10-03 11:11:32 +0000</bug_when>
    <thetext>verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>