Remove device-specific rtc labeling.

rtc0 should be labeled rtc_device rather than just rtc. It should also be
labeled for all devices rather than on a per-device basis.  Remove this labeling
in preparation for global policy.

(cherry-pick of commit: 2dd238b828e1ac82ef6d4dcf8ee3bab73547dcb7)

Change-Id: I8b5795cb4739bb7fb6b2673d0b1b12be40db7a7f
diff --git a/sepolicy/device.te b/sepolicy/device.te
index 26c8c1c..718ed48 100644
--- a/sepolicy/device.te
+++ b/sepolicy/device.te
@@ -11,9 +11,6 @@
 type cid_block_device, dev_type;
 type persist_block_device, dev_type;
-# Real Time Clock
-type rtc, dev_type;
 type power_control_device, dev_type;
 type shared_log_device, dev_type;
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index ff385d2..9e8fc7d 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -101,9 +101,6 @@
 /dev/msm_acdb                      u:object_r:audio_device:s0
 /dev/msm_rtac                      u:object_r:audio_device:s0
-# Real-time clock
-/dev/rtc0                       u:object_r:rtc:s0
 # Qualcomm MSM Interface (QMI) devices
 /dev/socket/qmux_audio(/.*)?           u:object_r:qmuxd_socket:s0
 /dev/socket/qmux_bluetooth(/.*)?       u:object_r:qmuxd_socket:s0
diff --git a/sepolicy/time.te b/sepolicy/time.te
index 4cbae71..591f7ad 100644
--- a/sepolicy/time.te
+++ b/sepolicy/time.te
@@ -8,7 +8,7 @@
 allow time alarm_device:chr_file rw_file_perms;
 # Is r_file_perms sufficient for /dev/rtc0 ?
-allow time rtc:chr_file r_file_perms;
+allow time rtc_device:chr_file r_file_perms;
 allow time time_data_file:dir rw_dir_perms;
 allow time time_data_file:file create_file_perms;