|
-
May 19th, 2008, 12:07 PM
#1
How to stop a program from accessing the file system
I don't want my programs to access the file system at all
means no file creation, no deletion not even the a single stream for accessing files.
how can i do that
-
May 19th, 2008, 12:38 PM
#2
Re: How to stop a program from accessing the file system
It seems you are going to prepare FAQS on "How to restrict a program...."
-
May 19th, 2008, 12:44 PM
#3
Re: How to stop a program from accessing the file system
In interpreted language environments, you often have the option to create a "sandbox" interpreter. However, the actual process still has the same permissions and accesses as any other executable process.
For compiled programs like C++, you have to create that sandbox using features of the OS --which, obviously, is entirely platform-dependent.
On windows, you can control group policy permissions and program access rights.
Good luck.
-
May 19th, 2008, 12:44 PM
#4
Re: How to stop a program from accessing the file system
Err.... Don't write any code that access file?
-
May 19th, 2008, 12:45 PM
#5
Re: How to stop a program from accessing the file system
heheh
no actually i have to check some code in y college
for that i need help
thanks 2 u all 4r helping me
-
May 19th, 2008, 12:49 PM
#6
Re: How to stop a program from accessing the file system
Unique education system! We learnt "how to" and your college asks you to learn "How to prevent".
Pretty advanced!
-
May 19th, 2008, 12:54 PM
#7
Re: How to stop a program from accessing the file system
no they dont want it
i wan it to do that so that it will become easy and even i can learn some thing
-
May 19th, 2008, 12:58 PM
#8
Re: How to stop a program from accessing the file system
But that's not proper way of learning. First learn (if you dont know) how-to do something, then advanced concepts with that, followed by some real world developement.
At codeguru, we offer solutions to some problems (homework assisgments are generally ignored); and not this how NOT to !
-
May 19th, 2008, 01:13 PM
#9
Re: How to stop a program from accessing the file system
Run it on a different machine. Then it'll never be able to touch your filesystem.
Seriously, what possible use would such a restriction be?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|