-
Notifications
You must be signed in to change notification settings - Fork 16
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
VT freezes when running with suid #82
Comments
Run with --log option and attach log. |
@Cloudef I'm going to attach it here since it's not very big (note it contains some of my own debugging messages showing the ioctl it is about to perform, the next one should have been
I also tried changing my kernel to |
That's weird. All that code does is set the TTY to graphics mode. I'll investigate when I get home. |
Thanks! However, when switching VT the whole thing "freezes" (same behaviour as before). New log: https://gist.github.com/neduard/a2e08139d723c0434b81#file-log-when-switching-vt I also tried SysRq-e (SIGTERM to all processes) from orbment but screen just goes black and does not respond anymore: https://gist.github.com/neduard/a2e08139d723c0434b81#file-log-with-sysrq-e-combo |
It sounds like race conditions with the ioctl, there was this sort of bug in some kernel versions. |
I commited the order change, as this has been confirmed by another person. |
This should now be fixed, however see issue #102 |
The VT freezes after I start orbment.
Last messages are:
Doing work on SUID/SGID side and dropping permissions
Running on VT 3
I added some debugging messages in
wlc
source and found last call before freeze isioctl(fd, VT_ACTIVATE, wlc.vt)
inwlc/src/session/tty.c
NOTE: it might be that the call is successful, it's just that after it, the VT freezes.
System still responds to SysRq, however none of
g
,k
,v
,r
,i
SysRq combinations seemed to solve anything.Kernel version: 3.14.36
I should mention I'm running with a custom kernel config, so unless other ideas, I can try using a default one and see if it changes anything.
The text was updated successfully, but these errors were encountered: