Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 355587

Summary: net-misc/openssh-5.8_p1 does not compile with SeLinux activated
Product: Gentoo Linux Reporter: lkml_ccc
Component: HardenedAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: critical CC: hardened
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Bugfix

Description lkml_ccc 2011-02-19 16:47:11 UTC
Upgrading openssh on a hardened selinux system fails with the following error:
port-linux.c: In function ‘ssh_selinux_setfscreatecon’:
port-linux.c:212: warning: unused variable ‘context’
port-linux.c: At top level:
port-linux.c:220: error: expected identifier or ‘(’ before ‘if’
port-linux.c:222: error: expected identifier or ‘(’ before ‘}’ token

It looks like it has a '{' missing.


Reproducible: Always

Steps to Reproduce:
1.Use a Gentoo Hardened system with SeLinux
2.Install or upgrade OpenSH 5.8 p1

Actual Results:  
port-linux.c: In function ‘ssh_selinux_setfscreatecon’:
port-linux.c:212: warning: unused variable ‘context’
port-linux.c: At top level:
port-linux.c:220: error: expected identifier or ‘(’ before ‘if’
port-linux.c:222: error: expected identifier or ‘(’ before ‘}’ token


Expected Results:  
Installation of OpenSSH 5.8p1
Comment 1 lkml_ccc 2011-02-19 16:52:58 UTC
Created attachment 263067 [details, diff]
Bugfix

This simple change solves the problem.
Comment 2 Anthony Basile gentoo-dev 2011-02-19 17:26:15 UTC
Yep, just hit this.  Tested the fix and it works.

@base-system, I unpacked the source tarball before any of our patches were applied and it looks like the syntax error comes from upstream, ie, its in openssh-5.8p1.tar.gz.
Comment 3 SpanKY gentoo-dev 2011-02-19 17:41:28 UTC

*** This bug has been marked as a duplicate of bug 354247 ***