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
..
2020-03-04 11:25:03 +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
2019-12-20 12:25:42 -05:00
2019-12-20 12:25:42 -05:00
2019-12-23 10:08:05 +00:00
2019-08-28 13:39:26 +02:00
2018-12-17 17:52:46 +01:00
2019-12-04 15:48:28 +00:00
2020-03-04 12:08:50 +01:00
2019-07-09 10:42:39 -05:00