LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-04-2009, 03:20 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
I got a question about viruses and the linux filesystem ext4...


1. If there was a file that had a virus/trojan embedded within it that was made to attack ntfs windows operating systems and you downloaded that file onto a linux ext4 filesystem, there would be no effect?

2. Does downloading the file onto an ext4 hard drive clear up the virus? What would happen if you downloaded the virus file onto a linux ext4 hard drive and then onto a windows ntfs partition. Would it then attack the windows ntfs partition?
 
Old 12-04-2009, 03:27 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Viruses do nothing by simple existence in any operating system.

You can download 100,000 viruses into a folder on your hard drive and so long as they're never executed or loaded by whatever means they use to begin execution they are 'safe'.

In the example you give of "If there was a file that had a virus/trojan embedded within it that was made to attack ntfs windows operating systems and you downloaded that file onto a Linux ext4 file system, there would be no effect?" the same virus would have no effect if downloaded onto a ntfs file system until the file it was embedded in was loaded in the correct manner. Simple existence isn't execution. It would likely have no effect in linux for a combination of reasons but none of them have anything to do with the underlying file system and have everything to do with lack of binary compatibility and means of execution.

To the second part of your question, no. Although different file systems store information in a different formats (blocks, extents, etc.) it is still the same data.

(In retrospect there are a few exceptions to that, but they would result in complete corruption of the file and would be rare.)

Last edited by rweaver; 12-04-2009 at 03:46 PM.
 
Old 12-04-2009, 03:30 PM   #3
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
So what would happen in my question 2 where u then execute it on a windows box?
 
Old 12-04-2009, 04:00 PM   #4
pintodragon
LQ Newbie
 
Registered: Dec 2009
Location: New York Mills, NY
Distribution: Slackware, Gentoo, Ubuntu
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by trist007 View Post
So what would happen in my question 2 where u then execute it on a windows box?
The virus would affect ntfs file systems on the windows box if it was run in the architecture it was created for.

In other words if you are in windows and run the virus off of an ext4 file system then yes you would get the virus and it would do its dirty work. If you are in linux and the virus was written for windows then you probably can't execute it without using wine, in which case if you have your ntfs file systems mounted so wine can see them then there is a chance it will affect them.

Bottom line is scan the file and don't run it if you are suspicious of it having a virus.
 
Old 12-06-2009, 09:46 AM   #5
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,351

Rep: Reputation: 62
A virus is a *program*. A program that's made EITHER for Windoze OR for Linux. If you took Windoze code, you couldn't run it on Linux as obviously, the system calls are different, they're 2 different OSes. The main thing I don't know is whether it's possible to access ext4 partitions from Windoze, if so, then if you're running 'doze and it can read the virus code off of the ext4 partition, you could be at risk. Otherwise you're OK (barring Wine).
 
  


Reply


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
Debian grub issue with slackware 13 with ext4 filesystem ......... honeybadger Slackware 14 11-18-2009 04:09 PM
mounting an ext4 filesystem from ext3(or reiser): What do I need? svar Slackware 27 09-19-2009 03:19 PM
support for ext4 filesystem info1686 Programming 2 07-01-2009 12:49 AM
LXer: The Ext4 Filesystem LXer Syndicated Linux News 1 12-25-2008 03:58 PM
LXer: Linux: ext4 Filesystem LXer Syndicated Linux News 0 06-30-2006 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:01 PM.

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