summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleozwang <leozwang@google.com>2016-03-03 09:38:10 -0800
committerleozwang <leozwang@google.com>2016-03-03 09:38:10 -0800
commit31127fe6841d11bc67325beb69ca817747899a9d (patch)
treeec22e51d74e9c46d5bbfdf293ab78eac6245b994
parent9c1bc1d33160125a7ac755c942685d68b2eb2361 (diff)
downloadkylin-31127fe6841d11bc67325beb69ca817747899a9d.tar.gz
Enable usb dongle.
Bug: 27311701 Change-Id: Iddf683b8b1a8cdd417a39b210ad84b1e76fb2d3d
-rw-r--r--sepolicy/kernel.te4
-rw-r--r--soc/soc.kconf4
2 files changed, 8 insertions, 0 deletions
diff --git a/sepolicy/kernel.te b/sepolicy/kernel.te
index 3e391fd..2356efc 100644
--- a/sepolicy/kernel.te
+++ b/sepolicy/kernel.te
@@ -2,3 +2,7 @@
allow kernel device:blk_file { create setattr };
allow kernel device:dir { write add_name };
allow kernel self:capability mknod;
+
+#============= kernel ==============
+allow kernel device:chr_file { create getattr setattr unlink };
+allow kernel device:dir { remove_name rmdir };
diff --git a/soc/soc.kconf b/soc/soc.kconf
index b14fc19..2aabcd6 100644
--- a/soc/soc.kconf
+++ b/soc/soc.kconf
@@ -30,3 +30,7 @@ CONFIG_USB_F_FS=y
CONFIG_USB_CONFIGFS=y
CONFIG_USB_CONFIGFS_F_FS=y
CONFIG_USB_CONFIGFS_UEVENT=y
+
+CONFIG_USB_USBNET=y
+CONFIG_USB_RTL8150=y
+CONFIG_USB_RTL8152=y