1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

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.
This commit is contained in:
Robert Watson 2001-11-15 19:28:49 +00:00
parent ba48b69a13
commit ca7779ceca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86413

View File

@ -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,