LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-02-2004, 03:43 PM   #1
firenze
LQ Newbie
 
Registered: Jun 2004
Location: Rochester, NY
Distribution: Fedora Core 3
Posts: 12

Rep: Reputation: 0
define Exec Shield please


i am having a good time with crossover office and the new winex (cedega). the question i am asking is about exec sheild. i have tried to google it and come up with a semi simple explanation of what it is, but that does not seem to exist. could someone give me a general idea of what exec shield is and what the purpose of it is. also, what are the pros and cons of disabling/enabling it. thank you for your help.

firenze
 
Old 07-03-2004, 05:00 PM   #2
jspaar
Member
 
Registered: Feb 2004
Location: California
Posts: 99

Rep: Reputation: 15
I"m not an expert but I understand the concept and purpose.

It is a security enhancement meant to reduce the risk of buffer-overflow attacks.
When an application loads into memory it contains the code to be run, storage for data, and the stack.
Exec-shield prevents the data and stack areas from being executed.

Buffer-overflow attacks are a sneaky method used by worms and hackers to cause a program to execute code that is passed in as data. (For example, an application might expect the user to give an 8-character response. If the user puts in more than 8 characters and the program doesn't check, then the excess characters have overwritten the stack. This is a buffer overflow.)

On top of that, exec-sheild randomizes the positions of dynamically loaded libraries. This interferes with some legitimate programs which do tricky stuff, like Wine/Crossover.

So is it dangerous to turn it off? It increases the risk, but then again exec-shield wasn't in use until very recently and we all survived. It's probably most useful for multi-user environents and servers, where strangers have access to the machine. For a single-user desktop, if you're generally careful about what you download off the net, it's fairly safe to turn it off. Again, my opinion, not an expert.

Personally, I turn it off when I run WineX, and turn it back on afterwards:
sudo /sbin/sysctl -w kernel/exec-shield=0
run winex or whatever
sudo /sbin/sysctl -w kernel/exec-shield=1

HTH.
 
Old 07-03-2004, 05:22 PM   #3
firenze
LQ Newbie
 
Registered: Jun 2004
Location: Rochester, NY
Distribution: Fedora Core 3
Posts: 12

Original Poster
Rep: Reputation: 0
thank you very much

that was what i needed to know. thank you very much.

firenze
 
  


Reply



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
Raven Shield and Cedega/Wine mikedeatworld Linux - Games 0 06-20-2005 07:21 AM
Raven Shield socks Linux - Games 3 05-10-2005 09:18 AM
Prelink and Exec Shield socks Slackware 1 05-02-2005 07:52 AM
What is Exec Shield in Fedora??? neosap Fedora 1 06-19-2004 11:34 PM
installer shield - text problem hamish Linux - Software 9 10-18-2003 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:04 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration