summaryrefslogtreecommitdiff
path: root/smack_device_labeling
blob: 952783ea509f3f9bc768936ab7a44f91d58f7518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# Set device node permissions for security
chsmack -a 'device::bklight' /sys/class/backlight/*/brightness
chsmack -a 'device::led' /sys/class/camera/flash/rear_flash
chsmack -a 'device::led' /sys/class/camera/flash/max_brightness
chsmack -a 'device::mdnie' /sys/class/extension/mdnie/mode
chsmack -a 'device::mdnie' /sys/class/extension/mdnie/scenario
chsmack -a 'device::mdnie' /sys/class/extension/mdnie/tone
chsmack -a 'device::mdnie' /sys/class/extension/mdnie/outdoor
chsmack -a 'device::mdnie' /sys/class/extension/mdnie/tune
chsmack -a 'device::haptic' /sys/class/haptic/motor/level
chsmack -a 'device::haptic' /sys/class/haptic/motor/enable
chsmack -a 'device::haptic' /sys/class/haptic/motor/oneshot