[DragonFlyBSD - Bug #3306] Add description support for ifconfig(8)

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Fri Nov 12 17:12:07 PST 2021


Issue #3306 has been updated by dillon.


The ioctl code in the kernel needs to ensure that the buffer is zero-terminated, or it needs to zero-terminate the buffer itself, that it stores in if_description.  Otherwise the strlen() on the read side will overrun the buffer if userland intentionally sets a description that is not zero-terminated.

-Matt

----------------------------------------
Bug #3306: Add description support for ifconfig(8)
http://bugs.dragonflybsd.org/issues/3306#change-14192

* Author: tuxillo
* Status: In Progress
* Priority: Normal
* Category: Userland
* Target version: 6.2
* Start date: 2021-11-12
----------------------------------------


Is there a chance the 'ifconfig NIC description XXX' functionality
will sync with the FreeBSD ? This is a fairly popular option.

<pre>
# ifconfig vlan1 description vm1-vlan
ifconfig: description: bad value
</pre>

OpenBSD also has a similar capability[1], as NetBSD as well[2]

Thanks!
__

fn1. https://man.openbsd.org/ifconfig.8

fn2. https://man.netbsd.org/ifconfig.8


---Files--------------------------------
01-if-descr.patch (11.7 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list