<?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>8174</bug_id>
          
          <creation_ts>2015-08-17 11:32:19 +0000</creation_ts>
          <short_desc>Do not require root privileges for querying information</short_desc>
          <delta_ts>2016-05-02 22:16:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>9348</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Laszlo Papp">lpapp</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>53145</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2015-08-17 11:32:19 +0000</bug_when>
    <thetext>It seems that e.g. querying the list of installed packages would create a lock file in /var/lib.

Generally, that directory is not writeable by others than the owner, which is root.

Therefore, a simple user cannot query such information. It would seem logical not to lock the database for such operations.

opkg list-installed
Collected errors: * opkg_conf_load: Could not create lock file /var/lib/opkg/lock: Permission denied.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61862</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-05-02 22:16:18 +0000</bug_when>
    <thetext>lock file should be under /var/run/lock

*** This bug has been marked as a duplicate of bug 9348 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>