Bug 223722 - update linsysfs to include /sys/class/net data
Summary: update linsysfs to include /sys/class/net data
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Chagin
URL:
Keywords: patch
Depends on:
Blocks: 247219
  Show dependency treegraph
 
Reported: 2017-11-17 20:04 UTC by neirac
Modified: 2021-04-09 10:20 UTC (History)
5 users (show)

See Also:


Attachments
Changes to add /sys/class/net nodes (15.89 KB, text/plain)
2017-11-17 20:04 UTC, neirac
no flags Details
/sys/class/net patch (8.12 KB, patch)
2017-11-24 03:16 UTC, neirac
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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