LWN.net Logo

Allocating uninitialized file blocks

Allocating uninitialized file blocks

Posted Apr 19, 2012 21:22 UTC (Thu) by Fowl (subscriber, #65667)
In reply to: Allocating uninitialized file blocks by intgr
Parent article: Allocating uninitialized file blocks

That would be the SetFileValidData function, which "is useful in very limited scenarios. "

To use it requires the SE_MANAGE_VOLUME_NAME privilege (ie. raw disk access).

"Applications should call SetFileValidData only on files that restrict access to those entities that have SE_MANAGE_VOLUME_NAME access. The application must ensure that the unwritten ranges of the file are never exposed, or security issues can result as follows."

[Something about giving just enough rope to hang yourself / trusting programmers to know what they're doing.]


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds