diff options
author | Ethan Chen <intervigil@gmail.com> | 2016-02-17 17:26:22 -0800 |
---|---|---|
committer | Ethan Chen <intervigil@gmail.com> | 2016-02-17 21:08:32 -0800 |
commit | 4248ea7cd88e768333dd8a0ccd159957111bab29 (patch) | |
tree | cb06f43c5dd19278a8f69f000c4e7ce77d41deaf /healthd | |
parent | eaac34d5ff2a04f9fc9d9223c581fa2f8b411c2e (diff) | |
download | system_core-4248ea7cd88e768333dd8a0ccd159957111bab29.zip system_core-4248ea7cd88e768333dd8a0ccd159957111bab29.tar.gz system_core-4248ea7cd88e768333dd8a0ccd159957111bab29.tar.bz2 |
healthd: Reduce permissions needed for alarm tracking
* Write permission to /dev/rtc0 is not required.
REF: CYNGNOS-2073
Change-Id: I322601a773ae61d985bf1fb50b605249be40948c
Diffstat (limited to 'healthd')
-rw-r--r-- | healthd/healthd_board_msm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/healthd/healthd_board_msm.cpp b/healthd/healthd_board_msm.cpp index c3d81b8..81a8aa6 100644 --- a/healthd/healthd_board_msm.cpp +++ b/healthd/healthd_board_msm.cpp @@ -61,7 +61,7 @@ static int alarm_get_time(enum alarm_time_type time_type, if (!secs) return -1; - fd = open("/dev/rtc0", O_RDWR); + fd = open("/dev/rtc0", O_RDONLY); if (fd < 0) { LOGE("Can't open rtc devfs node\n"); return -1; |