“Kill'ing应用程序,从沙盒应用程序? [英] 'Kill'ing an app, from a sandboxed app?

查看:195
本文介绍了“Kill'ing应用程序,从沙盒应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OK,这是一样简单,因为它听起来:

OK, it's as simple as it sounds :


  • 我有一个完全正常的工作程序

  • 我想'沙箱'吧,按应用商店目前的准则。

问题是:


  • 的应用程序在后台执行(作为 NSTask )中, / bin中/终止命令,当我试图去执行它(启用了沙箱权利),我得到了以下错误:

  • The app is executing in the background (as an NSTask), the /bin/kill command, and when I'm trying to execute it (WITH the sandbox entitlements enabled), I'm getting the following error :

杀:1298:不允许操作

kill: 1298: Operation not permitted

pretty明显。但是,有没有什么办法,这可能是的以合规的沙盒应用绕过

Pretty obvious. However, is there ANY way this could be bypassed in a Sandbox-compliant app?

提示:我的目标是能够杀死附录二,从应用程序A :是否有任何其他方式

Hint : my goal is to be able to kill app B, from app A : is there any other way?

推荐答案

您必须将应用沙盒,因此它可以在自己的隔离环境。它不能杀死任何其他应用程序。

Your app must be sandboxed, so it works in its own quarantined environment. It cannot kill any other app.

我在其中使用kill命令的应用程序商店的应用程序,但它没有沙箱,因此,所有我能做的就是bug修复自6月1日。

I have apps in the app store which use the kill command, but it is not sandboxed, so all I can do is bug fixes since 1 June.

当时有反对kill命令没有指引,但现在是根本不可能的。

Back then there was no guidelines against the kill command, but now it's simply impossible.

这篇关于“Kill'ing应用程序,从沙盒应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆