Diffusion KWin 18a4ded30771

[wayland] Fix sha check of filtered applications

Authored by davidedmundson on Nov 6 2019, 1:39 PM.

Description

[wayland] Fix sha check of filtered applications

Summary:
We have a sha check rather than just readlink as an app in a mount
namespace could have an executable with the same path as an exectuable
on the host system that we trust.

This became overly complicated to solve an issue that didn't exist.
sha(/proc/PID/exe) does resolve to what is currently running even if
sha(readlink(/proc/PID/exe) does not as /proc is magic.

This patch compares the root file system as kwin sees it to the running
exe.

See later comments on D22571

Reviewers: fvogt

Reviewed By: fvogt

Subscribers: kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D25169

Details