Commits

Anonymous committed 307f7d3

Rename domain "system" to "system_server".

Now that the "system" domain is just about the system_server, it's
clearer if the domain is called "system_server".

This CL depends on the renaming in external/sepolicy performed in
https://android-review.googlesource.com/#/c/65502/.

Change-Id: I90a6850603dcf60049963462c5572d36de62bc00

Conflicts:
BoardConfig.mk
sepolicy/compatibility.te
sepolicy/system.te

Comments (0)

Files changed (4)

 
 TARGET_RELEASETOOLS_EXTENSIONS := device/lge/mako
 
-BOARD_CHARGER_ENABLE_SUSPEND := true
-
-USE_DEVICE_SPECIFIC_CAMERA := true
-
--include vendor/lge/mako/BoardConfigVendor.mk
-
 BOARD_SEPOLICY_DIRS += \
-        device/lge/mako/sepolicy
+       device/lge/mako/sepolicy
 
 BOARD_SEPOLICY_UNION += \
 	file_contexts \
 	rmt.te \
 	sensors.te \
 	surfaceflinger.te \
-	system.te \
+	system_server.te \
 	tee.te \
 	thermald.te \
 	ueventd.te \
 	wpa_supplicant.te
+
+BOARD_CHARGER_ENABLE_SUSPEND := true
+
+USE_DEVICE_SPECIFIC_CAMERA := true
+
+-include vendor/lge/mako/BoardConfigVendor.mk

sepolicy/system.te

-allow system diagnostic_device:chr_file rw_file_perms;
-
-allow system init:unix_dgram_socket sendto;
-allow system wpa_socket:unix_dgram_socket sendto;
-
-qmux_socket(system)
-
-# PowerManagerService
-unix_socket_connect(system, sensors, sensors)
-allow system sensors_socket:sock_file read;
-allow system sensors:unix_stream_socket sendto;
-
-# mpdecision access
-unix_socket_connect(system, mpdecision, mpdecision)
-unix_socket_send(system, mpdecision, mpdecision)
-allow system mpdecision:unix_stream_socket sendto;
-allow system mpdecision_socket:dir search;
-
-allow system sysfs:file { read open write };

sepolicy/system_server.te

+allow system_server diagnostic_device:chr_file rw_file_perms;
+
+allow system_server init:unix_dgram_socket sendto;
+allow system_server wpa_socket:unix_dgram_socket sendto;
+
+qmux_socket(system_server)
+
+# PowerManagerService
+unix_socket_connect(system_server, sensors, sensors)
+allow system_server sensors_socket:sock_file read;
+allow system_server sensors:unix_stream_socket sendto;
+
+# mpdecision access
+unix_socket_connect(system_server, mpdecision, mpdecision)
+unix_socket_send(system_server, mpdecision, mpdecision)
+allow system_server mpdecision:unix_stream_socket sendto;
+allow system_server mpdecision_socket:dir search;
+
+allow system_server sysfs:file { read open write };

sepolicy/wpa_supplicant.te

 allow wpa devpts:chr_file { read write };
 
 allow wpa wpa_socket:unix_dgram_socket { read write };
-allow wpa_socket system:unix_dgram_socket sendto;
+allow wpa_socket system_server:unix_dgram_socket sendto;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.