FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 08-12-2011, 01:07 PM
"Simon Matter"
 
Default Wrong directory permissions in RPMs build on CentOS6

Hi,

I have rebuilt all our source RPMs on CentOS 6 and found they sometimes
differ in directory permissions compared to those built on CentOS 3, 4 and
5.
The problem is that %defattr overrides %attr on directories. Have a look
at this example spec file:

--%<---------------------------------
Summary: foo
Name: mini
Version: 0.1
Release: 1%{?dist}
Group: System Environment/Daemons
License: GPLv2+
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description
foo

%prep

%install
%{__install} -d %{buildroot}/XXX

%files
%defattr(0644,root,root,0755)
%attr(0730,root,nobody) %dir /XXX
--%<---------------------------------

The rpm file list build on EL5 looks like this:
drwx-wx--- 2 root nobody 0 Aug 12 14:16 /XXX

The same rebuilt on EL6:
drwxr-xr-x 2 root nobody 0 Aug 12 14:19 /XXX

So the EL6 package seems wrong.

Novell has a BZ entry about this bug:
https://bugzilla.novell.com/show_bug.cgi?id=629048

Now my questions
1) did I miss the obvious?
2) am I the only one seeing this?
3) is this fixed in EL6.1 (can anyone test this on RHEL6.1?)

I've looked up RedHat's bugzilla but couldn't find anything related.

Regards,
Simon

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 12:00 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org