Skip to content

Commit

Permalink
Library - Doc - Add current session mount option impersonation limita…
Browse files Browse the repository at this point in the history
…tion

#1196
  • Loading branch information
Liryna committed Jan 17, 2024
1 parent 9aa1570 commit abfe10c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dokan/dokan.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ extern "C" {
* \ref DOKAN_OPERATIONS.Mounted parameters will contain the new mount point.
*/
#define DOKAN_OPTION_MOUNT_MANAGER (1 << 6)
/** Mount the drive on current session only */
/**
* Mount the drive on current session only
* Note: As Windows process only have on sessionID which is here used to define what is the current session,
* impersonation will not work if someone attend to mount for a user from another one (like system service).
* See issue #1196
*/
#define DOKAN_OPTION_CURRENT_SESSION (1 << 7)
/** Enable Lockfile/Unlockfile operations. Otherwise Dokan will take care of it */
#define DOKAN_OPTION_FILELOCK_USER_MODE (1 << 8)
Expand Down

0 comments on commit abfe10c

Please sign in to comment.