Skip to content
Snippets Groups Projects
Commit d9b0a34a authored by Christopher Tate's avatar Christopher Tate
Browse files

Allow system_server to hard link its own files

Specifically, backup of wallpaper imagery needs to use hard links to
achieve "real file" access to the large imagery files without rewriting
the contents all the time just to stage for backup.  They can't be
symlinks because the underlying backup mechanisms refuse to act on
symbolic links for other security reasons.

Bug 25727875

Change-Id: Ic48fba3f94c92a4b16ced27a23646296acf8f3a5
parent 44f40a7e
No related branches found
No related tags found
No related merge requests found
...@@ -292,6 +292,8 @@ allow system_server system_data_file:file relabelfrom; ...@@ -292,6 +292,8 @@ allow system_server system_data_file:file relabelfrom;
allow system_server wallpaper_file:file relabelto; allow system_server wallpaper_file:file relabelto;
allow system_server wallpaper_file:file { rw_file_perms unlink }; allow system_server wallpaper_file:file { rw_file_perms unlink };
# Backup of wallpaper imagery uses temporary hard links to avoid data churn
allow system_server { system_data_file wallpaper_file }:file link;
# ShortcutManager icons # ShortcutManager icons
allow system_server system_data_file:dir relabelfrom; allow system_server system_data_file:dir relabelfrom;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment