Slashdot Mirror


WinFS - Who Will Actually Use It?

Hel Toupee asks: "Tom's Hardware is running an article about the file system to be employed in Windows Longhorn, the to-be-long-overdue successor to Windows XP. According to the information that the authors could get out of Microsoft, WinFS seems to be little more than an indexing and searching service that sits on top of NTFS or FAT. It is also very flexible and extendable, which, for Microsoft, can mean 'slow' and 'exploitable'. For instance: quite a bit of the inner workings of WinFS rely on XML data tags which can allow 'for instance, that developers will additionally be able to automatically display or execute commands linked to items located by a specific search'. This seems to imply that the new generation of spyware only has to change a bit of XML and it can add entries to your context menus, or open webpages when you click on a file, or, since files can be grouped by content in 'virtual folders', spyware could effectively add entries to these folders, or reorganize your entire filesystem on the fly -- all with slight tweak in some XML file! Am I being paranoid? WinFS seems fairly insecure, and I will not be using it if given a choice. What's your take?"

32 of 106 comments (clear)

  1. My take ? by noselasd · · Score: 5, Insightful

    Well, if WinFS is default, million of users _will_ use it. They don't care or know what's in the bottom. They just use the system that came with the PC. Only the future will tell what this will do to your system,
    after all we weekly encounter new and exciting ways spyware/viruse/worms/etc. screws up windows.

    1. Re:My take ? by Phillup · · Score: 4, Funny

      Sorry, but... in this case, choice is an illusion.

      First it will be the default... then it will be the only choice.

      This is, of course, the optimist in me... the pessimist says that you will be lucky if this is as bad as it gets.

      It could very well be a "transitional" file system. The final file system will actually live on your bank's system... making the movement of money from your account to their's all the more seamless.

      The end goal is to create one massive grid computing system that constantly funnels money from the banks of the world into MS's coffers.

      --

      --Phillip

      Can you say BIRTH TAX
    2. Re:My take ? by Captain+Rotundo · · Score: 2, Insightful

      This is so very true. Every time i sit down at an Internet Explorer users sytem to help them with something, I am shocked they put up with the pop-ups and what not. The problem is they didn't know better, they didnt know to try another browser or a third party blocker. I feel bad for them, they are like people that constantly get ripped off by mechanics because they don't know cars. It's really the sorry state of computer userdom nowadays.

    3. Re:My take ? by Ed+Avis · · Score: 2, Informative

      It's not inherently insecure to allow actions to be associated with shortcuts or add other whizzy things. If the user has write access to the filesystem, why shouldn't the user set up these things for his own files?

      Consider - the window manager I use (icewm) has a menu file saying what programs appear on the start menu. It is possible for a program (including a worm) running as my uid to change that menu so that clicking on 'xterm' runs something else instead. This does not mean icewm is insecure.

      The problem comes from running malware with full user privileges. As long as that happens, the system will be insecure anyway whether or not there are fancy WinFS active content things.

      (However, if WinFS is so stupid as to display active content for files which were created by another user or sent over email, and the design is so stupid as to allow the content full access to the machine, there is certainly a problem. The Acorn RISC OS had a severe security bug of this kind - each application directory (like an appdir on NeXT) had a file !Boot which would be executed merely on _viewing_ the directory listing. Of course this was the ideal vector for viruses.)

      --
      -- Ed Avis ed@membled.com
  2. Take some Ritalin by josephgrossberg · · Score: 4, Funny

    "What's your take?"

    It's too fscking early to say.

    Stop talking out your ass and speculate on something important, like Episode III.

    1. Re:Take some Ritalin by josephgrossberg · · Score: 2, Insightful

      Yeah, since karma is "excellent" and not a number, I might as well do some trolling when I'm in the mood.

    2. Re:Take some Ritalin by BRSloth · · Score: 2, Funny

      Well, I, for one, welcome our new spyware-that-changes-xml-atributes overlords.

    3. Re:Take some Ritalin by MikeCapone · · Score: 2, Funny

      Stop talking out your ass and speculate on something important, like Episode III.

      Speculate? I know it will suck.

  3. Security by Uma+Thurman · · Score: 5, Insightful

    Security isn't my primary worry, at least at first. The indexing data is stored in an SQL database. I've had my share of registry corruption to know that when Microsoft stores a pile of critical information in a centralized database, you'd better keep that database backed up. At the very least, it'd be wise to stay away from the new formats until everyone else has debugged them.

    --
    This is America, damnit. Speak Spanish!
    1. Re:Security by simonecaldana · · Score: 4, Insightful

      Security isn't my primary worry

      and seems it is not a worry for end users too. End users always thinks bad things happens to someone else. That's why a poorly designed security model IS a problem. OTOH, it is an end user problem, something here on slashdot could be used as base for jokes.

  4. Woah, hold on by slubberdegullion · · Score: 4, Insightful

    The programmers at Microsoft are surely aware of these sorts of issues. It might be a good idea to wait until the product is complete before deciding that it's terribly insecure.

  5. Re:Am I being paranoid? by noselasd · · Score: 2, Interesting

    And why on earth can't spyware do any harm if it doesn't have "root" privileges ? What's stopping it from popping up ads ? Or running a mass spamming process ? Deleting all files owned by you ?

  6. Registry by Idealius · · Score: 3, Insightful

    Right now, all spyware has to do is a few simple registry entries to add itself to context menus, startup, Internet Explorer default search engine, etc. What's the difference between a simple reg tweak and a simple XML tweak? Same "exploits", just different interfaces.

  7. are you serious? by pb · · Score: 3, Insightful

    I'm sure I'll be hearing from /. about how all the concepts in WinFS would be wonderful to have... just as soon as we hear something new about Reiser4. Seriously, just adding some extra metadata to a filesystem doesn't have to make it insecure; in fact, in Reiser4, they're doing it to make the filesystem *more* secure.

    Now, I know about MS' track record with security just as well as the next /.'er, but let's wait until WinFS is actually released to start picking it apart, ok? Until then, it's still vaporware, and there's no guarantee that it'll get released in 2005, 2006, or any other time.

    And if it just ends up being a layer on top of NTFS that lets people sort their music and vacation pictures, well, I'm not too worried about it yet. And if it turns out that it's a security risk, then you *turn it off*, or just use FAT32.

    --
    pb Reply or e-mail; don't vaguely moderate.
  8. Bah Apple did it before by Matthias+Wiesmann · · Score: 4, Informative
    Actually, the trick of embedding viruses into the filesystem was done a long time ago (1989) on the Macintosh.

    In the HFS filesystem, a file has two forks, a data fork, that corresponds to the file data in Windows or Unix file-system, and a resource fork, that contained structured data, basically bits of data that had an attached id, name and type.

    Resources were used to store all kinds of stuff. This was very convenient, as you could for instance store the window shape of a text document in the resource fork without affecting the content of the file (data fork). This was also used to store custom icons, text styling without actually affecting the data. You could even use it to embed fonts into word documents.

    The trick is, the OS used resources extensively, an application typically had an empty data fork and lots of resources (icons, pictures, sounds, windows, dialogs), including 68K code segments.

    One Macintosh virus, WDEF, used this mechanism to propagate. What the virus did, was add resource of type WDEF to the database file describing all the icons on the desktop. WDEF resources were window definition code. So when the Finder (file explorer) opened this database file for a given volume, the resource would get loaded and overloaded the default window drawing code, thus enabling the virus to execute and spread.

    1. Re:Bah Apple did it before by Tux2000 · · Score: 4, Informative

      NTFS has "Streams", essentially a more generic case of the HFS. You don't just have two forks, you have a nearly infinite number of forks/streams, with the unnamed stream being the "normal" file. Windows uses this forks for file descriptions and a few other things. But nearly nobody knows this feature. It seems even the virus programmers don't (ab)use it.

      Google found among others this page explaining those streams a little more.

      The most evil thing about streams is that you can only see the default stream using "onboard" tools like "dir" or the Explorer.

      Tux2000

      --
      Denken hilft.
  9. Re:Files are not files anymore by simonecaldana · · Score: 4, Insightful

    I know this could be a shock: Reiserfs4. go check yourself.

    How do we know which part of a 1gb file should lie in memory, and which should not?

    it's not a filesystem matter.

    It's just like a big database where we need good rules of what's good and what's not.

    I, for one, hope that won't be microsoft to choose what's good or bad ;)

  10. Re:Files are not files anymore by aws4y · · Score: 2, Informative

    Ummm.....
    Have you looked at the 2.4+ Linux Kernels. Or for that matter the BSDs or OSX, the fact is that UNIX and its workalikes are perfectly capeable of handling large disk I/O tasks. Especially with Journaling file systems like JFS or XFS, hell even ext3 does a decent job. This is annother example of Microsoft "innovating" in an attempt to beat a proven solution (EX. putting IIS into the Win2003 kernel) The fact remains that a good journaling filesystem, with a swap partition, more than likely is a much safer solution to the problem you describe than turning every thing on the disk into an XML taged .NET object.

    --
    Did Glenn Beck rape and kill a girl in 1990? gb1990.com
  11. Re:Files are not files anymore by ptaff · · Score: 2, Informative
    I know this might be a shock for you Linux users, but it's time to move on: Files are no longer files as we know them.
    Files are still files; the WinFS is a layer above an existing FS.
    Why? Because using normal files is just too slow. E.g. How do we know which part of a 1gb file should lie in memory, and which should not?
    No matter how you call them, files or Objects or whatever concept you like, if a file is 1GiB big you'll have trouble. You might have a 1KiB metadata file describing it, but when you access the real data, the same issues come back.
    This will of course need a better file-handling tool. It's just like a big database
    No, no, no! files are not stored in a database, metadata is. It's a layer.
  12. "and I will not be using it if given a choice" by duffbeer703 · · Score: 4, Insightful

    Solution:

    You will not have a choice.

    --
    Conformity is the jailer of freedom and enemy of growth. -JFK
  13. Nothing to worry about, folks by Txiasaeia · · Score: 4, Insightful

    What do we do now to protect our computer from spyware? Regularly update and run adaware. What will we do with WinFS? Regularly update and run adaware longhorn. No problem. I haven't had spy/adware in freaking years; of course, it helps that I've switched to a superior browser...

    --
    Condemnant quod non intellegunt.
    1. Re:Nothing to worry about, folks by the_truk_stop · · Score: 3, Informative
      I haven't had spy/adware in freaking years; of course, it helps that I've switched to a superior browser...

      I haven't had (spy|ad)ware for years either. My solution is a bit more comprehensive than a browser, however. ;)

  14. Patents by dpilot · · Score: 4, Interesting

    The scary thing about WinFS will be the patent protection.

    We've seen too many patents granted for which there certainly appears to be prior art. Someone else brought up the moniker, "Object Oriented Filesystems," and danced around the concept of single-level-store. That stuff goes back to the old IBM System/38, whose patents have probably expired. (It actually goes back further, but S/38 made it out the door.)

    As others have said, metadata has been on the Apple resource fork since 1984, and OS/2's HPFS had Extended Attributes (OS/2 even had Extended Attributes kludged onto FAT.) prior to 1990. Then you (and others) bring up Reiser4.

    I wonder what the patent filings on WinFS will look like. Reiser4 is obviously "published", but it would be good if there were some way to make the USPTO aware.

    --
    The living have better things to do than to continue hating the dead.
  15. Re:Am I being paranoid? by iantri · · Score: 3, Insightful
    And maybe, for some reason, people would not surf the dangerous web using the administrator account? It's not a Good Thing to do, it is more like a DANGEROUS kernel feature. You don't know if it will do anything, but when it does... it's too late.

    Windows is braindead and inconsistent in this respect. Much software still wants to piss in it's Program Files directory and will refuse to run unless it is run as Administrator.. other programs require it because of sloppy coding.

    You'd think you could set everything in the Program Files directory to be writable by Admin only, but it doesn't work because of this.

    Also, when you install software, it is unpredictable as to what it will do; whether it will put it's icons in the All Users start menu or in the current user's one.

    So, basically, all there is to do is run as Administrator.. the system is nearly unusable otherwise.

  16. Re:Files are not files anymore by aePrime · · Score: 2, Insightful
    I know this might be a shock for you Linux users, but it's time to move on: Files are no longer files as we know them.

    Why? Because using normal files is just too slow. E.g. How do we know which part of a 1gb file should lie in memory, and which should not?

    Actually, for interactive cases this is easier on Linux/Unix than on Windows because of the structure of the *nix inode. It allows for very easy random access of a file, so, like the other example, you can scroll randomly about your 1 gig file in vim without much worry. NTFS, FAT, and FAT32, on the other hand, are good for sequential access (great if you're copying one file to another, I suppose), but it's more difficult to page the file in memory, which, also aforementioned, is not the duty of the filesystem.

  17. Re:Asshat supreme by buchanmilne · · Score: 3, Insightful
    Considering that MSDN has the following to say:

    "For traditional file-based data, such as text documents, audio tracks, and video clips, WinFS is the new Windows file system. Typically, you will store the main data of a file, the file stream, as a file on an NTFS volume. However, whenever you call an API that changes or adds items with NTFS file stream parts, WinFS extracts the metadata from the stream and adds the metadata to the WinFS store. This metadata describes information about the stream, such as its path, plus any information that WinFS can extract from the stream. Depending on file contents, this metadata can be the author (of a document), the genre (of an audio file), keywords (from a PDF file), and more. WinFS synchronizes the NTFS-resident file stream and the WinFS-resident metadata. New Longhorn applications can also choose to store their file streams directly in WinFS. File streams can be accessed using the existing Win32 file system API or the new WinFS API."

    So, it seems that the files themselves are still stored in a filesytem, it's only the metadata that is stored in "WinFS".

    The data itself does *not* live as a blob in a giant database.


    There are so many words for you, but Idiot seems to sum you up the best.


    Nice, call people idiots based on your (most likely) incorrect interpretation of something you haven't seen, or (it seems) researched.
  18. Does not sound like a problem to me by spitzak · · Score: 3, Insightful

    Even from the quick description you gave, it sounds pretty safe to me. Not modifying the underlying file system is IMHO a good idea and mitigates all the paranoia you are having.

    Windows already has the file associations like knowing that clicking a .jpg should run a certain image viewer. This is not done in the file system it is instead done by another program that reads normal files and determines this information from the normal files. Now we all know that those file associations can be mucked with (ie hijacked to run another program) but in fact any such messing with it can be determined by a program reading the setup files, and easily avoided by a program using *less* code to run a program.

    Compare with a worst-case scenario where the system only had a "run this file" command and you could not determine what it did because it was encrypted into the file system (sort of what you really fear WinFS would do). Then somebody hijacking the .jpg extension would be a real and unfixable disaster. But in fact they are avoiding this if your description is at all accurate. This is a *good* thing.

    I do worry about some peoples intentions for meta data. In my opinion meta data should be used *only* as a "cache" of data that could be determined from the file itself. An obvious example is an image preview. But the file type and program should also be figured out using a program like the Unix "file" command and the result cached in the metadata. You could even make schemes by which the author, owner, permissions, date and time, and even filename are considered cached metadata and determined from the file contents. We should not have to rely on the correct transmission of anything other than the "data" bytes and the file length in order for a program using a file to do the correct and predictable thing.

    I am worried that in fact most recent ideas in filesystems are going exactly the wrong way, and in fact Microsoft may be doing this right for a change.

    1. Re:Does not sound like a problem to me by captaineo · · Score: 2, Insightful

      This "cache-only" thing is a good idea. Modern Mac OSX programs handle metadata this way - if a resource fork is present in the file, they use it, otherwise they generate a new one based on the file contents. But there are exceptions. I was bitten because Final Cut Pro 4 does NOT like opening project files that are missing their resource fork. I store files on an NFS server and made a habit of deleting the "._foo" auxillary files that OSX spews all over the place to store resource forks on a UNIX filesystem. Final Cut did not like this...

  19. Re:Am I being paranoid? by Blakey+Rat · · Score: 2, Insightful

    Yeah, I agree with all that, but what I don't agree with is the people who claim this is *Microsoft's* fault.

    I mean, hell, I could easily write an OS X program that tried to store all its data into a system directory and required an administrator account to run... would people suddenly declare that Apple screwed up, or that my program is crap?

    Look at the software Microsoft writes: All of it is perfectly usable as a plain-jane user account, just as it should be. If other software developers wrote software *correctly*, the way Microsoft does, there'd be no problem at all.

    So, in short, the parent post is true entirely... but it doesn't communicate how secure or insecure Microsoft products are because the problem is not *with* the Microsoft products.

  20. Re:Am I being paranoid? by iantri · · Score: 2, Informative
    Additionally (forgot to stick this in my other comment), Microsoft does NOT always create correct software.. see This page on the security requirements for Office 97. To be fair, I don't know if they fixed it for Office 2000, but come on.

    Look at this; It needs full read/write access to C:\Temp, C:\Winnt, C:\Winnt\System, (these ones are already wide-open in a default install), C:\Program Files\Office 97, and a bunch others.

    This makes it basically impossible to secure a Windows box..

  21. WinFS won't bother me much. For a while, at least. by The+Fink · · Score: 2, Insightful
    I have far, far more bothersome issues to worry about between now and whenever WinFS comes out.

    Let's see:

    • It isn't slated for release until late 2005, early 2006.
    • This suggests to me that what we're looking at in the current Longhorn builds is, in effect, early beta software.
    • Microsoft have a long track record of changing their software quite dramatically through the creation process -- a la NT5.
    • I don't particularly plan on upgrading to a Windows OS on my home systems if I can help it anyway. It'd have to have a hell of a lot of "must have" features before I'd consider doing so, since that would require an architectural switch for a lot of my equipment (Mac and Solaris to PC).
    • At work, the IT department can bother with issues involving security/spyware and so on. Of course, the IT department's past history suggests we'll be upgrading to Windows XP about the time that Longhorn is finally released, and that any worms/virii won't be of much concern to them...
    No, I don't think Microsoft will produce a particularly stable or reliable OS, or at least, not one which is much more stable or reliable than what they've released to date. Doubtless there'll be improvements, and doubtless there'll be new features to exploit. There always is, and I dare say always will be.

  22. Re:Asshat supreme by sld126 · · Score: 2, Informative

    Depending on file contents, this metadata can be the author (of a document), the genre (of an audio file), keywords (from a PDF file), and more.

    This sounds exactly like the Desktop Database in Mac OS8/9, with a few extra fields.

    Now, how is this new exactly?

    --
    You're just jealous because the voices only talk to me.