isar / isar/hive

Permissive denied output

Open
#1,242 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

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;
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Android warnings with Flutter 3.13.3, Hive 4.0.0-dev.2, and the initialization shown in main(). Check whether the messages occur only when Hive accesses the database and whether they affect behavior; document whether they are harmless or identify the relevant change needed to prevent them.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter
Domain
database, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.