From: Karel Zak Date: Fri, 9 Dec 2016 08:47:33 +0000 (+0100) Subject: hwclock: don't check for permissions X-Git-Tag: v2.30-rc1~355 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f4e61504a457395018c02bafcf17d1e3f8644b78;p=thirdparty%2Futil-linux.git hwclock: don't check for permissions 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 --- diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index 21caeb21b4..d36c9c9b89 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -1859,11 +1859,6 @@ int main(int argc, char **argv) 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 ||