[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IOCTL help



How do we get from ioctl(fd, SIOCFRENB, 0); in sbin/ipf.c to
IPL_EXTERN(ioctl)(dev, cmd, data, mode, ....) in sys/netinet/ip_fil.c?

Specifically who/what/where calls this routine and sets the mode parameter?
See there exists code in IPL_EXTERN(ioctl) such that if mode != FWRITE, to
return EPERM. Assuming the mechanism works, we (OpenBSD) can purhaps
dispense with the body of code that says "if securelevel > 1 return EPERM".

Am I making any sense?

=====
 Matthew Patton, 1LT USAF	Webmaster, Resource Analysis
 PGP Fingerprint: 17D4 98B1 51F1 BCD9 D815  5F3D 3B1C 5C26 762C C9C9
          Key ID: 0x762CC9C9    Expires: 7/31/99