[Exherbo-dev] [RFC/PATCH v2 1/1] sydbox: add esandbox exec for sydbox-1

Ali Polatel alip at exherbo.org
Sat Oct 6 14:11:41 UTC 2012


---
 paludis/repositories/e/ebuild/sydbox.bash | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/paludis/repositories/e/ebuild/sydbox.bash b/paludis/repositories/e/ebuild/sydbox.bash
index 7628e65..7e24e42 100644
--- a/paludis/repositories/e/ebuild/sydbox.bash
+++ b/paludis/repositories/e/ebuild/sydbox.bash
@@ -223,6 +223,10 @@ esandbox_1()
         [[ ${#} < 1 ]] && die "${FUNCNAME} ${cmd} takes at least one extra argument"
         sydbox_internal_net_1 "filter/network" '-' "${@}"
         ;;
+    exec)
+        [[ ${#} < 1 ]] && die "${FUNCNAME} ${cmd} takes at least one extra argument"
+        [[ -e "$(sydfmt exec ${@})" ]]
+        ;;
     kill)
         [[ ${#} < 1 ]] && die "${FUNCNAME} ${cmd} takes at least one extra argument"
         sydbox_internal_path_1 "exec/kill_if_match" "+" "${@}"
@@ -348,7 +352,7 @@ esandbox_0() {
         [[ ${#} < 1 ]] && die "${FUNCNAME} ${cmd} takes at least one extra argument"
         sydbox_internal_net "rmfilter_net" "${@}"
         ;;
-    kill|resume)
+    exec|kill|resume)
         ebuild_notice "warning" "${FUNCNAME} ${cmd} is not implemented for sydbox-0"
         ;;
     *)
-- 
1.7.12.1




More information about the Exherbo-dev mailing list