Skip to content
  • David Edmundson's avatar
    [wayland] Fix sha check of filtered applications · 18a4ded3
    David Edmundson authored
    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
    18a4ded3