• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

porting linux

 
Ranch Hand
Posts: 528
10
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is safe making porting of linux programs without risking any vulnerability?
 
Saloon Keeper
Posts: 6385
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Porting from where to where? It just means making a program run on a different platform. That wouldn't normally alter characteristics like security.
 
Saloon Keeper
Posts: 21981
150
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:Porting from where to where? It just means making a program run on a different platform. That wouldn't normally alter characteristics like security.



I believe he means porting from Linux to BSD.

Actually, a lot of popular Linux programs started out under BSD, including the PostgreSQL database and many are multi-targeted.

While BSD is a bit different than Linux in some respects, it's not so different that major rewrites are usually required. Instead there's a master source code tree and commonly the package builders such as rpmbuild will first pull down the pure source, then apply distro-specific patches before doing the actual build. So the main issue in porting from Linux to BSD would involve determining what patches needed to be created and applied.
 
Giovanni Montano
Ranch Hand
Posts: 528
10
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see but since 6.0 lost compatibility https://www.infoworld.com/article/3099038/openbsd-60-tightens-security-by-losing-linux-compatibility.html

In any case if I run software exposed to internet is possible to exploit zero days, I guess although the nice encrypted system of this fabolous underrated system, both the system than the founder, although i bet the system is not so sure as one could think
 
Tim Holloway
Saloon Keeper
Posts: 21981
150
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd never heard of a Linux compatibility layer in BSD, but apparently what is mostly was was a set of functions that allowed you to talk to BSD using Linux commands and service names (within limits).

You wouldn't/should be using Linux compatibility to port an app to BSD. You should be building native BSD under the "unix is Unix" principle that the bulk of all Unix-like OS's is similar. In cases where you have to speak with specific details, such as the Linux D-Bus, you'd put in a patch to talk to the BSD equivalent of D-Bus (assuming there is one). Or simply null it out (since D-Bus isn't a critical part of most Linux apps, anyway, much less non-Linux apps).
 
F is for finger. Can you stick your finger in your nose? Doesn't that feel nice? Now try this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic