Julio Faracco
9132badf27
lxc: Add Real Time Clock device into allowed devices
...
This commit share host Real Time Clock device (rtc) into LXC containers
to support hardware clock. This should be available setting up a `rtc`
timer under clock section. Since this option is not emulated, it should
be available only for `localtime` clock. This option should be readonly
due to security reasons.
Before:
root# hwclock --verbose
hwclock from util-linux 2.32.1
System Time: 1581877557.598365
Trying to open: /dev/rtc0
Trying to open: /dev/rtc
Trying to open: /dev/misc/rtc
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.
Now:
root# hwclock
2020-02-16 18:23:55.374134+00:00
root# hwclock -w
hwclock: ioctl(RTC_SET_TIME) to /dev/rtc to set the time failed:
Permission denied
Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2020-03-17 19:03:00 +01:00
..
2016-11-21 13:15:12 +01:00
2020-03-04 11:25:03 +01:00
2012-02-03 15:27:16 -07:00
2019-09-13 10:05:17 +01:00
2019-06-20 17:01:44 +02:00
2020-03-04 12:08:50 +01:00
2019-08-29 12:46:33 +01:00
2020-03-13 17:07:32 +00:00
2020-03-16 15:51:44 +01:00
2006-01-23 22:55:41 +00:00
2017-10-16 10:22:34 +01:00
2017-08-02 17:00:11 +01:00
2019-12-20 12:25:42 -05:00
2017-08-02 17:00:11 +01:00
2017-08-02 17:00:11 +01:00
2019-08-28 13:39:26 +02:00
2019-12-20 12:25:42 -05:00
2017-08-02 17:00:11 +01:00
2020-01-17 16:44:31 +01:00
2011-10-28 10:11:16 +01:00
2005-12-21 16:59:34 +00:00
2018-04-09 11:38:47 -06:00
2020-01-17 16:44:31 +01:00
2019-12-23 10:08:05 +00:00
2018-03-23 12:59:56 +01:00
2017-08-02 17:00:11 +01:00
2018-04-09 11:38:47 -06:00
2019-11-15 15:45:20 +01:00
2020-02-07 15:03:54 +00:00
2017-08-02 17:00:11 +01:00
2018-05-03 12:40:37 +01:00
2018-03-21 14:48:01 +00:00
2020-03-05 15:40:01 +00:00
2019-08-28 13:39:26 +02:00
2018-03-21 14:48:01 +00:00
2020-03-05 15:40:01 +00:00
2020-01-31 12:01:36 +01:00
2020-01-27 11:04:29 +00:00
2019-02-01 22:08:55 +04:00
2019-11-14 14:55:56 +01:00
2017-08-02 17:00:11 +01:00
2018-05-03 12:40:37 +01:00
2018-05-14 12:27:47 -04:00
2017-08-02 17:00:11 +01:00
2020-02-04 10:24:40 +01:00
2017-08-02 17:00:11 +01:00
2020-01-27 17:36:05 +01:00
2017-08-02 17:00:11 +01:00
2017-11-07 17:50:15 -05:00
2017-08-02 17:00:11 +01:00
2017-08-02 17:00:11 +01:00
2019-07-09 10:27:19 +02:00
2018-05-03 12:40:37 +01:00
2017-08-02 17:00:11 +01:00
2017-08-02 17:00:11 +01:00
2017-08-02 17:00:11 +01:00
2019-02-01 12:57:13 -05:00
2019-12-10 12:41:56 +01:00
2020-01-24 13:40:48 +01:00
2020-01-16 15:11:42 +00:00
2019-12-10 12:41:56 +01:00
2020-03-17 19:03:00 +01:00
2020-02-04 14:27:05 +01:00
2020-02-26 11:48:23 -05:00
2020-02-26 11:48:23 -05:00
2019-03-22 12:59:56 +03:00
2018-12-17 17:52:46 +01:00
2020-01-28 18:10:36 +01:00
2019-07-29 08:22:29 -05:00
2019-03-19 16:46:21 +01:00
2019-03-07 12:01:09 +01:00
2018-06-26 14:02:43 -04:00
2019-12-04 15:48:28 +00:00
2017-08-02 17:00:11 +01:00
2019-01-25 14:04:20 +01:00
2020-03-13 17:26:55 +01:00
2019-06-17 15:19:54 +01:00
2019-12-10 12:41:56 +01:00
2017-08-02 17:00:11 +01:00
2018-03-21 14:48:01 +00:00
2020-03-04 12:08:50 +01:00
2011-10-28 10:11:16 +01:00
2012-07-23 16:07:13 -06:00
2011-10-28 10:11:16 +01:00
2012-07-23 16:07:13 -06:00
2020-01-27 11:51:46 +00:00
2020-01-27 11:51:46 +00:00
2011-10-28 10:11:16 +01:00
2012-07-23 16:07:13 -06:00
2013-03-04 17:36:03 -05:00
2013-03-04 17:36:03 -05:00
2020-02-24 11:34:15 +00:00
2019-10-18 16:25:17 +01:00
2017-08-07 14:44:40 +01:00
2020-01-29 12:16:13 +00:00
2017-08-02 15:00:28 -04:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2019-12-04 15:48:28 +00:00
2019-04-11 15:20:17 +01:00
2017-08-02 17:00:11 +01:00
2019-12-04 15:48:28 +00:00
2017-10-16 10:22:34 +01:00
2017-10-16 10:22:34 +01:00
2017-10-16 10:22:34 +01:00
2017-10-16 10:22:34 +01:00
2017-10-16 10:22:34 +01:00
2017-10-16 10:22:34 +01:00
2017-10-16 10:22:34 +01:00
2017-10-16 10:22:34 +01:00
2017-10-16 10:22:34 +01:00
2019-07-09 10:42:39 -05:00
2017-10-16 10:22:34 +01:00
2017-10-16 10:22:34 +01:00
2019-04-03 09:46:02 +02:00
2019-07-17 17:34:08 +02:00
2017-04-05 09:51:51 +02:00
2020-03-16 08:21:30 +01:00
2011-10-28 10:11:16 +01:00
2006-01-23 13:24:07 +00:00
2017-08-02 17:00:11 +01:00
2020-01-27 11:51:46 +00:00
2019-06-20 10:03:22 +02:00
2018-03-21 14:48:01 +00:00
2020-01-03 15:42:12 +00:00
2017-08-02 17:00:11 +01:00
2019-12-04 15:48:28 +00:00
2018-03-16 17:05:56 +00:00
2017-08-02 17:00:11 +01:00
2019-12-20 14:31:08 +01:00
2019-10-01 13:08:01 +01:00
2011-10-28 10:11:16 +01:00
2019-12-11 14:28:41 +00:00
2017-08-02 17:00:11 +01:00
2018-05-03 12:40:37 +01:00
2017-10-16 10:22:34 +01:00
2017-10-16 10:22:34 +01:00
2017-10-16 10:22:34 +01:00
2019-12-04 15:48:28 +00:00
2019-12-04 15:48:28 +00:00
2018-03-21 14:48:01 +00:00
2019-11-08 17:07:35 +01:00
2010-11-12 19:47:20 +01:00