1. seandroid
  2. Untitled project
  3. device/lge/mako

Commits

Stephen Smalley  committed 39016db

Rename audio_data_file to audio_firmware_file to match AOSP.

4.3 went out with audio_firmware_file defined and assigned to
/data/misc/audio so we cannot rename it.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>

  • Participants
  • Parent commits e644fcb

Comments (0)

Files changed (3)

File sepolicy/file.te

View file
 type kickstart_data_file, file_type, data_file_type;
 type sensors_data_file, file_type, data_file_type;
 
+type audio_firmware_file, file_type;
+
 # Default type for anything under /firmware
 type radio_efs_file, fs_type;
 

File sepolicy/file_contexts

View file
 /dev/block/mmcblk0p[89]        u:object_r:efs_block_device:s0
 
 # Data labeling
-/data/audio(/.*)?              u:object_r:audio_data_file:s0
-/data/misc/audio(/.*)?         u:object_r:audio_data_file:s0
+/data/audio(/.*)?              u:object_r:audio_firmware_file:s0
+/data/misc/audio(/.*)?         u:object_r:audio_firmware_file:s0
 /data/nfc(/.*)?                u:object_r:nfc_data_file:s0
 /data/qcks(/.*)?               u:object_r:kickstart_data_file:s0
 /data/misc/sensors(/.*)?       u:object_r:sensors_data_file:s0

File sepolicy/mediaserver.te

View file
-allow mediaserver audio_data_file:dir w_dir_perms;
-allow mediaserver audio_data_file:file create_file_perms;
+allow mediaserver audio_firmware_file:dir ra_dir_perms;
+allow mediaserver audio_firmware_file:file create_file_perms;
 allow mediaserver camera_calibration_file:sock_file w_file_perms;
 
 qmux_socket(mediaserver)