Updated sandbox patch.
policycoreutils/Makefile +1 -1
@@ -1,4 +1,4 @@ -SUBDIRS = setfiles semanage load_policy newrole run_init secon audit2allow audit2why scripts sestatus semodule_package semodule semodule_link semodule_expand semodule_deps setsebool po +SUBDIRS = setfiles semanage load_policy newrole run_init sandbox secon audit2allow audit2why scripts sestatus semodule_package semodule semodule_link semodule_expand semodule_deps setsebool po INOTIFYH = $(shell ls /usr/include/sys/inotify.h 2>/dev/null)
policycoreutils/sandbox/Makefile new file +41 -0
41 lines not on this page · raw message
policycoreutils/sandbox/sandbox new file +420 -0
420 lines not on this page · raw message
policycoreutils/sandbox/sandbox.8 new file +56 -0
56 lines not on this page · raw message
policycoreutils/sandbox/sandbox.config new file +2 -0
@@ -0,0 +1,2 @@ +# Space separate list of homedirs +HOMEDIRS="/home"
policycoreutils/sandbox/sandbox.init new file +67 -0
67 lines not on this page · raw message
policycoreutils/sandbox/sandboxX.sh new file +15 -0
@@ -0,0 +1,15 @@ +#!/bin/bash +context=`id -Z | secon -t -l -P` +export TITLE="Sandbox $context -- `grep ^#TITLE: ~/.sandboxrc | /usr/bin/cut -b8-80`" +export SCREENSIZE="1000x700" +#export SCREENSIZE=`xdpyinfo | awk '/dimensions/ { print $2 }'` +trap "exit 0" HUP + +(/usr/bin/Xephyr -title "$TITLE" -terminate -screen $SCREENSIZE -displayfd 5 5>&1 2>/dev/null) | while read D; do + export DISPLAY=:$D + python -c 'import gtk, os; os.system("%s/.sandboxrc" % os.environ["HOME"])' + export EXITCODE=$? + kill -HUP 0 + break +done +exit 0
policycoreutils/sandbox/seunshare.c new file +265 -0
265 lines not on this page · raw message
policycoreutils/sandbox/test_sandbox.py new file +98 -0
98 lines not on this page · raw message