Blocking mounted drive

Discussion in 'Sandboxie (SBIE Open Source) Plus & Classic' started by n8chavez, Sep 2, 2023.

  1. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,756
    Location:
    Location Unknown
    I am mounting a cloud drive to my system so that I can sync that space with rclone. It will always be m:\. Mounting as a virtual drive is by far the easiest way. As a safety precaution, I want to deny access to it by anything that has access to the internet. What's the easiest way to do that within Sandboxie plus? Is it as simple as ClosedFilePath=m:\ or is there a better way.
     
  2. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,538
    Location:
    Viena
    That should do the trick, better way... perhaps you could add also a wildcard ClosedFilePath=*\server\share\* just to be sure
     
  3. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,756
    Location:
    Location Unknown
    What would the path with a wildcard look like? As far as I know the mount drive is only m:\. So, ClosedFilePath="*\m:\*??
     
    Last edited: Sep 2, 2023
  4. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,538
    Location:
    Viena
    aaaa.... you don't mean a samba share (windows shared folders) but some 3rd party software mounted drive,
    than the internal Nt path will depend on what software that is.
    generally ClosedFilePath=m:\ should be enough

    If you want to find out the NT path of your M:\ drive you can use TaskExplorer's sbie tab there it shows all access rules evaluated for the inspected process

    upload_2023-9-2_9-16-43.png

    but as said just the ClosedFilePath should be enough, we are here diving into the fail safe paranoid total security region.
     
  5. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    508
    @n8chavez

    Code:
    ClosedFilePath=!<BlockNetAccess>,M:\
    If you want a program to be able to access the specified folder, you must define a 'Block' rule for that program in the 'Network Options > Process Restrictions' section.

    Code:
    ProcessGroup=<BlockNetAccess>,program.exe
     
  6. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,756
    Location:
    Location Unknown
    Wait. I'm confused. If I want to allow a program access I have to create a block rule for that program? That makes no sense. It doesn't matter anyway through; I don't want any program to access the mounted drive except rclone. But those kind of restrictions are outside the scope of SBIE as rclone is not run in a box.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.