Skip to content

Commit

Permalink
make sure people call addread/addwrite/adddeny/addpredict correctly
Browse files Browse the repository at this point in the history
svn path=/main/trunk/; revision=5632
  • Loading branch information
vapier committed Jan 13, 2007
1 parent df6bb77 commit 0c64542
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/ebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,22 @@ export SANDBOX_ON="0"

# sandbox support functions; defined prior to profile.bashrc srcing, since the profile might need to add a default exception (/usr/lib64/conftest fex)
addread() {
[[ -z $1 || -n $2 ]] && die "Usage: addread <colon-delimited list of paths>"
export SANDBOX_READ="$SANDBOX_READ:$1"
}

addwrite() {
[[ -z $1 || -n $2 ]] && die "Usage: addwrite <colon-delimited list of paths>"
export SANDBOX_WRITE="$SANDBOX_WRITE:$1"
}

adddeny() {
[[ -z $1 || -n $2 ]] && die "Usage: adddeny <colon-delimited list of paths>"
export SANDBOX_DENY="$SANDBOX_DENY:$1"
}

addpredict() {
[[ -z $1 || -n $2 ]] && die "Usage: addpredict <colon-delimited list of paths>"
export SANDBOX_PREDICT="$SANDBOX_PREDICT:$1"
}

Expand Down

0 comments on commit 0c64542

Please sign in to comment.