• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

porting linux

 
Ranch Hand
Posts: 552
11
Android Python Open BSD VI Editor Slackware
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is safe making porting of linux programs without risking any vulnerability?
 
Saloon Keeper
Posts: 7355
170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 25645
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 552
11
Android Python Open BSD VI Editor Slackware
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 25645
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
reply
    Bookmark Topic Watch Topic
  • New Topic