hive icon indicating copy to clipboard operation
hive copied to clipboard

Permissive denied output

Open rivella50 opened this issue 2 years ago • 1 comments

I started using the latest prerelease of Hive's v4 in my current Flutter app. Everything works fine so far, but when i access the db in the Android version (emulator and device) i get these messages shown:

W/1.ui    ( 3441): type=1400 audit(0.0:82): avc: denied { getattr } for path="/metadata" dev="vdd1" ino=2 scontext=u:r:untrusted_app:s0:c57,c257,c512,c768 tcontext=u:object_r:metadata_file:s0 tclass=dir permissive=0 app=my.app.id
W/1.ui    ( 3441): type=1400 audit(0.0:83): avc: denied { getattr } for path="/apex/apex-info-list.xml" dev="tmpfs" ino=64 scontext=u:r:untrusted_app:s0:c57,c257,c512,c768 tcontext=u:object_r:apex_info_file:s0 tclass=file permissive=0 app=my.app.id
W/1.ui    ( 3441): type=1400 audit(0.0:84): avc: denied { getattr } for path="/linkerconfig" dev="tmpfs" ino=3 scontext=u:r:untrusted_app:s0:c57,c257,c512,c768 tcontext=u:object_r:linkerconfig_file:s0 tclass=dir permissive=0 app=my.app.id
W/1.ui    ( 3441): type=1400 audit(0.0:85): avc: denied { getattr } for path="/linkerconfig" dev="tmpfs" ino=3 scontext=u:r:untrusted_app:s0:c57,c257,c512,c768 tcontext=u:object_r:linkerconfig_file:s0 tclass=dir permissive=0 app=my.app.id
W/1.ui    ( 3441): type=1400 audit(0.0:86): avc: denied { getattr } for path="/metadata" dev="vdd1" ino=2 scontext=u:r:untrusted_app:s0:c57,c257,c512,c768 tcontext=u:object_r:metadata_file:s0 tclass=dir permissive=0 app=my.app.id

Do i need to change something here or are these lines just informative?

Flutter version: 3.13.3 Hive version: 4.0.0-dev.2

Init Hive in main():

final dir = await getApplicationDocumentsDirectory();
Hive.defaultDirectory = dir.path;

rivella50 avatar Sep 11 '23 07:09 rivella50