|
Bugzilla – Full Text Bug Listing |
| Summary: | Cannot compile sudo in a container LXC | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Alessandro Perucchi <aperucchi> |
| Component: | Sudoers | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.8.22 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Attachments: | Use btime in /proc/stat to determine system start time instead of /proc/uptime | ||
|
Description
Alessandro Perucchi
2018-04-04 10:34:24 MDT
Looks like procps-ng uses the btime field of/proc/stat instead of /proc/uptime. Can you verify that this value is the boot time of the physical host and not the container? Yes I can confirm that. on the host: $ grep btime /proc/stat btime 1516440869 on the container $ grep btime /proc/stat btime 1516440869 Created attachment 507 [details]
Use btime in /proc/stat to determine system start time instead of /proc/uptime
I can confirm that it works :-) Thank you! Fixed in sudo 1.8.23 |