DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th August 2014
st1905 st1905 is offline
Port Guard
 
Join Date: Aug 2014
Posts: 13
Default Firefox and Linux Emulation (Procfs support is gone in Openbsd)

I`m trying to run firefox under linux emulation and one culprit is that recent versions of openbsd dropped procfs and firefox is refusing to run without it.

Can't open image file: No such file or directory
Supplied image file name: "/proc/self"
dup2 error: : Bad file descriptor

That`s from firefox when i try to run it (Portable version for linux)

I`m trying to emulate firefox linux binary because there i`ll try flash.

Any way to get around procfs ?
Reply With Quote
  #2   (View Single Post)  
Old 11th August 2014
st1905 st1905 is offline
Port Guard
 
Join Date: Aug 2014
Posts: 13
Default

Linux emulation needs procfs but openbsd drops procfs, what`s the logic behind this ? Seems like security but still, they must remove linux emulation too, it`s useless without proc.
Reply With Quote
  #3   (View Single Post)  
Old 11th August 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

hello, and welcome.

This was discussed in 2009, prior to its eventual removal in June. Developers who commented said:
Quote:
Originally Posted by Philip Guenther
...none of the developers want to touch (procfs)...
Quote:
Originally Posted by Ted Unangst
...The OpenBSD implementation of procfs was written/donated to BSD 15 years ago, back when it was still at Berkeley. In OpenBSD, it has barely changed since, and isn't really maintained or supported...
Quote:
Originally Posted by Bob Beck
For new applications we do not use it, but prefer to use a properly
designed sysctl or ioctl interface to retrieve information from the kernel.
Quote:
Originally Posted by Theo de Raadt
The major reason for moving away from procfs is that there are numerous TOCTOU problems.
The decision to finally remove it occurred in June, after having it broken in tree for a significant length of time. A query regarding the decision was posted to @tech
Reply With Quote
  #4   (View Single Post)  
Old 11th August 2014
st1905 st1905 is offline
Port Guard
 
Join Date: Aug 2014
Posts: 13
Default

Quote:
Originally Posted by jggimi View Post
hello, and welcome.

This was ]discussed in 2009, prior to its eventual removal in June. Developers who commented said:The decision to finally remove it occurred in June, after having it broken in tree for a significant length of time. A query regarding the decision was to @tech
I understand but why linux emulation is still there as an option while significant amount of apps still need procfs to operate ?
Reply With Quote
  #5   (View Single Post)  
Old 11th August 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

I am unable to answer, as I have not paid attention to this part of the code base as I have not used compat_linux(8) myself in at least ten years (for what was then required to build native-mode Java).

I recommend you reach out to Philip Guenther (guenther@) directly, as procfs removal was his recommendation, or ask the group of developers who currently support linux_compat -- guenther@ tedu@, pirofti@, and matthew@. AFAIK, none of these developers participate here.

If you prefer, you could ask this question on misc@. I'm not sure how many people here still use linux_compat. We had one member I'm aware of who used it because he preferred the Opera browser, but he is no longer active, and while he was here he did not have the knowledge or skills to answer technical questions.
Reply With Quote
  #6   (View Single Post)  
Old 11th August 2014
st1905 st1905 is offline
Port Guard
 
Join Date: Aug 2014
Posts: 13
Default

Quote:
Originally Posted by jggimi View Post
I am unable to answer, as I have not paid attention to this part of the code base as I have not used compat_linux(8) myself in at least ten years (for what was then required to build native-mode Java).

I recommend you reach out to Philip Guenther (guenther@) directly, as procfs removal was his recommendation, or ask the group of developers who currently support linux_compat -- guenther@ tedu@, pirofti@, and matthew@. AFAIK, none of these developers participate here.

If you prefer, you could ask this question on misc@. I'm not sure how many people here still use linux_compat. We had one member I'm aware of who used it because he preferred the Opera browser, but he is no longer active, and while he was here he did not have the knowledge or skills to answer technical questions.
Thank you.
Reply With Quote
  #7   (View Single Post)  
Old 20th August 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

guenther@ just asked for additional information on procfs use in response to a user-submitted patch:

http://marc.info/?l=openbsd-tech&m=140851172004042&w=2

If you need procfs, you should explain your requirement to him.
Reply With Quote
  #8   (View Single Post)  
Old 20th August 2014
st1905 st1905 is offline
Port Guard
 
Join Date: Aug 2014
Posts: 13
Default

Quote:
Originally Posted by jggimi View Post
guenther@ just asked for additional information on procfs use in response to a user-submitted patch:

http://marc.info/?l=openbsd-tech&m=140851172004042&w=2

If you need procfs, you should explain your requirement to him.
Instead of using procfs i`ve installed freebsd since it has linprocfs enabled there.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
enabling linux binary emulation .. could it harm ? daemonfowl OpenBSD Security 7 30th July 2012 02:20 PM
Why does the opera need linux emulation ? sw2wolf OpenBSD Packages and Ports 6 20th March 2012 12:18 PM
Firefox long term support shep News 0 3rd February 2012 02:40 AM
shared libraries and linux emulation Business_woman FreeBSD General 4 16th November 2008 10:03 AM
Linux emulation Mr-Biscuit FreeBSD General 2 9th October 2008 09:44 PM


All times are GMT. The time now is 08:25 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick