Sameer Joshi
2016-12-01 02:13:55 UTC
Hi All,
I want to give access to untrusted app to write to /tmp directory.
This is on top of 6.0 M code.
Denial was following:
[ 151.092299] type=1400 audit(1479910142.370:18): avc: denied { write }
for pid=2947 comm="a.android.flare" name="/" dev="tmpfs" ino=5591
scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:tmpfs:s0
tclass=dir permissive=0
To solve this, I did following in untrusted_app.te ( as per the output
from audit2allow) :
allow untrusted_app tmpfs:dir write;
Even after adding this rule, this denial keeps on appearing again.
Any way to fix this?
Regards,
Sameer Joshi
I want to give access to untrusted app to write to /tmp directory.
This is on top of 6.0 M code.
Denial was following:
[ 151.092299] type=1400 audit(1479910142.370:18): avc: denied { write }
for pid=2947 comm="a.android.flare" name="/" dev="tmpfs" ino=5591
scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:tmpfs:s0
tclass=dir permissive=0
To solve this, I did following in untrusted_app.te ( as per the output
from audit2allow) :
allow untrusted_app tmpfs:dir write;
Even after adding this rule, this denial keeps on appearing again.
Any way to fix this?
Regards,
Sameer Joshi