Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Realtime file-access logging/prevention

Realtime file-access logging/prevention

Scheduled Pinned Locked Moved C / C++ / MFC
helpsecuritytutorialquestionworkspace
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    abiemann
    wrote on last edited by
    #1

    I am starting a new side-project: I would like to scan file access in real-time and deny access if the windows file system wants to access a folder that I have deemed inappropriate. Use Case: whenever the Windows file system (i.e. as directed by my wife) accesses a file, I want to check the path against a list of blocked paths. If the path matches an item in the black-list then I'd like my app to deny access. To enable/disable this security I'll set an environment variable. The problem is that I have no idea how to implement something like this; I've never experimented with real-time file access. I imagine it's pretty low-level. Does anyone have any pointers to help me learn about real-time file access ? Is it even possible ?

    L 1 Reply Last reply
    0
    • A abiemann

      I am starting a new side-project: I would like to scan file access in real-time and deny access if the windows file system wants to access a folder that I have deemed inappropriate. Use Case: whenever the Windows file system (i.e. as directed by my wife) accesses a file, I want to check the path against a list of blocked paths. If the path matches an item in the black-list then I'd like my app to deny access. To enable/disable this security I'll set an environment variable. The problem is that I have no idea how to implement something like this; I've never experimented with real-time file access. I imagine it's pretty low-level. Does anyone have any pointers to help me learn about real-time file access ? Is it even possible ?

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      abiemann wrote:

      Does anyone have any pointers

      Right click on the file and select "Properties". In the Properties Dialog select the "Security" tab and set the User/Permissions however you want.

      led mike

      A 1 Reply Last reply
      0
      • L led mike

        abiemann wrote:

        Does anyone have any pointers

        Right click on the file and select "Properties". In the Properties Dialog select the "Security" tab and set the User/Permissions however you want.

        led mike

        A Offline
        A Offline
        abiemann
        wrote on last edited by
        #3

        right, but we don't use log-in accounts on the PCs at home; our WinXP PCs default to an Administrator account when booting up to Windows.

        L 1 Reply Last reply
        0
        • A abiemann

          right, but we don't use log-in accounts on the PCs at home; our WinXP PCs default to an Administrator account when booting up to Windows.

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          abiemann wrote:

          right, but we don't use log-in accounts on the PCs at home;

          So I guess you want me to reply with the obvious: "Then set them up and start using them". Well I'm not going to. ;P

          led mike

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups