The right place to verify user permissions is kernel. The current
situation is too strict (due to previous attempts to use hwclock as
suid that has never been supported).
Signed-off-by: Karel Zak <kzak@redhat.com>
argc -= optind;
argv += optind;
- if (getuid() != 0) {
- warnx(_("Sorry, only the superuser can use the Hardware Clock."));
- hwclock_exit(EX_NOPERM);
- }
-
#ifdef HAVE_LIBAUDIT
if (testing != TRUE) {
if (adjust == TRUE || hctosys == TRUE || systohc == TRUE ||