Gentoo Archives: gentoo-alt

From: Mike Frysinger <vapier@g.o>
To: "C. Bergström" <cbergstrom@×××××××××.com>
Cc: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Any interest in sandbox on (open)solaris?
Date: Thu, 29 Jan 2009 07:56:24
Message-Id: 200901290256.21805.vapier@gentoo.org
In Reply to: Re: [gentoo-alt] Any interest in sandbox on (open)solaris? by "C. Bergström"
1 On Wednesday 28 January 2009 19:01:07 C. Bergström wrote:
2 > It builds.. it runs.. and now trying to get it to run correctly..
3 > (forgive the verbose post please) I've been building everything as
4 > 64bit.. and wonder if I need a 32bit libsandbox.so as well? (I need to
5 > fix scanelf as it's been broken, but that wouldn't account for why rm
6 > gave the same error)
7
8 you need a binary version for whatever you want to protect. if you arent
9 running 32bit programs during normal build/install, then you wont need a 32bit
10 libsandbox. not sure multilib will even work atm with non-standard lib paths
11 though.
12
13 > Small note.. this seems to be needed..
14 > SANDBOX_WRITE="/dev/fd:/proc/self/fd:/dev/dtrace/helper"
15
16 i'm guessing you're only talking about /dev/dtrace/helper ... in that case,
17 you should be able to drop that into /etc/sandbox.d/
18
19 > ld.so.1: install: fatal: libsandbox.so: open failed: No such file or
20 > directory
21
22 this should be fixed in latest sandbox already ... so make sure you're using
23 sandbox-1.3.3 or newer
24
25 > "../libsbutil/sbutil.h", line 101: warning: attribute parameter
26 > "__printf__" is undefined
27
28 i imagine there's an autoconf test somewhere for this i can steal. or we just
29 ignore it.
30
31 > "wrapper-funcs/__wrapper_simple.c", line 31:
32 > warning: assignment type mismatch: pointer to function(pointer to const
33 > char, unsigned long) returning int "=" pointer to void
34 > "symbols.h", line 30: warning: syntax error: empty declaration
35
36 could you post symbols.h as an attachment ? this is generated on the fly, so
37 line numbers are useless w/out the generated file.
38
39 > "wrapper-funcs/__wrapper_simple.c", line 21: syntax error before or at:
40 > __off64_t
41
42 will have to figure out how LFS is handled on opensolaris ... maybe assuming
43 the __XXX form exists is bad mojo.
44 -mike

Replies

Subject Author
Re: [gentoo-alt] Any interest in sandbox on (open)solaris? "C. Bergström" <cbergstrom@×××××××××.com>