Bug 129463

Summary: /var/lock/rpm/transaction not relocatible
Product: [Fedora] Fedora Reporter: Christof <christof.pintaske>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1CC: enrio, nobody+pnasrat
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-07 22:46:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christof 2004-08-09 14:57:04 UTC
Description of problem:

I face a problem with rpm 4.3.x in that the transaction locking does
try to lock the file /var/lock/rpm/transaction regardless of the
dbpath or any prefix. In fact rpmlock_new() from rpm/lib/rpmlock.c
takes a "rootdir" as an argument, however RPMLOCK_FILE is not
relocated to it.

I guess the transaction file should relocate to the rpm database
directory, otherwise you could still face race conditions on, for
example, a diskless client, when installing rpms from the server and
from the client at the same time. 
Version-Release number of selected component (if applicable):


How reproducible:

use rpm without root priviliges and relocate to a directory where you
have write permissions

Steps to Reproduce:
1.
2.
3.
  
Actual results:

fails to get a lock on /var/lock/rpm/transaction


Expected results:

the file transaction should be relocated to where the rpm database is
relocated to.

Additional info:

please let me know if you need more info

Comment 1 Christof 2004-08-12 08:45:05 UTC
see also: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=129700

Comment 2 Anders F Björklund 2004-09-22 15:24:51 UTC
Patch to relocate to "%{_dbpath}/Transactionlock" is in Bug 129700

Comment 3 Jeff Johnson 2005-02-07 22:46:45 UTC
Fixed in rpm-4.4.1-0.18.