]> git.eshelyaron.com Git - emacs.git/commit
Correctly verify availability of Android content URIs
authorPo Lu <luangruo@yahoo.com>
Thu, 18 Apr 2024 02:37:31 +0000 (10:37 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 20 Apr 2024 11:04:36 +0000 (14:04 +0300)
commite289f652cf76c0cd45fe2cad3d19763d5be452dd
treeab28fc4b3a0ebba365d83ca06836b528b30b2d2e
parent8a953d5c65b2f812fad7550fdf538f9ef40c393e
Correctly verify availability of Android content URIs

* java/org/gnu/emacs/EmacsService.java (checkContentUri): Call
checkUriPermission with IPC-effective PID and UID rather than
checkCallingUriPermission, which never considers permissions of
Emacs itself, and delete the now-redundant workaround.

(cherry picked from commit c19b988c2967f13597b7a3ceafb7c3cd40d83458)
java/org/gnu/emacs/EmacsService.java