Windows Vista: attenzione alla Data Redirection

Windows Vista utilizza un compromesso per aumentare la sicurezza del sistema e mantenere al contempo una certa compatibilità con quei programmi che qualcuno definirebbe 'maleducati', che hanno il 'vizio' di andare a scrivere dati in zone delicate come la cartella Program Files.
Come ormai è ben noto, Vista di default avvia i programmi senza pieni diritti da administrator, per cui questi non hanno il permesso di andare a scrivere in queste aree sensibili.

Questa tecnica si chiama Data Redirection (aka Data Virtualization), Igor ne aveva già parlato tempo fa, anche se per un aspetto un po' diverso (non so se in realtà quella cui lui si riferiva fosse proprio la Data Redirection).

In breve, la Data Redirection consiste nel dirottare le operazioni di scrittura effettuate dai programmi in aree 'delicate', come le directory c:\windows o c:\program files, o in chiavi del registry, verso altre zone legate all'utente.
Ad esempio, se un programma residente in una sotto-directory di c:\program files\ prova a scrivere un file di log nella stessa directory in cui risiede l'exe (o in una sotto-directory), il file verrà in realtà scritto in una directory 'gemella' residente in C:\Users\nomeutente\AppData\Local\VirtualStore\Program Files, quindi all'interno dell'area dedicata ai dati dell'utente.
Questa feature è trasparente per l'applicazione, che crederà di andare a scrivere e leggere direttamente in c:\program files.

C'è, però, una particolarità in questa tecnica, che imho può creare un po' di confusione all'utente, se esegue particolari operazioni (come è capitato a me).

I programmi, al momento della compilazione, possono essere contrassegnati con un run level indicante che la Data Redirection non deve essere supportata. Tutti i programmi che vogliono essere certificati compatibili con Windows Vista (e quindi anche i programmi già inclusi nel sistema operativo, come il notepad), devono avere questo flag, ed essere quindi progettati ed eseguibili secondo i prinicipi del 'least privilege', senza ricorrere alla Data Redirection (cioè devono andare a scrivere i dati direttamente nelle aree dedicate, come quella del profilo utente, e non in c:\program files).

La 'confusione' può nascere se con un programma che usa la Data Redirection si va a modificare un file in c:\program files\, e quindi in realtà la modifica verrà salvata in un file in c:\users\, e poi lo si va a riaprire da c:\program files con un programma come il notepad, compilato in modo tale da non usare la Data Redirection: il file che verrà visualizzato dal notepad sarà quello originale realmente presente in c:\program files, e non quello modificato.

Nel mio caso specifico, avevo modificato dei file in c:\program files con WinMerge, effettuando il merge con altri file: riaprendo quei file modificati da tool come WinMerge o Windows Grep, che usano la Data Redirection, vedevo correttamente le modifiche, mentre se lo aprivo con il notepad o con il visual studio vedevo il file originale.
Per apportare effettivamente in c:\program files quelle modifiche, in modo da vederle anche da applicazione come notepad, era sufficiente utilizzare il tool, nel caso specificio WinMerge, eseguendolo con diritti da admin...per il momento li ho semplicemente spostati da c:\users a c:\program files (previo consenso alla UAC!).

Per chi è interessato ad approfondire l'argomento, e altre security features di Vista, ecco un riferimento.

PS: grazie a colui che sul newsgroup mi ha aiutato a capire cosa accadesse realmente...peccato non sappia il nome!

posted @ domenica 4 febbraio 2007 13.37

Print

Comments on this entry:

# re: Windows Vista: attenzione alla Data Redirection

Left by Andre at 17/05/2007 22.37
Gravatar
Ottimo articolo, stavo diventando pazzo a cercare in C:\ la cartella program files senza successo... Sto usando vista da qualche mese ma questi stratagemmi di pseudo sicurezza mi stanno già facendo saltare i nervi, credo che all'amministratore del sistema non dovrebbero essere applicati.

# re: Windows Vista: attenzione alla Data Redirection

Left by Roberto at 26/02/2008 16.13
Gravatar
Bella fregatura!!! Ci sono programmi ministeriali (per esempio quelli catastali) che non supportano ancora questa tecnologia e quindi una volta installati non funzionano perchè in realtà il software è scritto per funzionare in una cartella che si chiama Programmi e non Program file. Come risolvere questo problemuccio?

# re: Windows Vista: attenzione alla Data Redirection

Left by GHIU at 18/12/2008 10.59
Gravatar
Your metin2 yang character begins the game with one free stat point and will receive an additional stat point for every increase in lastchaos gold level.

Equip your last chaos gold weapon and get ready to help save Isya! Hit the “I” key or click the Inventory icon in the lower right portion of the lastchaos gold screen. Your weapon will be in your inventory; right-click to equip fly for fun. To attack a flyff penya monster, double click on it. Mages start with an additional skill – the magic missile spell in their dofus skill bar. Select a monster and right-click on a spell or skill to use dofus kamas. Slain monsters often will drop items, so be sure to pick them up! Some are valuable Warhammer Online gold

# test

Left by http://test.com at 08/01/2010 4.30
Gravatar
ilfeZt1 | <a href="http://test.com" >test</a>

# re: Windows Vista: attenzione alla Data Redirection

Left by CarissaHayden21 at 07/07/2010 16.44
Gravatar
I think that this is no reason to consume valuable time creating the research paper. A lot of students move easier way! They do not compose the freelance essay writing papers by their own. They pay for writing essay at the trustworthy research paper writing service.

# re: Windows Vista: attenzione alla Data Redirection

Left by BerryMyrtle18 at 08/07/2010 20.18
Gravatar
When students want to hear more about this post they must buy essay selecting the essay writing service.

# re: Windows Vista: attenzione alla Data Redirection

Left by CopelandGwendolyn at 12/07/2010 16.53
Gravatar
You have to buy essay and the written essays just about this good post. A kind of great topic! Thanks for this!

# re: Windows Vista: attenzione alla Data Redirection

Left by AlmaGoodwin at 14/07/2010 14.02
Gravatar
I opine that Internet holds no charlatan essay writing services, just because it is monitored by police. And people can be secure ordering example research papers.

# re: Windows Vista: attenzione alla Data Redirection

Left by f at 03/08/2010 11.49
Gravatar
welcome to buy fivefingers kso
Free shipping, cheaper price ,discount
here have other shoes just for you:
fivefingers kso
nike runing shoes
puma shoes
nike acg sandals
Nike Air Max 90
Nike Basketball Shoes
Nike sandals

# re: Windows Vista: attenzione alla Data Redirection

Left by SOPHIE19Cobb at 11/08/2010 21.42
Gravatar
The customers rely on our
resume service cause they are very trustworthy! This company performs resume writing service to fit the precise area of science you wish.

# re: Windows Vista: attenzione alla Data Redirection

Left by EmersonPatricia30 at 21/09/2010 17.53
Gravatar
Start your essay accomplishing and do not get know the way to complete it? You not have to be worried, simply buy editing service in Internet and be sure that your cheap essay writing service essays are accomplished by distinguished writers.

# re: Windows Vista: attenzione alla Data Redirection

Left by SheilaBailey33 at 29/09/2010 14.26
Gravatar
Wow, that’s very infrequent thoughts referring to this topic! Even the Freelance writing work service would not very easy make out with this.

# re: Windows Vista: attenzione alla Data Redirection

Left by MillsChandra35 at 01/10/2010 4.45
Gravatar
Ordinary people don't have all required backgrounds to do seo works. Nonetheless, it is not an issue to cast one's business! The article submission service will surely fix everything!

# re: Windows Vista: attenzione alla Data Redirection

Left by JanieODONNELL33 at 06/10/2010 19.46
Gravatar
When you're in a not good position and have no money to get out from that, you would have to receive the personal loans. Just because it will help you definitely. I take short term loan every time I need and feel fine just because of this.

# re: Windows Vista: attenzione alla Data Redirection

Left by Ed hardy T at 12/11/2010 6.29
Gravatar
For many people choose a good wedding dress is very important, but because the price is expensive bridal gowns, so many people would think cheap weddingdress, an cheap bridalgowns is very beautiful and therefore has cheap bridal gownsis not

# re: Windows Vista: attenzione alla Data Redirection

Left by Pizdacja at 26/04/2011 16.49
Gravatar
Die Kristalle heißen metro pendant und sind 18 mm lang zugleich die Brisuren wahrscheinlich noch mal 18 mm. Dezente Swarovski Ohrhänger in vergoldeten Sterling Silber.

# re: Windows Vista: attenzione alla Data Redirection

Left by forklift at 15/06/2011 9.11
Gravatar

As a leading racking supplier, T racking supply various racking to Australia, UK , Germany, France, South Africa, Egypt..etc. any relative inquiry feel free to send to sales@racking-shelving.com, you can also go to our website http://www.racking-shelving.com to see more detail.


pallet racking china
sales@racking-shelving.com
nice post! very interesting.

http://www.t-racking.com
http://www.racking-shelving.com
http://www.cold-store-equipment.com


racking
shelving
pallet racking
storage racking
storage racks
drive in racking
dexion racking
dexion shelving

# re: Windows Vista: attenzione alla Data Redirection

Left by cherry at 28/06/2011 3.15
Gravatar

For those of you who are purchasing Taps,we realize that this is one of the most important purchasing decisions you will make. You have made the best choice in choosing one of our Bathroom Sink Taps,Kitchen Taps or Shower Taps etc, as they are constructed of the highest grade materials to ensure that your new Taps lasts forever. You can be confident in your purchase as each item comes with a no hassle 30 day return privilege.
Looking for a unique Wedding Dresses for your big wedding? Our online store offers a variety of beautiful A-line Wedding Dresses for brides. Browse now and pick the perfect style!

# re: Windows Vista: attenzione alla Data Redirection

Left by oil painting at 28/06/2011 16.05
Gravatar
oil painting for sale - Discount oil paintings - Handmade oil painting on canvas
Oil paintings and oil painting reproductions at 75% OFF, plus FREE SHIPPING. Find thousands of genuine hand-painted oil paintings on canvas ,cheapst in the world,
we sell impressionist paintings and
monet paintings,We are good at van gogh paintings,best in Mediterranean sea paintings
http://www.wholesale-canvas-art.comfashg4567597

Your comment:



 (will not be displayed)


 
 
 
Please add 1 and 3 and type the answer here:
 

Live Comment Preview: