Re: make COMPAT_LINUX match SYSV binaries

2020-10-21 Thread coypu
On Wed, Oct 21, 2020 at 04:02:41PM +, Eduardo Horvath wrote: > On Wed, 21 Oct 2020, co...@sdf.org wrote: > > > In the event someone adds support for another OS with this problem (say, > > modern Solaris), I don't expect this compat to be enabled by default, > > for security reasons. So the

Re: make COMPAT_LINUX match SYSV binaries

2020-10-21 Thread coypu
On Tue, Oct 20, 2020 at 07:11:05PM +, co...@sdf.org wrote: > hello, > > As a background, some Linux binaries don't claim to be targeting the > Linux OS, but instead are "SYSV". > > We have used some heuristics to still identify those binaries as being > Linux binaries, like looking into the

Re: make COMPAT_LINUX match SYSV binaries

2020-10-21 Thread Eduardo Horvath
On Wed, 21 Oct 2020, co...@sdf.org wrote: > In the event someone adds support for another OS with this problem (say, > modern Solaris), I don't expect this compat to be enabled by default, > for security reasons. So the problem will only occur if a user enables > both forms of compat at the same

Re: make COMPAT_LINUX match SYSV binaries

2020-10-21 Thread Greg Troxel
co...@sdf.org writes: > I feel compelled to explain further: > any OS that doesn't rely on this tag is prone to spitting out binaries > with the wrong tag. For example, Go spits out Solaris binaries with SYSV > as well. > > Our current solution to it is the kernel reading through the binary, >

Re: make COMPAT_LINUX match SYSV binaries

2020-10-21 Thread Kamil Rytarowski
On 21.10.2020 14:14, co...@sdf.org wrote: > On Tue, Oct 20, 2020 at 07:11:05PM +, co...@sdf.org wrote: >> hello, >> >> As a background, some Linux binaries don't claim to be targeting the >> Linux OS, but instead are "SYSV". >> >> We have used some heuristics to still identify those binaries

make COMPAT_LINUX match SYSV binaries

2020-10-20 Thread coypu
hello, As a background, some Linux binaries don't claim to be targeting the Linux OS, but instead are "SYSV". We have used some heuristics to still identify those binaries as being Linux binaries, like looking into the symbols defined by the binary. it looks like we no longer have other forms

Re: make COMPAT_LINUX match SYSV binaries

2020-10-20 Thread Greg Troxel
co...@sdf.org writes: > As a background, some Linux binaries don't claim to be targeting the > Linux OS, but instead are "SYSV". > > We have used some heuristics to still identify those binaries as being > Linux binaries, like looking into the symbols defined by the binary. > > it looks like we