Messages in this thread Patch in this message | | | Date | Fri, 14 Jan 2005 18:49:06 -0600 | From | Matt Mackall <> | Subject | [PATCH 3/10] random pt2: combine legacy ioctls |
| |
ZAPENTCNT is now effectively identical to RNDCLEARPOOL, fall through
Signed-off-by: Matt Mackall <mpm@selenic.com>
Index: rnd/drivers/char/random.c =================================================================== --- rnd.orig/drivers/char/random.c 2005-01-12 21:28:00.196490892 -0800 +++ rnd/drivers/char/random.c 2005-01-12 21:28:01.110374382 -0800 @@ -1748,10 +1748,6 @@ wake_up_interruptible(&random_read_wait); return 0; case RNDZAPENTCNT: - if (!capable(CAP_SYS_ADMIN)) - return -EPERM; - random_state->entropy_count = 0; - return 0; case RNDCLEARPOOL: /* Clear the entropy pool counters. */ if (!capable(CAP_SYS_ADMIN)) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |