What happens during an unlink(2)

Daniel R. Levy levy at ttrdc.UUCP
Thu May 8 13:59:34 AEST 1986


In article <438 at ukecc.UUCP>, edward at ukecc.UUCP (Edward C. Bennett) writes:
>In article <238 at chronon.chronon.UUCP>, eric at chronon.UUCP (Eric Black) writes:
>> >	[discussion of what unlink(2) does]
>> Some unitory systems do, indeed, zero out disk blocks when de-allocated,
>> and similarly clear memory when freed.  Any system you sell to customers
>> with concerns about security will require this.  Check out DOD requirements
>> for secure systems in the "Department of Defense Trusted Computer
>> System Evaluation Criteria", publication CSC-STD-001-83 (my copy is
>> dated March 1985) for this and other interesting features...
>> Spooks aren't the only people who might desire disks & memory to be
>> cleansed when released, by the way.
>	You're absolutely right. I never though about that way.
>Edward C. Bennett

Hmmmm.  Maybe there should be an option to 'rm' to cause it to zero out
files before unlinking them?  (like rm -e [for erase], similar to VMS's
DELETE/ERASE)

I don't see however, why it would matter whether memory is zeroed upon
release, as long as it gets zeroed before reallocation by an ordinary user
(and accesses fail, e.g., with a "bus error," if one is trying to read or
write outside of one's allocated range).  After all, if you're the administrator
and can look at the memory contents you can spy on running processes anyway.
-- 
 -------------------------------    Disclaimer:  The views contained herein are
|       dan levy | yvel nad      |  my own and are not at all those of my em-
|         an engihacker @        |  ployer or the administrator of any computer
| at&t computer systems division |  upon which I may hack.
|        skokie, illinois        |
 --------------------------------   Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa,
						vax135}!ttrdc!levy



More information about the Comp.sources.bugs mailing list