Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254521 - dev-libs/openssl needs to whitelist /dev/crypto via /etc/sandbox.d/
Summary: dev-libs/openssl needs to whitelist /dev/crypto via /etc/sandbox.d/
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-11 09:14 UTC by Robin Johnson
Modified: 2009-03-25 23:34 UTC (History)
0 users

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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-01-11 09:14:44 UTC
On machines with crypto cards and an openssl built to support them, openssl writes to /dev/crypto very often, even for 'openssl version'. Any configure script or package testsuite that runs the openssl binary causes sandbox to kill the build.

# lspci ...
06:02.0 Co-processor: Hifn Inc. 7955 Security Processor

Sample sandbox error (with dev-perl/Net-SSLeay)
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-29043.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /dev/crypto
A: /dev/crypto
R: /dev/crypto
C: /usr/bin/openssl version 

F: open_wr
S: deny
P: /dev/crypto
A: /dev/crypto
R: /dev/crypto
C: /usr/bin/openssl version 
--------------------------------------------------------------------------------
Comment 1 SpanKY gentoo-dev 2009-01-11 10:15:07 UTC
sandbox doesnt hardcode any paths anymore.  packages should use /etc/sandbox.d/.
Comment 2 SpanKY gentoo-dev 2009-02-07 12:27:16 UTC
is a predict sufficient ?  or does it really need the write to succeed ?
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-02-07 19:32:13 UTC
This is a device, not a file that just gets opened with write perms and not written to. Amongst other things, there's a get_status primitive openssl writes and reads the result back on the device to check that it's usable very early during it's run. 
Comment 4 SpanKY gentoo-dev 2009-02-07 19:38:29 UTC
i dont see how any of that is relevant ... it also doesnt really answer my question ...
Comment 5 SpanKY gentoo-dev 2009-03-25 23:34:04 UTC
added to 0.9.8k