From: Roland Mainz <roland.mainz@nrubsig.org>
To: cygwin@cygwin.com
Subject: User impersonation in filesystem mini-redirector daemon works with cmd.exe but not Cygwin mintty.exe ?
Date: Wed, 24 Apr 2024 17:09:27 +0200 [thread overview]
Message-ID: <CAKAoaQnKy6XEAx9LUznrczmaESuFTRnbaTxj=Z3SgwiQ9BnjDQ@mail.gmail.com> (raw)
Hi!
----
I'm working right now on a filesystem min-redirector with
CYGWIN_NT-10.0-19045 3.6.0-0.115.g579064bf4d40.x86_64 and noticed a
malfunction.
The mini-rdr userland daemon is running as user "SYSTEM";
"SeImpersonatePrivilege" and
"SeDelegateSessionUserImpersonatePrivilege" are enabled, so user
impersonation is supposed to work...
... but the mini-rdr daemon can NOT do impersonation with requests
from Cygwin mintty.exe or Cygwin/KDE konsole.exe, as it only gets a
process token.
But if I run the same application with cmd.exe, then impersonation in
the min-rdr works and each thread properly gets a thread/impersonation
token.
Does anyone have an idea what might be the difference in this case,
and how I can debug this further ?
----
Bye,
Roland
P.S.: Out of curiosity, I tried this with /usr/bin/newgrp, and in this
case the min-rdr daemon also gets an impersonation token...
--
__ . . __
(o.\ \/ /.o) roland.mainz@nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
reply other threads:[~2024-04-24 15:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKAoaQnKy6XEAx9LUznrczmaESuFTRnbaTxj=Z3SgwiQ9BnjDQ@mail.gmail.com' \
--to=roland.mainz@nrubsig.org \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).