[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#64937: boot time on Linux
From: |
Po Lu |
Subject: |
bug#64937: boot time on Linux |
Date: |
Thu, 10 Aug 2023 10:14:27 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Bruno Haible <bruno@clisp.org> writes:
> Po Lu wrote:
>> > Also, I don't know how Android records boot time so I'll cc this to Po
>> > Lu, the main developer for Emacs on Android.
>>
>> The boot time is off limits to user programs on Android, for security
>> reasons.
>
> No, it isn't. The attached file, when compiled and run under Termux (which
> doesn't have particular permissions), prints e.g.:
>
> from clock : 1691616762.476870660 = 2023-08-09 21:32:42.476870660
> from sysinfo: 1691616762.329261637 = 2023-08-09 21:32:42.329261637
>
> Note that this uses the kernel's uptime counter, so it will not work well
> when the user changes the current time manually. But this is rare on Android.
This uses the uptime counter (which also results in an SELinux denial
for me, but different Android distributions have SELinux policies of
varying strictness), which cannot establish the precise time the system
started, since time elapses between the read from the uptime counter and
the read from the RTC.
- bug#64937: "who" reports funny dates, (continued)
- Message not available
- bug#64937: "who" reports funny dates, Thorsten Kukuk, 2023/08/08
- bug#64937: "who" reports funny dates, Bruno Haible, 2023/08/08
- bug#64937: boot time on Linux, Bruno Haible, 2023/08/08
- bug#64937: boot time on Linux, Bruno Haible, 2023/08/09
- bug#64937: boot time on Linux, Paul Eggert, 2023/08/09
- bug#64937: boot time on Linux, Bruno Haible, 2023/08/09
- bug#64937: boot time on Linux, Po Lu, 2023/08/09
- bug#64937: boot time on Linux, Bruno Haible, 2023/08/09
- bug#64937: boot time on Linux,
Po Lu <=
- bug#64937: boot time on Linux, Paul Eggert, 2023/08/10
- bug#64937: boot time on Linux, Po Lu, 2023/08/10
- bug#64937: boot time on Linux, Bruno Haible, 2023/08/10
- bug#64937: boot time on Linux, Po Lu, 2023/08/10
- bug#64937: boot time on Linux, Bruno Haible, 2023/08/10
- bug#64937: boot time on Linux, Po Lu, 2023/08/10
- bug#64937: boot time on Linux, Bruno Haible, 2023/08/10
- bug#64937: boot time on Linux, Po Lu, 2023/08/11
- bug#64937: boot time on Linux, Natanael Copa, 2023/08/10
- bug#64937: boot time on Linux, Po Lu, 2023/08/10