OT: setrlimit equivalent to prevent unlink or truncate

Johannes Hofmann hofmann at blob.baaderstrasse.com
Fri May 30 10:41:57 PDT 2008


Hi,

I'm wondering whether there is a way to prevent a process to modify 
the file system. setrlimit(RLIMIT_FSIZE) to 0 almost does the trick,
but unfortunately it does not prevent unlink() or truncate().
Is there any reason why there is no limit to prevent unlink or
truncate?

Cheers,
Johannes





More information about the Users mailing list