Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 711064 - net-misc/openssh-8.0_p1-r4: add 'seccomp' USE flag
Summary: net-misc/openssh-8.0_p1-r4: add 'seccomp' USE flag
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-28 21:08 UTC by Sam James
Modified: 2020-02-28 21:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-02-28 21:08:45 UTC
OpenSSH seems to auto-detect libseccomp if it's on the system and enable it. It does not have a USE for seccomp.

>OpenSSH has been configured with the following options:
>  User binaries: /usr/bin
>  System binaries: /usr/sbin
>  Configuration files: /etc/ssh
>   ...
>  Random number source: OpenSSL internal ONLY
>  Privsep sandbox style: seccomp_filter

Reproducible: Always

Steps to Reproduce:
USE="-seccomp" emerge -v openssh
Actual Results:  
The build system detects libseccomp on the system and enables it regardless of seccomp USE flag.

Expected Results:  
seccomp should be disabled for openssh
Comment 1 Mike Gilbert gentoo-dev 2020-02-28 21:20:38 UTC
(In reply to sam_c - Security Padawan from comment #0)
> OpenSSH seems to auto-detect libseccomp if it's on the system and enable it.
> It does not have a USE for seccomp.

OpenSSH does not utilize libseccomp; it makes the necessary system calls directly.

Given that there is no external dependency, I don't see much point in adding a USE flag.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-02-28 21:30:24 UTC
I agree, I didn't notice that it wasn't actually using libseccomp. 

I don't think there's much need to provide a USE flag just to let people shoot themselves in the foot with less sandboxing.