diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-08-06 08:14:44 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-08-06 08:14:44 +0000 |
commit | 68fd8b897bf915fbf6017d23e24053effe3426c9 (patch) | |
tree | 8168eef7bc443350a2c510da94bd1cd393cbbb61 | |
parent | 582b0c6c51c98a5261f9fe296238b1a1747ea590 (diff) | |
parent | 5ff90bb48866267b91321f1e3b5b205981fbf889 (diff) | |
download | device_generic_uml-pie-platform-release.tar.gz device_generic_uml-pie-platform-release.tar.bz2 device_generic_uml-pie-platform-release.zip |
release-request-64fc473b-7e45-48f5-b2f7-3c916e338608-for-git_pi-release-4249735 snap-temp-L34700000089732387android-wear-9.0.0_r9android-wear-9.0.0_r8android-wear-9.0.0_r7android-wear-9.0.0_r6android-wear-9.0.0_r5android-wear-9.0.0_r4android-wear-9.0.0_r3android-wear-9.0.0_r23android-wear-9.0.0_r22android-wear-9.0.0_r21android-wear-9.0.0_r20android-wear-9.0.0_r2android-wear-9.0.0_r19android-wear-9.0.0_r18android-wear-9.0.0_r17android-wear-9.0.0_r16android-wear-9.0.0_r15android-wear-9.0.0_r14android-wear-9.0.0_r13android-wear-9.0.0_r12android-wear-9.0.0_r11android-wear-9.0.0_r10android-wear-9.0.0_r1android-vts-9.0_r9android-vts-9.0_r8android-vts-9.0_r7android-vts-9.0_r6android-vts-9.0_r5android-vts-9.0_r4android-vts-9.0_r14android-vts-9.0_r13android-vts-9.0_r12android-vts-9.0_r11android-vts-9.0_r10android-cts-9.0_r9android-cts-9.0_r8android-cts-9.0_r7android-cts-9.0_r6android-cts-9.0_r5android-cts-9.0_r4android-cts-9.0_r3android-cts-9.0_r2android-cts-9.0_r13android-cts-9.0_r12android-cts-9.0_r11android-cts-9.0_r10android-cts-9.0_r1android-9.0.0_r9android-9.0.0_r8android-9.0.0_r7android-9.0.0_r60android-9.0.0_r6android-9.0.0_r59android-9.0.0_r58android-9.0.0_r57android-9.0.0_r56android-9.0.0_r55android-9.0.0_r54android-9.0.0_r53android-9.0.0_r52android-9.0.0_r51android-9.0.0_r50android-9.0.0_r5android-9.0.0_r49android-9.0.0_r48android-9.0.0_r3android-9.0.0_r2android-9.0.0_r18android-9.0.0_r17android-9.0.0_r10android-9.0.0_r1security-pi-releasepie-vts-releasepie-security-releasepie-s2-releasepie-release-2pie-releasepie-r2-s2-releasepie-r2-s1-releasepie-r2-releasepie-platform-releasepie-gsipie-cuttlefish-testingpie-cts-release
Change-Id: I48933c77b5301109f3c9bcf06be248a6495bc84c
-rw-r--r-- | BoardConfig.mk | 3 | ||||
-rwxr-xr-x | init.eth0.sh | 2 | ||||
-rw-r--r-- | init.uml.rc | 3 | ||||
-rw-r--r-- | sepolicy/file_contexts | 1 | ||||
-rw-r--r-- | sepolicy/init_eth0.te | 10 | ||||
-rw-r--r-- | uml.mk | 1 |
6 files changed, 20 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index b6eb431..807b290 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -20,3 +20,6 @@ TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true BOARD_SYSTEMIMAGE_PARTITION_SIZE := 786432000 BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800 BOARD_FLASH_BLOCK_SIZE := 512 + +BOARD_SEPOLICY_DIRS += \ + device/generic/uml/sepolicy diff --git a/init.eth0.sh b/init.eth0.sh new file mode 100755 index 0000000..39fc008 --- /dev/null +++ b/init.eth0.sh @@ -0,0 +1,2 @@ +#!/system/bin/sh +ifconfig eth0 192.168.0.253 up
\ No newline at end of file diff --git a/init.uml.rc b/init.uml.rc index e5b5d7d..ea12191 100644 --- a/init.uml.rc +++ b/init.uml.rc @@ -1,2 +1,5 @@ on fs mount_all ./fstab.uml + +on boot + exec -- /system/bin/init.eth0.sh
\ No newline at end of file diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts new file mode 100644 index 0000000..3eabb35 --- /dev/null +++ b/sepolicy/file_contexts @@ -0,0 +1 @@ +/system/bin/init.eth0.sh u:object_r:init_eth0_exec:s0
\ No newline at end of file diff --git a/sepolicy/init_eth0.te b/sepolicy/init_eth0.te new file mode 100644 index 0000000..45fd56d --- /dev/null +++ b/sepolicy/init_eth0.te @@ -0,0 +1,10 @@ +type init_eth0, domain; +type init_eth0_exec, exec_type, file_type; + +init_daemon_domain(init_eth0) + +allow init_eth0 self:capability { net_admin net_raw }; +allow init_eth0 self:udp_socket { create ioctl }; +allowxperm init_eth0 self:udp_socket ioctl priv_sock_ioctls; +allow init_eth0 shell_exec:file { execute getattr read }; +allow init_eth0 toolbox_exec:file { execute execute_no_trans getattr open read }; @@ -27,3 +27,4 @@ PRODUCT_CHARACTERISTICS := nosdcard PRODUCT_COPY_FILES += $(LOCAL_PATH)/fstab.uml:root/fstab.uml PRODUCT_COPY_FILES += $(LOCAL_PATH)/init.uml.rc:root/init.uml.rc PRODUCT_COPY_FILES += $(LOCAL_PATH)/surfaceflinger.rc:system/etc/init/surfaceflinger.rc +PRODUCT_COPY_FILES += $(LOCAL_PATH)/init.eth0.sh:system/bin/init.eth0.sh |