diff options
Diffstat (limited to 'rootdir/init.rc')
-rw-r--r-- | rootdir/init.rc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 11b838358..5fa77d8d9 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc | |||
@@ -48,8 +48,10 @@ on init | |||
48 | copy /proc/cmdline /dev/urandom | 48 | copy /proc/cmdline /dev/urandom |
49 | copy /default.prop /dev/urandom | 49 | copy /default.prop /dev/urandom |
50 | 50 | ||
51 | # Backward compatibility. | 51 | symlink /system/bin /bin |
52 | symlink /system/etc /etc | 52 | symlink /system/etc /etc |
53 | |||
54 | # Backward compatibility. | ||
53 | symlink /sys/kernel/debug /d | 55 | symlink /sys/kernel/debug /d |
54 | 56 | ||
55 | # Link /vendor to /system/vendor for devices without a vendor partition. | 57 | # Link /vendor to /system/vendor for devices without a vendor partition. |
@@ -148,6 +150,9 @@ on init | |||
148 | write /proc/sys/net/ipv4/conf/all/accept_redirects 0 | 150 | write /proc/sys/net/ipv4/conf/all/accept_redirects 0 |
149 | write /proc/sys/net/ipv6/conf/all/accept_redirects 0 | 151 | write /proc/sys/net/ipv6/conf/all/accept_redirects 0 |
150 | 152 | ||
153 | # /proc/net/fib_trie leaks interface IP addresses | ||
154 | chmod 0400 /proc/net/fib_trie | ||
155 | |||
151 | # Create cgroup mount points for process groups | 156 | # Create cgroup mount points for process groups |
152 | mkdir /dev/cpuctl | 157 | mkdir /dev/cpuctl |
153 | mount cgroup none /dev/cpuctl cpu | 158 | mount cgroup none /dev/cpuctl cpu |