RPM

lsbpkgchk: doesn't check users in cpio/rpm

Bug #1326424 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
New
Undecided
Unassigned
lsb
In Progress
Wishlist
Mandriva
In Progress
Wishlist

Bug Description

I've built a simple test package like this:
$ mkdir -p pkg/opt/lsb-etorok.net/bin
$ echo "#!/bin/sh" > pkg/opt/lsb-etorok.net/bin/test.sh
$ fakeroot sh -c 'chown -R root:root pkg/; makelsbpkg tst pkg/'

lsbpkgchk didn't show any warnings about wrong user:

$ /opt/lsb/lsb-app-checker/bin/lsbpkgchk tst-1.0.0-1.x86_64.rpm -L
lsb-etorok.net
LSB version is not specified, using 4.1 by default.

checkRpmIdxPROVIDENAME() type=8 offset=12c count=1 tst
Provide Flag not checked: 8

But the package is not installable on another machine because the cpio
contains the edwin:edwin user, because fakeroot doesn't work with makelsbpkg.

Of course a package could contain some install scripts to create the required
users, but perhaps lsbpkgchk should show a warning when there is no install
script
and non-standard users are used. (and when it does contain an install script it
could produce a FIP so that you can manually check that the users are really
creatred).

I've tried checking the package using the web interface of the application
checker, but it doesn't seem to accept RPMs (although it says it does):
"Error: Could not process the following files:
    /home/edwin/something/tst-1.0.0-1.x86_64.rpm"

Tags: lsb pkgchk
Jeff Johnson (n3npq)
tags: added: lsb pkgchk
affects: unitylinux → lsb
no longer affects: lsb
Jeff Johnson (n3npq)
no longer affects: rosa
Changed in lsb:
importance: Unknown → Wishlist
status: Unknown → In Progress
Jeff Johnson (n3npq)
description: updated
Changed in lsb:
milestone: none → 5.1
Changed in mandriva:
importance: Unknown → Wishlist
status: Unknown → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.