On Monday, October 17, 2011 12:06:48 PM Greg KH wrote:
Ah, just realized the error message told me who to email about this.
Ruediger, any ideas about the error below? looks like /var/crash has different permissions between /etc/permissions.local and /etc/permissions.secure (or similar for other permissions.*). This leads to issues when you want to verify the package via "rpm -V $packagename".
So we have to take the file permissions out of the normal verification of rpm and to plug the now opened problem that the permissions for these files/directories would not be checked at all, we have to add measures so that the permissions are checked according to the permission policy in place at the time when the "rpm -V ..." is called. So in the filelist, you can use "%verify(not mode) $filename" and to plug the hole, use --- %verifyscript %verify_permissions -e $filename --- (note that this is not part of %post or any of these but %verifyscript is a section/script by itself). Okay, last step: we want to make sure this file/directory permission does already match the current permission policy after installing the package: in the %post section, we add something like this: ------------------- %post %if 0%{?suse_version} > 1130 %set_permissions $filename %else %run_permissions %endif ------------------- (after 11.3, Ludwig reworked the macros, so that the permissions of this file are set directly instead of the older %run_permissions which actually just called the SuSEconfig.permissions module). To complete the story, please add a "PreReq: permissions" (or for those preferring the newer syntax: "Requires(post): permissions". See also: http://lizards.opensuse.org/2010/11/24/updated-permissions-handling-in-11-4/ http://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25set_perm...
thanks,
greg k-h
On Mon, Oct 17, 2011 at 10:25:52AM -0700, Greg KH wrote:
Hi all,
I'm getting the following build errors when building the filesystem package (needed for the latest udev):
-------------------------------------------------------------------- package: filesystem SuSEconfig.permissions modified files that are not properly handled! this will break rpm -V, ask ro for details. diff for both runs of rpm -V: +.M....... /var/crash --------------------------------------------------------------------
You can see this in the link here: https://build.opensuse.org/package/live_build_log?arch=i586&package=filesyst...
Any ideas of how I can resolve this?
thanks,
greg k-h
-- with kind regards (mit freundlichem Grinsen), Ruediger Oertel (ro@suse.com,ro@suse.de,bugfinder@t-online.de) ------------------------------------------------------------------------- Linux T410Rudi 3.1.0-rc7-3-desktop #1 SMP PREEMPT Wed Sep 28 14:41:36 UTC 2011 (50fb02f) x86_64 Key fingerprint = 17DC 6553 86A7 384B 53C5 CA5C 3CE4 F2E7 23F2 B417 SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org