From 194a3503076748f0e66c515d7e7cd9083cc78727 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 9 Dec 2016 09:47:33 +0100 Subject: [PATCH] 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 --- sys-utils/hwclock.c | 5 ----- 1 file changed, 5 deletions(-) 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 || -- 2.47.2