Bug 8174 - Do not require root privileges for querying information
Summary: Do not require root privileges for querying information
Status: RESOLVED DUPLICATE of bug 9348
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: ---
Assignee: Alejandro del Castillo
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-08-17 11:32 UTC by Laszlo Papp
Modified: 2016-05-02 22:16 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***