Advertisement
Guest User

0001-Revert-lowmemorykiller-make-perms-0220.patch

a guest
Mar 17th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. From d680d0a3723e62f66fb83a5a70a1ea7b23be9c0f Mon Sep 17 00:00:00 2001
  2. From: luca020400 <luca.stefani.ge1@gmail.com>
  3. Date: Tue, 17 Mar 2015 13:47:31 +0100
  4. Subject: [PATCH 1/1] Revert "lowmemorykiller: make perms 0220"
  5.  
  6. * allow userspace to modify LMK parameters
  7.  
  8. This reverts commit b3739735b84a88cccfe08c0d69b1017a07004470.
  9. ---
  10. rootdir/init.rc | 4 ++--
  11. 1 file changed, 2 insertions(+), 2 deletions(-)
  12.  
  13. diff --git a/rootdir/init.rc b/rootdir/init.rc
  14. index 32d33d8..61b6be3 100644
  15. --- a/rootdir/init.rc
  16. +++ b/rootdir/init.rc
  17. @@ -349,9 +349,9 @@ on boot
  18. write /proc/sys/vm/overcommit_memory 1
  19. write /proc/sys/vm/min_free_order_shift 4
  20. chown root system /sys/module/lowmemorykiller/parameters/adj
  21. - chmod 0220 /sys/module/lowmemorykiller/parameters/adj
  22. + chmod 0664 /sys/module/lowmemorykiller/parameters/adj
  23. chown root system /sys/module/lowmemorykiller/parameters/minfree
  24. - chmod 0220 /sys/module/lowmemorykiller/parameters/minfree
  25. + chmod 0664 /sys/module/lowmemorykiller/parameters/minfree
  26.  
  27. # Tweak background writeout
  28. write /proc/sys/vm/dirty_expire_centisecs 200
  29. --
  30. 1.9.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement