OSDN Git Service

Avoid SElinux denial accessing SIM card lock
authorHemanth kumar B <hemanthkumar.b2@sonymobile.com>
Fri, 6 Feb 2015 10:13:26 +0000 (11:13 +0100)
committerJohan Redestig <johan.redestig@sonymobile.com>
Sun, 10 May 2015 15:21:35 +0000 (17:21 +0200)
commitbef7221a7dc1a5827903e62bf3b02a42e52f5066
tree041a6400de3c438260c03b8d1dc2b958209ca0cc
parenta6867f55e5a46eda1013e466a7bb5676fcebe67e
Avoid SElinux denial accessing SIM card lock

This change avoids the following SELinux denial:

  W/SharedPreferenc(28238): type=1400 audit(0.0:8): avc: denied\
  { search } for name="com.android.settings" dev="mmcblk0p25"\
  ino=8209 scontext=u:r:radio:s0 tcontext=u:object_r:system_app\
  _data_file:s0 tclass=dir op_res=-13 ppid=318 pcomm="main"\
  tgid=1850 tgcomm="m.android.phone"

When accessing Settings->Security->Set up SIM card lock.

There is really no need to store this information in
SharedPreferences anyway.

Change-Id: I3ba30d5d5e2c5b3c379397fbb06325101acaf490
res/xml/sim_lock_settings.xml