Bug 147705 - su does not work in a build-root
Summary: su does not work in a build-root
Status: RESOLVED FIXED
: 149389 (view as bug list)
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Development (show other bugs)
Version: Beta 3
Hardware: 32bit Other
: P5 - None : Critical (vote)
Target Milestone: ---
Assignee: Michael Schröder
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-02 16:49 UTC by Karsten Keil
Modified: 2006-03-17 18:14 UTC (History)
4 users (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
strace of chroot /var/tmp/build-root su - abuild (28.76 KB, text/plain)
2006-02-02 16:52 UTC, Karsten Keil
Details
proposed patch (3.18 KB, patch)
2006-02-03 12:33 UTC, Karsten Keil
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Keil 2006-02-02 16:49:17 UTC
I try to make build (from build.rpm, not our internal) running on a SUSE OSS Beta3 installation.
First problem was, that build want install libselinux, but this does not exist, so I removed it from the default package list.
Then build did setup the /var/tmp/build-root successfully but failed
to run the 
chroot $BUILD_ROOT su -c "$RPMBUILD \ $BUILD_PARAMETERS /usr/src/packages/SOURCES/$SPECFILE" - $BUILD_USER
command with 'su abuild - invalid password'

Also
chroot /var/tmp/build-root
su abuild does not work.
/etc/passwd does contain abuild without a password.

I set this to critical, since partners need a working build to create KMP packages and Beta3 is really late to start tests with partner supplied external (None GPL) drivers.
Comment 1 Karsten Keil 2006-02-02 16:52:41 UTC
Created attachment 66223 [details]
strace of chroot /var/tmp/build-root su - abuild
Comment 2 Michael Schröder 2006-02-02 16:54:51 UTC
Well, I have no time to change the external build at the moment. It needs a lot of work, e.g. package expansion, spec file parsing and so on.

So I'll ignore the "critical".
Comment 3 Karsten Keil 2006-02-03 12:24:36 UTC
OK I found the reason for the su problem, pam_modules was missing and some other packages.
I now have a working build that also compile KMP (patch follows).
I do not think that we need all enhancements (better spec file parsing,
package expansion) now, but we need a solution for partners.
Maybe the patch is enough for the moment.
Comment 4 Karsten Keil 2006-02-03 12:33:06 UTC
Created attachment 66335 [details]
proposed patch

If you accept this patch, I can submit a new package.
Comment 5 Hendrik Vogelsang 2006-02-27 12:07:30 UTC
*** Bug 149389 has been marked as a duplicate of this bug. ***
Comment 6 Michael Schröder 2006-03-17 18:14:26 UTC
The build.rpm from the last beta should work.