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. File security on NT

File security on NT

Scheduled Pinned Locked Moved C / C++ / MFC
securityhelpquestion
1 Posts 1 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.
  • W Offline
    W Offline
    Waldermort
    wrote on last edited by
    #1

    I'm getting my first taste of the nasty world of NT security issues, so please bare with me if this comes across as one of those newbie questions. It is important that my program is allowed access to every file/folder on a volume. I realise to do this I must add an ACL into the file/folders' DACL. I am able to do this without any problems. But here is the problem, so far I have been adding the looged on users SID to the ACL, storing the old DACL and replacing it on program termination. But, it has come to my attention that this is opening a serious hole in NT's security. If my program does not perform a clean exit, those DACLs will never be replaced, leaving the file/folders' wide open. Is there any other way to do this? Is it possible to add an ACL for my current process and not need to re-adjust the objects security once finished? ie, once the process no longer exists, theoretically the SID would become invalid, would windows perform an auto cleanup? All the examples I have found relate to taking ownership and completely re-writing the security, rather than updating it. Also I have found nothing regarding 'SID of current process'.

    Waldermort

    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