-
Notifications
You must be signed in to change notification settings - Fork 578
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
(as superuser) in title bar #258
Comments
I don't have time to test it myself right now, but have you tried running That'll return the real, effective, and saved UIDs. All of the listed apps are GTK+ apps, so I suspect either GTK+ or maybe your window manager has some code which is reading one of those values and firejail forgot to reset it. If you want to narrow down the culprit, I'd...
|
Thanks for your suggestions, I played around a little yesterday and here is what I found:
I run Debian Jessie Mate, thus my window manager is Metacity (Marco) 1.8.2. |
If there's a strict correlation between the presence of As for switching the user to root after opening the terminal, the terminal itself still wouldn't be running as root... it'd just be the process running within the terminal which got elevated. A more meaningful question would be whether it'd lose the "(as superuser)" if The next thing I'd suggest is installing a window manager with minimal dependencies like Openbox and then temporarily swapping it in with If Metacity is responsible, the simplest way to identify the solution would be to grab a source tarball for it and grep for "as superuser" to figure out what it's conditional on. Failing that, you could try narrowing down the cause with a few other experiments:
|
I've seen this problem at some point on Debian Wheezy, then something got updated and it totally disappeared. I think it has something to do with the window/desktop manager. |
From Mate running, I executed
I searched the Metacity sources and found the (as superuser) string in core/window-props.c /~https://github.com/GNOME/metacity/blob/master/src/core/window-props.c |
OK, reading upward reveals that it's triggered by Searching reveals A quick Google search reveals that to be part of libgtop and a quick GitHub "This repository" search narrows it down to the file However, I'm having trouble finding the actual definition of that last function. |
Sorry, I don't know if this helps: http://sourcecodebrowser.com/libgtop/2.22.0/procuid_8h.html#aff3a9a5a3afb876e35bad14e850a56e6 |
That definitely helps. It looks like
Unfortunately, |
For me, MATE shows as if programs are running as root. XFCE and KDE, however, don't. |
@Amarildojr KDE 4.14 here and it shows firefox running (as superuser). |
@CrisBRM Yes. I remember running firejail in Debian Jessie and experiencing the same thing. However, I use Arch and thus KDE is on version 5. |
OK, I don't see this any more in current Debian Testing Mate (with Mate 1.14), while the issue is still there in a freshly installed Debian Jessie Mate (with Mate 1.8). Further, I don't see (and have never seen) the superuser titlebar in Debian Jessie KDE, Gnome or Cinnamon. |
I think it will stay in Jessie like that forever. I don't have it either in Mate in Debian testing. |
this issue seems to have reappeared in the latest mate releases |
I can confirm the issue, using Linux Mint Mate 18.2. Just noticed that Firefox was supposedly being ran as superuser when Firejailed. |
A possible explanation for the effect is that programs run in PID namespaces and both the programs and Mate's window manager don't know about it. The PID from inside the sandbox, typically a small number, is used to set _NET_WM_PID, and then probably the window manager checks outside the sandbox if this _NET_WM_PID belongs to the superuser (which it usually does). |
Can confirm it happens in Mint 19.3 MATE as well (MATE 1.22.2) |
@hamishmb It's an issue with Marco, MATE's window manager. |
Question asked by sullybear on Wordpress: I notice that the title bar in firefox shows “(as superuser)” is that normal? Or did I goof a setting?
Reply from netblue30: The sandbox process itself runs as root. The application inside the sandbox runs as a regular user. I don’t know why firefox shows as superuser, “ps aux | grep firefox” reports it as a regular user. I would say is a bug in firefox.
I want to add that I observe the same behavior for other applications as well, i.e. VLC, Audacious, Transmission. In all these cases, the title bar claims that the application is running as root. At the same time, the sandbox appears to work perfectly.
Firejail version 0.9.36
The text was updated successfully, but these errors were encountered: