Bug 233906
| Summary: | pm-utils: unowned directories | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Michael Schwendt <bugs.michael> |
| Component: | pm-utils | Assignee: | Phil Knirsch <pknirsch> |
| Status: | CLOSED RAWHIDE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | mclasen, opensource, rvokal |
| Target Milestone: | --- | Keywords: | EasyFix, Reopened |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2007-08-30 16:53:26 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 226302 | ||
|
Description
Michael Schwendt
2007-03-25 18:11:39 UTC
*** Bug 239600 has been marked as a duplicate of this bug. *** committed to cvs for devel You must not own /usr/lib, but /usr/lib/pm-utils
With %dir %{_exec_prefix}/lib/pm-utils/
or by including the directory recursively:
--- pm-utils.spec.~1.70.~ 2007-08-30 17:53:43.000000000 +0200
+++ pm-utils.spec 2007-08-30 18:30:00.000000000 +0200
@@ -144,12 +144,7 @@
%{_sysconfdir}/pm/
%{_sysconfdir}/security/console.apps/*
%{_sysconfdir}/pam.d/*
-%dir %{_exec_prefix}/lib/
-%{_exec_prefix}/lib/pm-utils/bin/*
-%{_exec_prefix}/lib/pm-utils/defaults
-%{_exec_prefix}/lib/pm-utils/functions
-%{_exec_prefix}/lib/pm-utils/power.d/*
-%{_exec_prefix}/lib/pm-utils/sleep.d/*
+%{_exec_prefix}/lib/pm-utils/
%{_bindir}/*
%{_sbindir}/pm-hibernate
%{_sbindir}/pm-powersave
And, of course, all these directories are unowned:
/etc/pm
/usr/lib/pm-utils
/usr/lib/pm-utils/bin
/usr/lib/pm-utils/sleep.d
/usr/lib/pm-utils/power.d
So, above patch plus
%dir %{_sysconfdir}/pm
are the full fix. Without the patch you would need:
%dir /etc/pm
%dir /usr/lib/pm-utils
%dir /usr/lib/pm-utils/bin
%dir /usr/lib/pm-utils/sleep.d
%dir /usr/lib/pm-utils/power.d
Query "rpm -qlvp pm-utils*.i386.rpm" and check the directory entries.
(In reply to comment #3) > You must not own /usr/lib, but /usr/lib/pm-utils oh, yes, I somehow forgot to add pm-utils in the regarding line. I now commited changes to cvs that should be correct. $ rpm -qlvp pm-utils-0.99.3-12.fc8.i386.rpm | egrep ^d drwxr-xr-x 2 root root 0 Aug 30 18:41 /etc/pm drwxr-xr-x 2 root root 0 Aug 30 18:41 /etc/pm/config.d drwxr-xr-x 2 root root 0 Aug 30 18:41 /etc/pm/power.d drwxr-xr-x 2 root root 0 Aug 30 18:41 /etc/pm/sleep.d drwxr-xr-x 2 root root 0 Aug 30 18:41 /usr/lib/pm-utils drwxr-xr-x 2 root root 0 Aug 30 18:42 /usr/lib/pm-utils/bin drwxr-xr-x 2 root root 0 Aug 30 18:41 /usr/lib/pm-utils/power.d drwxr-xr-x 2 root root 0 Aug 30 18:41 /usr/lib/pm-utils/sleep.d > %dir %{_exec_prefix}/lib/pm-utils/
> %{_exec_prefix}/lib/pm-utils/bin/
> %{_exec_prefix}/lib/pm-utils/defaults
> %{_exec_prefix}/lib/pm-utils/functions
> %{_exec_prefix}/lib/pm-utils/power.d/
> %{_exec_prefix}/lib/pm-utils/sleep.d/
Well, if the package ever wanted to put files directly into
%{_exec_prefix}/lib/pm-utils/ you would need to rewrite above
lines again.
(In reply to comment #6) > Well, if the package ever wanted to put files directly into > %{_exec_prefix}/lib/pm-utils/ you would need to rewrite above > lines again. I only have to add them, e.g. > %{_exec_prefix}/lib/pm-utils/defaults > %{_exec_prefix}/lib/pm-utils/functions are already files. |