Lurker News
Looking at syscalls, I see Zoom desktop reads all processes and arguments.

    [pid 3844872] stat("/proc/1", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 3844872] openat(AT_FDCWD, "/proc/1/stat", O_RDONLY) = 4
    [pid 3844872] openat(AT_FDCWD, "/proc/1/cmdline", O_RDONLY) = 4
    [pid 3844872] readlink("/proc/1/exe", 0x20c0520, 1024) = -1 EACCES (Permission denied)
    [pid 3844872] stat("/proc/2", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 3844872] openat(AT_FDCWD, "/proc/2/stat", O_RDONLY) = 4
    [pid 3844872] openat(AT_FDCWD, "/proc/2/cmdline", O_RDONLY) = 4
    [pid 3844872] stat("/proc/3", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 3844872] openat(AT_FDCWD, "/proc/3/stat", O_RDONLY) = 4
    [pid 3844872] openat(AT_FDCWD, "/proc/3/cmdline", O_RDONLY) = 4
    ...
Why would it do that? Is there any way to prevent it?

Comments (263) 39 threads

Show all comments

Showing thread 9 of 39

wins327674 replies#
If I had to guess it's for screen sharing.
sithadmin2 replies#
This. It enables single-app share, instead of just capturing entire displays.
akira25011 reply#
Unless I'm missing something.. all of the required information is available through the X11 protocol. Reading the command lines of the processes is unnecessary and provides data that isn't useful in the window sharing context.
jraph2 replies#
This would not work on Wayland, though.
bonzini#
Wayland is even more strict, you ask it for screen sharing and it gives you the stream. If the compositor doesn't support screen sharing you're out of luck, there's just no way to read the contents of a window.

With X11 if the window manager doesn't have the relevant support you can always ask the server.

mnd999#
Zoom doesn’t support screen sharing on Wayland, except through some propriety Gnome API. It also doesn’t run at all for me on sway, just crashes at startup.
yjftsjthsd-h#
How would that work? I would expect it to enumerate X clients, not PIDs
_sgianelli1 reply#
If so that seems like a great place for someone like Apple or Microsoft to offer an API to bolster security and privacy
thephyber2 replies#
OS X already requires that the user open Settings and give the app elevated permissions to be able to share the screen.

One can argue about the granularity, but you can’t argue that Apple hasn’t already done something.

uoaei5 replies#
"Doing something" seems like a really low bar when that "something" is basically useless for the intended use case.

Continue this thread — 5 replies

_sgianelli#
Oh I don't mean to say they haven't done anything, they certainly have. I'm more wondering if there is a system-level privacy feature that they could provide (enforce?) where the system provides a screen share stream handle to only a selected window, similar to the Selected Photos functionality in iOS today.
tyingq#
Enumerating window handles and titles would be more suited to that. It will need that anyway to share the window. On a multi-user system, it could see processes attached to displays it has no access to.
puttycat1 reply#
How come the OS doesn't provide the list instead of each app enumerating all the proecesses itself?
formerly_proven#
You're looking at the API.

Also, screen-sharing can't be the reason, because X windows don't have anything to do with processes on the machine.