Bug 223722

Summary: update linsysfs to include /sys/class/net data
Product: Base System Reporter: neirac <cneirabustos>
Component: kernAssignee: Dmitry Chagin <dchagin>
Status: Closed FIXED    
Severity: Affects Only Me CC: cem, chuck, cneirabustos, dchagin, emaste
Priority: --- Keywords: patch
Version: 11.1-RELEASE   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 247219    
Attachments:
Description Flags
Changes to add /sys/class/net nodes
none
/sys/class/net patch none

Description neirac 2017-11-17 20:04:54 UTC
Created attachment 188080 [details]
Changes to add /sys/class/net nodes

Trying to install Minecraft using https://gameservermanagers.com/ in a Linux jail, the software expects data in /sys/class/net which at the moment is not implemented.(https://dongqixue.blogspot.com/2017/05/linux-kernel-documentation-for.html).
I just implemented the nodes that the application requires.
Now the application fails because it needs a NETLINK emulation which also does not exists on current linuxlator.
I have attached changes to linsysfs to add the needed nodes for /sys/class/net
Comment 1 Ed Maste freebsd_committer freebsd_triage 2017-11-21 04:04:34 UTC
It appears you've attached a copy of a modified linsysfs.c, not a patch. Please attach a patch instead (e.g., from diff -u), or create an account on our Phabricator instance and upload the patch there (following the instructions on https://wiki.freebsd.org/Phabricator)
Comment 2 neirac 2017-11-24 03:16:31 UTC
Created attachment 188232 [details]
/sys/class/net patch

I'm sorry here is the patch adding /sys/class/net to linsysfs
Comment 3 neirac 2017-12-27 19:19:07 UTC
Patch is now in Phabricator
https://reviews.freebsd.org/D13656
Comment 4 commit-hook freebsd_committer freebsd_triage 2019-05-06 20:01:56 UTC
A commit references this bug:

Author: dchagin
Date: Mon May  6 20:01:14 UTC 2019
New revision: 347204
URL: https://svnweb.freebsd.org/changeset/base/347204

Log:
  Adds sys/class/net devices to linsysfs.

  Only two interfaces are created eth0 and lo and they expose
  the following properties:
  address, addr_len, flags, ifindex, mty, tx_queue_len and type.

  Initial patch developed by Carlos Neira in 2017 and finished by me.

  PR:		223722
  MFC after:	2 weeks
  Differential Revision:	https://reviews.freebsd.org/D13656

Changes:
  head/sys/compat/linsysfs/linsysfs.c
Comment 5 Dmitry Chagin freebsd_committer freebsd_triage 2021-04-09 10:20:35 UTC
linsysfs changes in main and stable branches, for netlink we have another report