Ted Lin
9c59b398db
Remove the tracking for vendor_battery_defender am: 4b75aab4b8
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17342324
Change-Id: If643013008f26e6c890d9a43f2d7c4ef177eac68
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 02:02:52 +00:00
Ted Lin
4b75aab4b8
Remove the tracking for vendor_battery_defender
...
The function is disabled.
Bug: 221384939
Test: adb bugreport
Change-Id: If8e8b8165329eb9ede86cb62f419a8cf06abb536
Signed-off-by: Ted Lin <tedlin@google.com>
2022-03-25 01:37:03 +00:00
Chris Kuiper
f5453f84aa
Add rules to allow Sensor HAL write access to als_table am: 967571ee60
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17368888
Change-Id: I8ddfebc5b8febe09cb48cb58f7f2ed9ee74386d8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 00:21:03 +00:00
Chris Kuiper
967571ee60
Add rules to allow Sensor HAL write access to als_table
...
Sensor HAL needs write access to
/sys/class/backlight/panel0-backlight/als_table.
Bug: 226435017
Test: Observing logs
Change-Id: Idb592d601b92c6814493e0d28384e1013935b72f
2022-03-25 00:00:19 +00:00
chungkai
9bff8c59b6
sched: move sysfs to procfs am: 4fa67857c3
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17346963
Change-Id: Ib855e5bdf15d24defa55f3b548144fd31ed96ecb
2022-03-24 18:16:44 +00:00
chungkai
4fa67857c3
sched: move sysfs to procfs
...
Modify name from sysfs_vendor_sched to proc_vendor_sched
Test: without avc denial
Bug: 216207007
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I96dc6eb76dd533ff6fd54c27be7e4bc32bf5dbc7
2022-03-24 17:44:37 +00:00
Holmes Chou
15a914dbc1
camera: use codename for camera modules am: e0b06b9cbd
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17071590
Change-Id: Ibb0e4a61baff6e2d9e405afdb29494a0263e1559
2022-03-24 13:38:18 +00:00
Holmes Chou
e0b06b9cbd
camera: use codename for camera modules
...
use codename for camera modules
Bug: 209866857
Test: GCA, adb logcat
Change-Id: I55f6998d18a904c83ecdf328d1b0e5ca6a01427f
2022-03-24 13:11:16 +00:00
Ted Lin
213dd940ff
hal_health_default: Fix avc denials am: 0adad90ab6
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17342323
Change-Id: I8f57a0ab56e2d11109c6a65084983499ab1bd787
2022-03-24 05:53:09 +00:00
Ted Lin
0adad90ab6
hal_health_default: Fix avc denials
...
12-02 11:15:45.224 756 756 I health@2.1-serv: type=1400 audit(0.0:2270): avc: denied { search } for name="thermal" dev="tmpfs" ino=1028 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:thermal_link_device:s0 tclass=dir permissive=1
12-02 11:15:45.224 756 756 I health@2.1-serv: type=1400 audit(0.0:2271): avc: denied { search } for name="thermal" dev="sysfs" ino=16790 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs_thermal:s0 tclass=dir permissive=1
12-02 11:15:45.224 756 756 I health@2.1-serv: type=1400 audit(0.0:2273): avc: denied { open } for path="/sys/devices/virtual/thermal/thermal_zone13/mode" dev="sysfs" ino=17285 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs_thermal:s0 tclass=file permissive=1
12-02 11:15:45.224 756 756 I health@2.1-serv: type=1400 audit(0.0:2272): avc: denied { write } for name="mode" dev="sysfs" ino=17285 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs_thermal:s0 tclass=file permissive=1
Bug:208721638
Test: adb bugreport
Change-Id: I4d9491862ff1bcc88f89b1478497ac569e3d1df1
Signed-off-by: Ted Lin <tedlin@google.com>
(cherry picked from commit 5b6a5292c3
)
2022-03-24 05:26:09 +00:00
Adam Shih
fcae230ef4
enforce debugfs constraint on userdebug build am: de2696eb72
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17342326
Change-Id: I2008bde5b787053f818a58452f629e5bee8e8ced
2022-03-24 04:12:13 +00:00
Adam Shih
de2696eb72
enforce debugfs constraint on userdebug build
...
Bug: 225815474
Test: build pass
Change-Id: If9e32d4b67c342b56eea39701518a520a62df199
2022-03-24 01:05:18 +00:00
Yabin Cui
f387f3dcd3
Add SOC specific ETM sysfs paths am: 02c1ef8b85
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17324045
Change-Id: I0e5889c043eaea6827d91423c3adfc14073ea289
2022-03-23 20:07:38 +00:00
Yabin Cui
02c1ef8b85
Add SOC specific ETM sysfs paths
...
Bug: 225403280
Test: run profcollectd on c10
Change-Id: I10c8d250cf88b371ee573561d6678fc24f4e440c
Merged-In: I10c8d250cf88b371ee573561d6678fc24f4e440c
2022-03-23 19:45:48 +00:00
George Lee
8e5d012c72
health: Grant sysfs_thermal access to health am: 17981f9fc0
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17312309
Change-Id: I88cc6908a9d5062b815f077b8e6c9cb38067d1ce
2022-03-23 05:33:21 +00:00
SalmaxChang
13a0910c39
modem_svc_sit: fix avc error am: ae6f085676
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17314904
Change-Id: I3ae7e26013ec250818fee64adedf5e0b568e50c7
2022-03-23 05:33:06 +00:00
SalmaxChang
a40641f2da
vendor_init: fix avc error am: 6dd3de7813
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17291644
Change-Id: I58b4e5d1a0bf09666a0f852f2567605ca021cc1a
2022-03-23 05:33:01 +00:00
George Lee
17981f9fc0
health: Grant sysfs_thermal access to health
...
health-service has trouble accessing /dev/thermal. This change fixes
this.
Bug: 226009696
Test: dev/thermal/tz-by-name/soc/mode error:Permission denied no longer
exist
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I8d112cb12f3aeb1c8d5433ca69415d0413f070a2
Merged-In: I4d9491862ff1bcc88f89b1478497ac569e3d1df1
2022-03-23 05:30:33 +00:00
SalmaxChang
ae6f085676
modem_svc_sit: fix avc error
...
avc: denied { write } for comm="modem_svc_sit" name="modem_stat" dev="dm-46" ino=333 scontext=u:r:modem_svc_sit:s0 tcontext=u:object_r:vendor_data_file:s0 tclass=dir permissive=0
Bug: 225149029
Change-Id: Id1045d9488a200b6c64abbe02cf5e65926ba0203
2022-03-23 05:13:29 +00:00
SalmaxChang
6dd3de7813
vendor_init: fix avc error
...
avc: denied { getattr } for comm="init" name="/" dev="sda19" ino=2 scontext=u:r:vendor_init:s0 tcontext=u:object_r:modem_img_file:s0 tclass=filesystem permissive=0
Bug: 225151104
Change-Id: I508aa6b85039edc4b5a8746aaa602f1131768630
2022-03-22 07:57:59 +00:00
Kris Chen
3d1c17ffd7
Allow hal_fingerprint_default to access fwk_sensor_hwservice am: 997b8974ef
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17288686
Change-Id: If57f3542180e8e0af17351c50415a8bab57306e5
2022-03-22 03:59:58 +00:00
Kris Chen
997b8974ef
Allow hal_fingerprint_default to access fwk_sensor_hwservice
...
Fix the following avc denial:
avc: denied { find } for interface=android.frameworks.sensorservice::ISensorManager sid=u:r:hal_fingerprint_default:s0 pid=1258 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:fwk_sensor_hwservice:s0 tclass=hwservice_manager permissive=0
Bug: 197789721
Test: build and test fingerprint on device.
Change-Id: I7494f28e69e5a1b660dc7fbaa528b1088048723b
(cherry picked from commit 9b54bf3665abce7a6f5f5df22069a8ef081ad80e)
2022-03-22 03:39:35 +00:00
Peter Csaszar
0b35cf6a3b
pixel-selinux: Port PRO SJTAG policies to tm-dev am: 466adbb2da
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17299051
Change-Id: If1cc0d3afa539a104b2ad99b9bebdc18c98bd622
2022-03-22 03:30:37 +00:00
Roshan Pius
d8a25b0f0c
gs-policy: Remove obsolete uwb vendor service rules am: 046601d414
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17294749
Change-Id: If87ae2d622842f33f4d71568fcf8918847762ee3
2022-03-22 03:30:17 +00:00
Peter Csaszar
466adbb2da
pixel-selinux: Port PRO SJTAG policies to tm-dev
...
These are the SELinux policies for the sysfs files of the SJTAG
kernel interface for WHI-PRO-based devices, now migrated to the
tm-dev branch. The files are in the following directories:
/sys/devices/platform/sjtag_ap/interface/
/sys/devices/platform/sjtag_gsa/interface/
Bug: 207571417
Bug: 224022297
Signed-off-by: Peter Csaszar <pcsaszar@google.com>
Merged-in: I5ec50d9ff7cd0e08ade7acce21e73751e93a0aff
Change-Id: I56da5763c31ab098859cbc633660897646fe7f3e
2022-03-22 03:17:40 +00:00
Roshan Pius
046601d414
gs-policy: Remove obsolete uwb vendor service rules
...
This service no longer exists in the UCI stack.
Bug: 186585880
Test: Manual UWB tests
Change-Id: I279824be6f51470364ad61833b797aa23cbea859
2022-03-21 09:18:28 -07:00
Sam Dubey
c84e42d3c9
Temporarily don't audit init for modem_img_file am: b92095e322
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17268031
Change-Id: Ib2e377cc811fb8f4a589fb184b8c0dd12bf8be2b
2022-03-21 08:43:21 +00:00
Sam Dubey
b92095e322
Temporarily don't audit init for modem_img_file
...
Change-Id: I2c9c788119b20b8a37e71a971997f16a7fe6165b
Fix: 225279974
2022-03-21 04:42:13 +00:00
yixuanjiang
5143119a16
audio: sync aocdump setting from gs101 am: 9206ceb227
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17248005
Change-Id: Id7c3c9f2606fe13023a72744230adc6c7ebcc66b
2022-03-21 02:26:21 +00:00
yixuanjiang
9206ceb227
audio: sync aocdump setting from gs101
...
Bug: 225309469
Test: local
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
Change-Id: Ia9be16c74de666c945d76ca514423b030c0f90d0
2022-03-21 02:08:55 +00:00
Mason Wang
ae166c90eb
vendor_init: Fix touch avc denial of high_sensitivity.[DO NOT MERGE] am: 296823785d
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17229066
Change-Id: I5fd10c80b5a1911818334615c4c900b858a4dae7
2022-03-18 06:22:19 +00:00
Mason Wang
296823785d
vendor_init: Fix touch avc denial of high_sensitivity.[DO NOT MERGE]
...
Fixed following avc denial:
avc: denied { write } for name="high_sensitivity" dev="proc" ino=4026534550 scontext=u:r:vendor_init:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=1
//The file node is proc/focaltech_touch/high_sensitivity
Bug: 199105136
Test: Verify pass by checking device log are w/o above errors while
switching setting/display/increase touch sensitivity.
Change-Id: I8dbe4190056767407413082580320593292725fe
2022-03-17 10:01:37 +00:00
George Lee
6548900ffe
health: Add sysfs_thermal access am: 2cc598cc9b
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17164869
Change-Id: I92b98ee674757c4f68ea5626bff3ac9e18d9df93
2022-03-17 05:27:52 +00:00
George Lee
2cc598cc9b
health: Add sysfs_thermal access
...
health-service has trouble accessing /dev/thermal. This change fixes
this.
Bug: 223928339
Test: dev/thermal/tz-by-name/soc/mode error:Permission denied no longer
exist
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I6077e841d179b6cda50d578e584dd249ce970db0
2022-03-17 04:55:59 +00:00
Adam Shih
66f8cc7ba0
reject mnt_vendor_file access in user ROM am: bedd866505
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17213986
Change-Id: Id9efbf8949047e65c36ccf33a465189aa3be6302
2022-03-16 09:29:29 +00:00
Adam Shih
bedd866505
reject mnt_vendor_file access in user ROM
...
Bug: 224429437
Test: android.security.cts.SELinuxHostTest#testNoBugreportDenials
Change-Id: I318f11866f7b9c6cc0b7ecf151f789f35ab290cd
2022-03-16 14:08:09 +08:00
Denny cy Lee
cf97709e3e
Sepolicy: add pixelstats/HardwareInfo sepolicy am: 38c2803c54
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17118585
Change-Id: I4188f44a34d19106ddfa4664d38e0950a4d9dcfc
2022-03-15 03:16:24 +00:00
Darren Hsu
ef2662e4b8
sepolicy: reorder genfs labels for system suspend am: 6d25430600
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17149073
Change-Id: I1d560b9316d343a6354704b1602643880fd20882
2022-03-15 03:15:39 +00:00
Denny cy Lee
38c2803c54
Sepolicy: add pixelstats/HardwareInfo sepolicy
...
avc denials to fix (after apply ag/17120763)
[ 50.171564] type=1400 audit(1647222380.884:28): avc: denied { read } for comm="pixelstats-vend" name="battery_history" dev="tmpfs" ino=639 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0
[ 54.519375] type=1400 audit(1647222385.228:29): avc: denied { read } for comm="id.hardwareinfo" name="battery_history" dev="tmpfs" ino=639 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0 app=com.google.android.hardwareinfo
Bug: 222019890
Test: manually check debug logcat
Change-Id: I0e4f3f3a66783383b0d1327cec4dcd145ae9a7af
2022-03-15 03:09:18 +00:00
Darren Hsu
6d25430600
sepolicy: reorder genfs labels for system suspend
...
Bug: 223683748
Test: check bugreport without relevant avc denials
Change-Id: I295d3dfb96cc87e8faaf16f949918445cc3a0d44
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-03-15 02:52:48 +00:00
Roshan Pius
54840dce7d
gs-sepolicy(uwb): Changes for new UCI stack am: c5710ad18e
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17002833
Change-Id: Ie20b0208354b16ebd1da8b5334836fad50adbe1a
2022-03-14 16:40:52 +00:00
Roshan Pius
b27000aab9
gs-sepolicy(uwb): Allow uwb hal permission to net_admin am: 5ddc8be4f4
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17092573
Change-Id: Ie187d9ecdea4c00c4f08bd2d1dea82ce3ffd9a5e
2022-03-14 16:40:40 +00:00
Roshan Pius
c5710ad18e
gs-sepolicy(uwb): Changes for new UCI stack
...
1. Rename uwb vendor app.
2. Rename uwb vendor HAL binary name & service name.
3. Allow vendor HAL to host the AOSP UWB HAL service.
4. Allow NFC HAL to access uwb calibration files.
Bug: 186585880
Bug: 204718220
Bug: 206045367
Test: Manual Tests
Change-Id: Ib0456617d0f5cf116d11a9412f47f36e2b8df570
2022-03-14 16:09:02 +00:00
Roshan Pius
5ddc8be4f4
gs-sepolicy(uwb): Allow uwb hal permission to net_admin
...
This was alloed under gs101-sepolicy. There is an ongoing discussion on
how to resolve this for the long term in b/190461440. But, without this
uwb functionality is broken on new devices.
Bug: 206045367
Bug: 222194886
Change-Id: I6729352f2b7bb93b01990a790e62aa69f60342fe
2022-03-14 16:09:02 +00:00
Tim Lin
a5cb956b5a
ril: dump radio hal from user build. am: e42c7120dd
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17155484
Change-Id: I4b32ed5c0e662d424eb562589a9cf5b38ca04a1a
2022-03-14 11:17:19 +00:00
Tim Lin
e42c7120dd
ril: dump radio hal from user build.
...
To get radio hal debug info on user build as we do on previous Pixels.
Bug: 221391981
Test: Trigger bugreport on USERDEBUG with dumpstate.unroot set
to true and check IRadio log
Change-Id: I354d5770272b518761db4aab8da726de97e472bb
2022-03-14 10:49:07 +00:00
Chungjui Fan
a0f0f1e049
sepolicy: allow fastbootd to access gsc device node am: e02f501377
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17157683
Change-Id: I4234b878168d327657f3114bf96da9e6f056334e
2022-03-14 05:17:37 +00:00
Chungjui Fan
e02f501377
sepolicy: allow fastbootd to access gsc device node
...
audit: type=1400 audit(1646614793.912:8): avc: denied { getattr }
for pid=347 comm="fastbootd" path="/dev/gsc0" dev="tmpfs" ino=469
scontext=u:r:fastbootd:s0 tcontext=u:object_r:citadel_device:s0
tclass=chr_file permissive=0
Bug: 221410358
Test: fastboot -w in fastbootd mode
Change-Id: I5680515865c2656ffa91dfe593459aab1ade81cb
Signed-off-by: Chungjui Fan <chungjuifan@google.com>
2022-03-14 04:47:31 +00:00
Ramji Jiyani
3b53f750cd
dumpstate: Remove do not audit for /system_dlkm am: cec1d2a769
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17180360
Change-Id: I2e71cdc8d343e82a83cf40c5aa6d653458c16625
2022-03-14 04:02:45 +00:00
Ramji Jiyani
cec1d2a769
dumpstate: Remove do not audit for /system_dlkm
...
FixedBy: http://aosp/2022375
Bug: 223332748
Test: atest SELinuxHostTest#testNoBugreportDenials
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: I46e427cccec27118fad4440dc6822196d26f4a1b
2022-03-13 18:32:07 -07:00