Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4bed0e1 authored by griffin98's avatar griffin98
Browse files

Rework Sepolicy

This will allow eDrive app to backup and restore System Settings and System App data files.
parent f6963e69
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -4,8 +4,7 @@ app_domain(edrive_app)
net_domain(edrive_app)

# Read and write app data files
allow edrive_app app_data_file:file { read write getattr };
allow edrive_app app_data_file:file rw_file_perms;

# Read and write system app data files passed over Binder.
allow edrive_app system_app_data_file:file { read write getattr };
allow edrive_app system_data_file:file { read getattr };
allow edrive_app system_app_data_file:file rw_file_perms;
+4 −0
Original line number Diff line number Diff line
# For the updaters
allow system_app cache_recovery_file:dir {add_name rw_file_perms};
allow system_app cache_recovery_file:file {create rw_file_perms};

# For Some /e/ Apps
allow system_app system_data_file:file { open rw_file_perms };
allow system_app system_data_file:dir { create rw_dir_perms setattr unlink };