[Ukfreebsd] Question about linprocfs

andy thomas andy at time-domain.co.uk
Fri May 27 18:32:09 BST 2011


On Fri, 27 May 2011, Mark Blackman wrote:

>
> On 27 May 2011, at 16:05, andy thomas wrote:
>
>> I'm trying to get the Linux binary of the Magma computational algebra software package running on amd64 FreeBSD 8.2. When this binary is executed on a Linux system, it reads /proc/net/dev to determine the system's MAC address and compares this with an encrypted license file to decided whether or not the system is licenced to run the software.
>>
>> On FBSD, the Linux /proc filesystem is mounted on /compat/linux/proc so that the Linux /proc/net/dev is actually at /compat/linux/proc/net/dev. The problem is /compat/linux/proc/net/dev contains no data:
>
> See linprocfs(5), "emulates a *subset* of Linux process file system". Further on, it lists the bits it can do
> and /net/dev isn't one of them, I'm afraid.

Thanks for that, looks like the static file is the best bet with the MAC 
address hard-coded into it in whatever encrypted/hashed way Linux stores 
the MAC address.

cheers, Andy


More information about the Ukfreebsd mailing list