diff options
author | Po Lu <luangruo@yahoo.com> | 2023-08-14 13:15:08 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2023-08-14 13:15:08 +0800 |
commit | 9fb00904f959a7e94cf992acb3a96e78a05e719c (patch) | |
tree | 9b5d11af74a58b42066f3795da87389de1b4a011 /lisp/emacs-lisp | |
parent | 3895f882337ade7744cf7964d9bab5d79d4aa059 (diff) | |
download | emacs-9fb00904f959a7e94cf992acb3a96e78a05e719c.tar.gz emacs-9fb00904f959a7e94cf992acb3a96e78a05e719c.tar.bz2 emacs-9fb00904f959a7e94cf992acb3a96e78a05e719c.zip |
Improve efficiency of checking for access to authority documents
* java/org/gnu/emacs/EmacsService.java (checkContentUri): Take a
string instead of a byte array. Then, use
checkCallingUriPermission, in lieu of opening the file.
* src/android.c (android_check_content_access): Delete unused
function.
(android_init_emacs_service): Adjust for changes to
checkContentUri's signature.
* src/androidvfs.c (android_get_content_name): Return the file
name in a new buffer.
(android_check_content_access): Adjust correspondingly.
(android_authority_name): Verify NAME is a valid JNI string.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions