RPM

Automagic scriptlet deps & RHEL6 perms

Bug #661447 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
Confirmed
Low
Jeff Johnson

Bug Description

RPM uses bash --rpm-requires to generate
    Requires: executable(foo)
dependencies.

Sadly, bash --rpm-requires run as non-root on RHEL6 cannot read
certain files any more:

...
+ cp -pr COPYING CREDITS NEWS README docs/ /X/tmp/buildbot-root/usr/share/doc/buildbot-0.7.12
/bin/bash: line 1: /usr/sbin/groupadd: Permission denied
/bin/bash: line 3: /usr/sbin/useradd: Permission denied
/bin/bash: line 5: /usr/sbin/groupadd: Permission denied
/bin/bash: line 7: /usr/sbin/useradd: Permission denied
...

$ ls -al /usr/sbin/{useradd,groupadd}
-rwxr-x--- 1 root root 47540 Jan 12 2010 /usr/sbin/groupadd
-rwxr-x--- 1 root root 94072 Jan 12 2010 /usr/sbin/useradd

The overall effect is harmless, but one WILL get different dependencies
building as root <-> non-root which is likely surprising.

Jeff Johnson (n3npq)
Changed in rpm:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Jeff Johnson (n3npq)
tags: added: autodeps rpmbuild
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.