From ca7779ceca47333551d78de0ad4e887600cf23a2 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Thu, 15 Nov 2001 19:28:49 +0000 Subject: o Rely on /dev/snp* permissions, rather than using suser() in snpopen() to prevent inappropriate use of the snoop device. This means that, with appropriate chmod'ing, arbitrary users may make use of the snoop device. --- sys/dev/snp/snp.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'sys/dev/snp') diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index 93c19477cb286..e4f54002a08b8 100644 --- a/sys/dev/snp/snp.c +++ b/sys/dev/snp/snp.c @@ -383,9 +383,6 @@ snpopen(dev, flag, mode, td) struct snoop *snp; int error; - if ((error = suser_td(td)) != 0) - return (error); - if (dev->si_drv1 == NULL) { if (!(dev->si_flags & SI_NAMED)) make_dev(&snp_cdevsw, minor(dev), UID_ROOT, GID_WHEEL, -- cgit v1.3