Volume ACL on Vista.

  • Thread starter Jean-Paul Blanc
  • Start date
J

Jean-Paul Blanc

Hi,

I wrote a small program using QueryDosDevice(...) API to get the volume name
associated to an unit name (A:, B:, C: etc.). I, then, use CreateFile(...)
and SetSecurityInfo(...) to modifie the DACL of the volume, so that I can
allow or deny users or groups to acces to the Unit. This is done dynamicaly
by a service detecting the unit arrival.

To be clear, the same thing can be done with :

SetNamedSecurityInfo ("\\\\.\\A:",
SE_FILE_OBJECT,
DACL_SECURITY_INFORMATION|PROTECTED_DACL_SECURITY_INFORMATION,
NULL,
NULL,
paclNew,
NULL);

"\\.\A:" allow to open a volume and not the root of the unit as documented
in API CreateFile(...).

This works well on XP. On Vista it's different. The DACL on volume still
works for CDROM and Floppy, but it's no longer working for disk (removal or
not). On disks the DACL on volume just allow/deny the format.exe or
checkdisk;exe commands.

When i have a look to Microsoft documentation Removable storage device and
Windows Vista support"
(http://www.microsoft.com/whdc/device/storage/remstorperms.mspx) the "File
System Stack" being onthe top of "Volume Manager stack", ACL on Volume
should lock users access. The tool "Device tree V2.19" from OSR company
(http://www.osronline.com/) show the file system driver on the top of the
volume driver.

Sure i miss something. Anybody an explain what ? and how I can progamaticaly
, on Vista give ACL right to volumes. I saw that GPO allows to put default
ACLs on drivers class, is it the way ?

Thanks in advance.

JP
 
H

H Brown

Jean-Paul Blanc said:
Hi,

I wrote a small program using QueryDosDevice(...) API to get the volume
name associated to an unit name (A:, B:, C: etc.). I, then, use
CreateFile(...) and SetSecurityInfo(...) to modifie the DACL of the
volume, so that I can allow or deny users or groups to acces to the Unit.
This is done dynamicaly by a service detecting the unit arrival.

To be clear, the same thing can be done with :

SetNamedSecurityInfo ("\\\\.\\A:",
SE_FILE_OBJECT,

DACL_SECURITY_INFORMATION|PROTECTED_DACL_SECURITY_INFORMATION,
NULL,
NULL,
paclNew,
NULL);

"\\.\A:" allow to open a volume and not the root of the unit as documented
in API CreateFile(...).

This works well on XP. On Vista it's different. The DACL on volume still
works for CDROM and Floppy, but it's no longer working for disk (removal
or not). On disks the DACL on volume just allow/deny the format.exe or
checkdisk;exe commands.

When i have a look to Microsoft documentation Removable storage device and
Windows Vista support"
(http://www.microsoft.com/whdc/device/storage/remstorperms.mspx) the "File
System Stack" being onthe top of "Volume Manager stack", ACL on Volume
should lock users access. The tool "Device tree V2.19" from OSR company
(http://www.osronline.com/) show the file system driver on the top of the
volume driver.

Sure i miss something. Anybody an explain what ? and how I can
progamaticaly , on Vista give ACL right to volumes. I saw that GPO allows
to put default ACLs on drivers class, is it the way ?

Thanks in advance.

JP

Hi, Jean-Paul Blanc
A few things have changed in Windows Vista from how they worked with
Windows XP.
The articles at the links listed below are a must read and will no doubt
answer your question.

The fundamental structure of access control lists (ACLs) has not changed
much for Windows Vista, but there are a number of small yet *important*
changes you need to be aware of.
http://technet.microsoft.com/en-us/magazine/2007.06.acl.aspx

Of course Windows it pro dot com has very good articles that you $hould
find very useful.
http://windowsitpro.com/article/articleid/21924/setting-dacls-the-easy-way.htmlTechNet IT Professional Community is also a good source IT information. http://technet.microsoft.com/en-us/magazine/bb291006.aspxH Brown
 
H

H Brown

H Brown said:
Hi, Jean-Paul Blanc
A few things have changed in Windows Vista from how they worked with
Windows XP.
The articles at the links listed below are a must read and will no doubt
answer your question.

The fundamental structure of access control lists (ACLs) has not changed
much for Windows Vista, but there are a number of small yet *important*
changes you need to be aware of.
http://technet.microsoft.com/en-us/magazine/2007.06.acl.aspx

Of course Windows it pro dot com has very good articles that you $hould
find very useful.
http://windowsitpro.com/article/articleid/21924/setting-dacls-the-easy-way.htmlTechNet
IT Professional Community is also a good source IT information.
http://technet.microsoft.com/en-us/magazine/bb291006.aspxH Brown

Sorry, correction to last line should read
TechNet IT Professional Community is also a good source IT information.
http://technet.microsoft.com/en-us/magazine/bb291006.aspx

H Brown
 
M

MowGreen

bts145 said:
Kindly upload the source code

Apple or tomato 'source' ?


MowGreen
================
*-343-* FDNY
Never Forgotten
================

banthecheck.com
"Security updates should *never* have *non-security content* prechecked
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top