LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-07-2010, 06:16 AM   #1
Felipe
Member
 
Registered: Oct 2006
Posts: 294

Rep: Reputation: 31
Problem applying patch in RHEL 3.3


Hallo:

I've a problem applying a patch in RHEL 3.3.

In RHEL there is a problema with ACL as can be read in:
https://bugzilla.redhat.com/show_bug.cgi?id=131066

I've downloaded the patch from "Attachments". I try to apply the patch, but I receive this error:

usr/src # patch -p0 < aclPatch.txt
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uNr acl-2.2.3.org/libacl/acl_get_file.c acl-2.2.3/libacl/acl_get_file.c
|--- acl-2.2.3.org/libacl/acl_get_file.c 2002-09-05 08:19:54.000000000 +0900
|+++ acl-2.2.3/libacl/acl_get_file.c 2004-08-25 12:49:58.000000000 +0900
--------------------------
File to patch:


========================================================


It seem that can't find acl_get_file.c, no?
- Where can I download the src file?
- Or what's the problem?

Thanks
 
Old 09-07-2010, 06:26 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
In your system acl package installed or not?

It seems this patch for source which applied on acl source.

You can direct update your package from RHN support.(if you have subscription)
 
Old 09-07-2010, 06:47 AM   #3
Felipe
Member
 
Registered: Oct 2006
Posts: 294

Original Poster
Rep: Reputation: 31
What is installed:

# rpm -qa | grep acl
libacl-devel-2.2.3-1
libacl-2.2.3-1
acl-2.2.3-1

I've also downloaded and installed acl-2.2.3-1.src.rpm
# rpm -Uvhi acl-2.2.3-1.src.rpm
1:acl ########################################### [100%]

But if I look for the file, I can't find it:
cd /usr/src/ ; find . -name "acl_get_file.c"
--> Nothing is found.

- What's wrong?



The problem I've is that now I can't see/modify/delete acl in directories. If I do:
getfacl Dir (or setfacl -b to delete) I receive this error:
acl: Dir: Numerical result out of range


Thanks
 
Old 09-07-2010, 07:16 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
I suggest you call RedHat support center ( After all you are paying for support)


Quote:
But if I look for the file, I can't find it:
cd /usr/src/ ; find . -name "acl_get_file.c"
--> Nothing is found.
Source rpm installed under /usr/src/redhat/ Directory.

source available in /usr/src/redhat/SOURCES directory and in tar file.

what happen when you update your acl package?

Last edited by sem007; 09-07-2010 at 07:21 AM. Reason: add info
 
Old 09-07-2010, 07:33 AM   #5
Felipe
Member
 
Registered: Oct 2006
Posts: 294

Original Poster
Rep: Reputation: 31
What I've in that directory:

# ls -1 /usr/src/redhat/SOURCES/
acl-2.2.3-multilib.patch
acl-2.2.3.src.tar.gz
bonding-1.0.1.tgz

If I change to that directory and apply the patch, I receive the same error:

cd /usr/src/redhat/SOURCES/ ; patch -p0 aclPatch.txt
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uNr acl-2.2.3.org/libacl/acl_get_file.c acl-2.2.3/libacl/acl_get_file.c
|--- acl-2.2.3.org/libacl/acl_get_file.c 2002-09-05 08:19:54.000000000 +0900
|+++ acl-2.2.3/libacl/acl_get_file.c 2004-08-25 12:49:58.000000000 +0900
--------------------------
File to patch:




I've not found a newer acl package for RH3.3. The only I see is the same I've already installed.

- Any other suggestion?

Thanks
 
Old 09-07-2010, 07:56 AM   #6
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
I never done this way before (might be it is not work for you) so first check on test environment and then apply on production server. i haven't older version so here acl version number is changed.


Go to /usr/src/redhat/SOURCES/ and extract source

Code:
# cd /usr/src/redhat/SOURCES/
# cp acl-2.2.3.src.tar.gz acl-2.2.3.src.tar.gz.origin
# tar xvzf acl-2.2.3.src.tar.gz
go in extracted dir. and find file acl_get_file.c. Right now i haven't RedHat 3 version so dir. name might be changed.

Code:
# cd acl-2.2.39/
# find . -iname acl_get_file.c
./libacl/acl_get_file.c
now patch your fie.

Code:
# cd /usr/src/redhat/SOURCES/acl-2.2.39/libacl
# patch -p0 < your_patch_file_location/aclPatch.txt
now create tar file again and recompile source rpm
Code:
# tar xvgf acl-2.2.3.src.tar.gz  acl-2.2.39/*
cd ~
# rpmbuild -ba /usr/src/redhat/SPECS/acl.spec
Build RPMS are stored in /usr/src/redhat/RPMS

I hope this help you.

let us know the status.

Last edited by sem007; 09-07-2010 at 07:58 AM. Reason: add info
 
Old 09-07-2010, 08:25 AM   #7
Felipe
Member
 
Registered: Oct 2006
Posts: 294

Original Poster
Rep: Reputation: 31
Everything has gone fine, except that I go on with the error.

The only way I can reset the acl is creating a new file (/tmp/a) without acl and setting it to the directory

getfacl /tmp/a | setfacl --set-file=- Directory

But as soon as I add a new (and only one) acl, the error appears again. I'm not sure why can be this (only happens with folders I've already set a lot of acl, as if acls were no completely deleted).

Now, I've to leave, but I'll try again next day.

Thanks for your help.
 
Old 09-09-2010, 05:12 PM   #8
Felipe
Member
 
Registered: Oct 2006
Posts: 294

Original Poster
Rep: Reputation: 31
SOLVED: Applying patch ACL in RHEL 3

Finally the problem was solved.

I moved the directories to a partition mounted without acl and moved back again.

Then applied the command setacl and now don't have the problem of range.

Thanks for your help.
 
Old 09-10-2010, 04:27 AM   #9
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
You do know that RHEL 3 is out of Support in October http://www.redhat.com/security/updates/errata/ unless you want to pay extra for Extended? Even then it would only be very limited.
 
  


Reply

Tags
acl, patch, rhel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applying a kernel patch? posix_memalign Linux - Software 1 12-20-2008 05:08 AM
applying cfs patch. dale_chip Linux - General 1 10-03-2007 06:29 AM
applying patch? alaios Linux - General 1 11-29-2004 10:41 AM
applying a patch darthczyz Linux - Newbie 2 05-07-2004 08:44 AM
Applying XFree patch jspaceman Slackware 2 02-12-2004 05:10 PM


All times are GMT -5. The time now is 09:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration