From fdc03350f44aba8abfabc9d66a6e20186cc5d8b0 Mon Sep 17 00:00:00 2001 From: Marco Ballesio Date: Fri, 21 Aug 2020 08:00:23 -0700 Subject: [PATCH] init.rc: remove initializations to cg2_bpf path https://r.android.com/c/1324649/5 moves the cgroup folder to its sysfs path. Directory access rights are defined by kernel code and sepolicy, so remove the initialization lines from init.rc. Test: manually booted the device and verified access rights for /sys/fs/cgroup Bug: 154548692 Change-Id: I67284dc651ed529cae69e413b66c6e1292a2d970 --- rootdir/init.rc | 2 -- 1 file changed, 2 deletions(-) diff --git a/rootdir/init.rc b/rootdir/init.rc index 9079fa4b7..37f911a34 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -338,8 +338,6 @@ on init # This is needed by any process that uses socket tagging. chmod 0644 /dev/xt_qtaguid - chown root root /dev/cg2_bpf - chmod 0600 /dev/cg2_bpf mount bpf bpf /sys/fs/bpf nodev noexec nosuid # Create location for fs_mgr to store abbreviated output from filesystem