Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8632257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:19:37+00:00 2026-06-12T09:19:37+00:00

I created a special file system for a very special security application. I create

  • 0

I created a “special file system” for a very special security application.

I create a reparse point using an empty directory. Behind this reparse point is a filter driver, which handels the communication between NTFS and a usermode program, which is doing some encryption/decryption and control work (a mixture between FUSE, TrueCrypt, RamDisc,…). The whole thing is native in C/C++ and works fine unter Win7 x64.

Now I have the nice task to make it work for windwos xp x64 professional. When the whole application is running with admin rights it works fine, but when I switch to user account, I can’t access the mounted directory.

The mounter and the “special file system” (lets name it sfs) are system services and an other app have to run under user account (COM relevant), the mount operation is successfull (when I switch to admin account after mount operation I can access the directory), the other parts of the application works fine too, but the only thing I can’t manage is to get access to this very directory.

I gave the “everyone” and the users group and the specific user all permissions to the driver, the library(link between driver and sfs), the mounter and the special file system and did a lot in the registry too. I also gave this permissions to the mounted dir (all rigths, owner,…) but nothing works.

The debug outprint shows, that the request for the directory or the files inside never comes to to “sfs”. It seems, that the IO-Manager never sends someting to this addres. An other problem is, that I can’t manage to get all the debug outprints from the OS (boot in local debug mode and use DebugView.exe from SysInternals), but thats another story.

What did I miss? What is the difference between the security system of XP and Win7? Are there any basic restrictions in XP which I don’t know?

Please ask if you need snippets of the code.

Any advise or idea is welcome!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:19:38+00:00Added an answer on June 12, 2026 at 9:19 am

    Found it!

    I forgot to set security for the device itselfe!
    What a bad thing not to find this earlier! 🙁

    This is the section in the mount service:

    static VOID GetSecAttr(PSECURITY_ATTRIBUTES SecAttr)
    {
    
       LPTSTR sd = L"D:P(A;;GA;;;SY)(A;;GRGWGX;;;BA)(A;;GRGW;;;WD)(A;;GR;;;RC)";
    
       ZeroMemory(SecAttr, sizeof(SECURITY_ATTRIBUTES));
    
       ConvertStringSecurityDescriptorToSecurityDescriptor(sd, SDDL_REVISION_1, &SecAttr->lpSecurityDescriptor, NULL);
    
       SecAttr->nLength = sizeof(SECURITY_ATTRIBUTES);
       SecAttr->bInheritHandle = TRUE;
    }
    
    static VOID WINAPI ServiceMain(DWORD dwArgc, LPTSTR *lpszArgv)
    {
    
    //... some declarations ...
       SECURITY_ATTRIBUTES sa;
    
    //... some stuff like syncronisation, named pipe and so on...
       GetSecAttr(&sa);
    
       device = CreateFile(
           MY_DEVICE_NAME,
           GENERIC_READ | GENERIC_WRITE,
           FILE_SHARE_READ | FILE_SHARE_WRITE,
           &sa,                //!!! and this was NULL!!!
           OPEN_EXISTING, 
           FILE_FLAG_OVERLAPPED, 
           NULL);
    
       if (device == INVALID_HANDLE_VALUE) {/*...*/}
    }
    

    Thanks to all of you who spent time to help me!

    … and why the hell did this work for Win7 ?!?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a file system when installing a WPF application. Currently
I want to create a .htaccess file in a specific directory. I'm using Notepad++
I created a text editor in C# and I use a special file extension
I'm using the Zend Framework for my website, and just created a special module
I'd like to work with rails-api gem special to create API-only application. To provide
I have a created text file in unix enviroment using java code. For writing
I have to create xml after reading from a datatable, in C# application. This
I've created a control that extends the BoundField control to do some special processing
I need to create a special makefile rule, which is best explained by an
I have to create a special TextFieldUI that draws an image as the background.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.