Commit graph

18 commits

Author SHA1 Message Date
attis
8dc3a904d6 Label sysfs node power_mode as sysfs_display.
Label power_mode to sysfs_panel to let it be allowed in dumpstate.

avc log:
08-26 13:08:28.376 12321 12321 W dump_second_dis: type=1400 audit(0.0:13): avc:  denied  { read } for  name="power_mode" dev="sysfs" ino=83663 scontext=u:r:dump_second_display:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0

Test: ls -Z, adb bugreport.
Flag: EXEMPT bugfix
Bug: 358505990
Change-Id: Iaba56ff4025b5403a148bde6daad5f29c9c7f5b3
Signed-off-by: attis <attis@google.com>
2024-08-26 12:13:25 +00:00
Zheng Pan
423a870ad4 Add DP wakeup file permission
Bug: 346660264
Test: None
Change-Id: I8f85b79aedc640d22982855a099b2448f93b29a3
2024-06-12 20:34:06 +00:00
Shiyong Li
b8838772c2 Merge "Add sepolicy for power_state node" into 24D1-dev am: f23f1fc4fa
Original change: https://googleplex-android-review.googlesource.com/c/device/google/comet-sepolicy/+/27057167

Change-Id: Ibe8208dd8146eb1147829d55d4fbce296d400718
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-09 05:21:38 +00:00
YiKai Peng
221e792107 selinux: move wlc 0x61 wakeup to zumapro
Bug: 335557235
Test: v2/pixel-health-guard/device-boot-health-check-extra
Change-Id: I1ad5bf17dae71ec5e8b6756a8eadf26878afad22
Signed-off-by: YiKai Peng <kenpeng@google.com>
2024-04-26 13:05:02 +00:00
Kevin Ying
203b4dd470 Add sepolicy for power_state node
Bug: 329703995
Test: manual - used camera
Change-Id: I3764557b98334ec73ba94a691f0cbdbacb5c8400
Signed-off-by: Kevin Ying <kevinying@google.com>
2024-04-24 19:09:45 +00:00
Cheng Chang
229a44dbf9 sepolicy: Move the gnssif/wakeup to zumapro
Bug: 329334328
Test: abtd device-boot-health-check-extra under b/329334328.
Test: boot and check the logcat avc.
Change-Id: Ieb02d6232186a3d0ee43b2b6c96b0db7ad4534f9
2024-04-02 09:04:33 +00:00
derickhong
7cf67c1e9a Allow HWC to access display refresh control
Bug: 326869289
Test: adb shell dmesg | grep avc ; adb logcat -d | grep avc
Change-Id: I353139e97728486f2a8b6c5f593cddf51adb7804
2024-03-20 07:39:32 +00:00
Darren Hsu
9b03fffd65 sepolicy: label required display paths for hal_power_stats
Bug: 321871758
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ic7f4271730b851194eaf42d3752c834ae85831bc
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-01-25 17:22:47 +08:00
Wilson Sung
52692f5cc7 Label and sort wakeup nodes
Bug: 318032188
Test: make sepolicy
Change-Id: I5477cee657942e1b2eb87f250adba4048c5b7696
2024-01-08 17:06:23 +08:00
Wilson Sung
76a6fad054 Move fingerprint to each device sepolicy folder
Bug: 312322769
Test: make sepolicy
Change-Id: I5f0032655f97e01cd18fdabb9d909e9e2295744d
2023-12-19 03:51:26 +00:00
Treehugger Robot
bb0a18f99c Merge "comet-sepolicy: Enable Lbe atc on secondary display" into main 2023-11-20 06:05:05 +00:00
Jack Wu
018f7619cc Add sepolicy for dual_batt_gauge power supply
10-30 04:38:39.556   814   814 I auditd  : type=1400 audit(0.0:13): avc:  denied  { getattr } for  comm="android.hardwar" path="/sys/devices/platform/google,dual_batt_gauge/power_supply/dualbatt/type" dev="sysfs" ino=77177 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
10-30 04:38:39.556   814   814 I auditd  : type=1400 audit(0.0:11): avc:  denied  { read } for  comm="android.hardwar" name="type" dev="sysfs" ino=77177 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
10-30 04:38:39.556   814   814 I auditd  : type=1400 audit(0.0:12): avc:  denied  { open } for  comm="android.hardwar" path="/sys/devices/platform/google,dual_batt_gauge/power_supply/dualbatt/type" dev="sysfs" ino=77177 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

Bug: 308380763
Test: reboot device and check the avc
Change-Id: Ie39f9df23c4041ac442599d85279b69638a514d2
Signed-off-by: Jack Wu <wjack@google.com>
2023-10-31 11:37:25 +08:00
YiKai Peng
74e9d81f53 WLC: add static i2c number for sepolicy
Bug: 306699444
Test: No selinux denials related to wireless
Change-Id: I6c3a8781b4a113c14393930be65bdcb028a32c83
Signed-off-by: YiKai Peng <kenpeng@google.com>
2023-10-24 07:16:18 +00:00
Burney Yu
527935ad96 comet-sepolicy: Enable Lbe atc on secondary display
Bug: 283353282
Test: Check PixelDisplayService log
Change-Id: I1d60b8da4b0cd35f2b5f3aa439945588e4d1ab72
2023-10-20 16:51:10 +08:00
Jenny Ho
c46d5ae695 sepolicy: add secondary battery and wireless charging permission
Bug: 299268124
Test: data is correct in dumpstate
Change-Id: I030c3d9230980654b142902bec6c6acf942caa72
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-09-07 20:07:42 +08:00
Tai Kuo
83b0b32da2 Remove unused CS40L26 I2C paths
Bug: 285343932
Test: No AVC denials.
Change-Id: I35ef8dbd4304d620cf7eb57fc00f88387d76eb64
2023-09-04 19:11:56 +08:00
Weizhung Ding
9f7a30113a Add permission for secondary dsim
Bug: 287392044
Test: adjust brightness
Change-Id: I730ab114243911bd08f21579ab1d43d60ca4a19b
2023-06-15 06:35:20 +00:00
Tai Kuo
ee9740df18 Update vibrator SEPolicy for possible paths
Pre-porting. Align with other P23 projects.

Bug: 264625320
Test: Build sepolicy.
Change-Id: I8996bbdd32fd8c2c708dca00f49a0ab4c33aedb7
2023-02-04 15:31:31 +08:00