diff options
| author | Colin Cross <ccross@android.com> | 2012-08-02 18:14:33 -0700 |
|---|---|---|
| committer | Colin Cross <ccross@android.com> | 2012-08-03 12:25:25 -0700 |
| commit | b35e36e5a92ac984a57ec15b14dc6ad3b0ecf1c5 (patch) | |
| tree | 88ff86c023ec3998050fa33cd71372227745187b /rootdir | |
| parent | 35fc46d8e338181ee3caedc30f3627bad2ffe35e (diff) | |
| download | system_core-b35e36e5a92ac984a57ec15b14dc6ad3b0ecf1c5.tar.gz system_core-b35e36e5a92ac984a57ec15b14dc6ad3b0ecf1c5.tar.bz2 system_core-b35e36e5a92ac984a57ec15b14dc6ad3b0ecf1c5.zip | |
init.rc: make last_kmsg readable only by user system and group log
chown /proc/last_kmsg to user system group log during init, and
chmod it to readable only by user and group.
Bug: 6925227
Change-Id: I645b6a2d4fecc01a2bd4b7fa7ed6aae3ef638cb9
Diffstat (limited to 'rootdir')
| -rw-r--r-- | rootdir/init.rc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 22e5e0a8..c7063b5f 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -150,6 +150,8 @@ on post-fs chmod 0440 /proc/kmsg chown root system /proc/sysrq-trigger chmod 0220 /proc/sysrq-trigger + chown system log /proc/last_kmsg + chmod 0440 /proc/last_kmsg # create the lost+found directories, so as to enforce our permissions mkdir /cache/lost+found 0770 root root |
