Skip to content

Commit

Permalink
Move audio_firmware_file and /data/misc/audio entry to core sepolicy.
Browse files Browse the repository at this point in the history
file_contexts uses regexes, not a globs, so use (/.*)? rather than /*
to match the directory and anything beneath it.

Since /data/misc/audio is not device-specific, move it to core sepolicy.

Consider renaming this type in the future to audio_data_file, but that
is left to a separate change as it will require a restorecon_recursive
on mako.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Change-Id: Iddc4539df686ec23edf2cf9e79e86ca353f480ce
  • Loading branch information
stephensmalley authored and MarcLandis committed Apr 10, 2014
1 parent 18b29ff commit fd2b148
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion sepolicy/file.te
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ type qmux_bluetooth_socket, file_type;
type qmux_gps_socket, file_type;
type qmux_radio_socket, file_type;

type audio_firmware_file, file_type;
3 changes: 0 additions & 3 deletions sepolicy/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
# Qualcomm MSM Audio ACDB device
/dev/msm_acdb u:object_r:msm_acdb_device:s0

# Qualcomm audio firmware files
/data/misc/audio/* u:object_r:audio_firmware_file:s0

/dev/ks_hsic_bridge u:object_r:kickstart_device:s0
/dev/efs_hsic_bridge u:object_r:kickstart_device:s0

Expand Down
3 changes: 0 additions & 3 deletions sepolicy/mediaserver.te
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ allow mediaserver qmux_audio_socket:dir rw_dir_perms;
# Permit mediaserver to create sockets
allow mediaserver self:socket create;

# Grant access to audio firmware files to mediaserver
allow mediaserver audio_firmware_file:dir ra_dir_perms;
allow mediaserver audio_firmware_file:file create_file_perms;

0 comments on commit fd2b148

Please sign in to comment.