summaryrefslogtreecommitdiff
path: root/smack_device_labeling
blob: 0e33a210ca1dd91a0c846091ac75886bcd332306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh

# Set device node permissions for security
chsmack -a 'device::camera' /dev/video1
chsmack -a 'device::camera' /dev/s3c-jpg
chsmack -a 'device::app_logging' /dev/log_main
chsmack -a 'device::app_logging' /dev/log_events
chsmack -a 'device::app_logging' /dev/log_radio
chsmack -a 'device::sys_logging' /dev/log_system
chsmack -a 'device::audio' /dev/snd/
chsmack -a 'device::audio' /dev/snd/controlC0
chsmack -a 'device::audio' /dev/snd/pcmC0D0p
chsmack -a 'device::audio' /dev/snd/pcmC0D1p
chsmack -a 'device::audio' /dev/snd/pcmC0D2p
chsmack -a 'device::audio' /dev/snd/pcmC0D3p
chsmack -a 'device::audio' /dev/snd/timer
chsmack -a 'device::recording' /dev/snd/pcmC0D0c
chsmack -a 'device::recording' /dev/snd/pcmC0D1c
chsmack -a 'device::recording' /dev/snd/pcmC0D2c
chsmack -a 'device::recording' /dev/snd/pcmC0D3c
chsmack -a 'device::hwcodec' /dev/s3c-mfc
chsmack -a 'device::hwcodec' /dev/video5
chsmack -a 'device::hwcodec' /dev/video6
chsmack -a 'device::video' /dev/fb0
chsmack -a 'device::video' /dev/video0
chsmack -a 'device::video' /dev/video2
chsmack -a 'device::video' /dev/video3
chsmack -a 'device::video' /dev/s3c-mem
chsmack -a 'device::radio' /dev/radio0
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