-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default Saved GID seems to always match utmp group, and confuses GTK's setuid safety check #2072
Comments
@rib - Interesting! I'm a gentoo linux user, not ubuntu, on WSL. I use VcXsrv too and installed gtk+2 but not installed gtk+3. When I ran your test code, I only saw UPDATE: I ran your test code in ubuntu, but could not see the error message but saw
|
Ah, so another important detail is that I'm running under It seems that the test case passes for me too without running under screen but fails if I do. |
@rib - Ah... I saw the error message after launching screen. So, I ran
After command |
@rib - I'm having trouble reproducing this. When I run gvim I'm not seeing the error, and when I run your short test I see the output "OK" Which directory are you running the test out of? |
@benhillis - Did you test it within screen? I had seen the output "OK" on my first test without screen, and then error message with screen after I heard @rib had done it "under screen". |
@sunjoong - ah good call, I missed that in the repro steps. I'll give that a shot! |
I have a fix for this, marking as a duplicate of #962. |
Fixed in 16251. |
Your Windows build number: 10.0.15063
What you're doing and what's happening:
Firstly run VcXsrv X11 server on windows: https://sourceforge.net/projects/vcxsrv/
Then in bash:
results in:
(and it will then run the terminal UI for vim)
This code in
gtk/gtkmain.c
is getting confused:In particular
getresgid
will report a saved GID of 43 - corresponding to the utmp group which results in this code believing that the application has been run with a setuid binary.This code factored out into a standalone test reproduces the issue:
If I run that, I see this output (showing all the uid/gid values being checked):
For now 'm currently compiling the following code into a DSO which I load via LD_PRELOAD to hack around this issue so I can manage to launch the graphical UI for Vim:
E.g. this works:
The text was updated successfully, but these errors were encountered: