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. Hardware & Devices
  4. How to make a raw PDO device accessible from user mode code in control panel?

How to make a raw PDO device accessible from user mode code in control panel?

Scheduled Pinned Locked Moved Hardware & Devices
helptutorialquestion
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.
  • S Offline
    S Offline
    sinosoidal
    wrote on last edited by
    #1

    Hi, I have a raw pdo device which sample code needs administrative rights in order to work, othwerwise fails with an access denied error. Which SSDL should I use to have it working under user mode code? I have tried SDDL_DEVOBJ_SYS_ALL but this specifies that the code must run as system. I'm trying to put the sample code that right now runs on the console, into a control panel applet. Should the applet run as system? Some help would be really appreaciatted. Thanks, Nuno

    L 1 Reply Last reply
    0
    • S sinosoidal

      Hi, I have a raw pdo device which sample code needs administrative rights in order to work, othwerwise fails with an access denied error. Which SSDL should I use to have it working under user mode code? I have tried SDDL_DEVOBJ_SYS_ALL but this specifies that the code must run as system. I'm trying to put the sample code that right now runs on the console, into a control panel applet. Should the applet run as system? Some help would be really appreaciatted. Thanks, Nuno

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Hi Nuno, What type of raw PDO device are we talking about here? SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_R_RES_R will allow untrusted code to access the device. Some documentation to assist you making your decision: Windows Security Model: What Every Driver Writer Needs to Know[^] Best Wishes, -David Delaune

      S 1 Reply Last reply
      0
      • L Lost User

        Hi Nuno, What type of raw PDO device are we talking about here? SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_R_RES_R will allow untrusted code to access the device. Some documentation to assist you making your decision: Windows Security Model: What Every Driver Writer Needs to Know[^] Best Wishes, -David Delaune

        S Offline
        S Offline
        sinosoidal
        wrote on last edited by
        #3

        Hi, I made it! I have read the document you passed me and decided to create a more open SDDL which I defined as: DECLARE_CONST_UNICODE_STRING( MY_SDDL, L"D:P(A;;GA;;;SY)(A;;GRGWGX;;;BA)(A;;GA;;;WD)" ); And gave to the world GA permissions. My question now is.. what are the implications of having a not so restrictive security options? What are usually the SDDL for custom devices? Thanks, Nuno

        L 1 Reply Last reply
        0
        • S sinosoidal

          Hi, I made it! I have read the document you passed me and decided to create a more open SDDL which I defined as: DECLARE_CONST_UNICODE_STRING( MY_SDDL, L"D:P(A;;GA;;;SY)(A;;GRGWGX;;;BA)(A;;GA;;;WD)" ); And gave to the world GA permissions. My question now is.. what are the implications of having a not so restrictive security options? What are usually the SDDL for custom devices? Thanks, Nuno

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          sinosoidal wrote:

          And gave to the world GA permissions. My question now is.. what are the implications of having a not so restrictive security options?

          What part about World (Everyone) having ALL access do you not understand? Did you read the articles I gave you in this previous response[^]? More specifically the How safe is your device namespace?[^] article which outlines a possible security hole scenario.

          sinosoidal wrote:

          What are usually the SDDL for custom devices?

          Have you tried SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_R_RES_R? "D:P(A;;GA;;;SY)(A;;GRGWGX;;;BA)(A;;GR;;;WD)(A;;GR;;;RC)" Best Wishes, -David Delaune

          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