Bug 8174

Summary: Do not require root privileges for querying information
Product: [Yocto Project Subprojects] opkg Reporter: Laszlo Papp <lpapp>
Component: opkgAssignee: Alejandro del Castillo <alejandro.delcastillo>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Medium CC: richard.purdie
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Laszlo Papp 2015-08-17 11:32:19 UTC
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.
Comment 1 Alejandro del Castillo 2016-05-02 22:16:18 UTC
lock file should be under /var/run/lock

*** This bug has been marked as a duplicate of bug 9348 ***