问题描述
我不太明白 Windows 进程特权系统是如何工作的。当我以管理员身份(即提升)启动我的应用程序时,根据 Process Explorer,它的 protected function resolve($name)
{
$config = $this->getConfig($name);
if (is_null($config)) {
throw new invalidargumentexception("Mailer [{$name}] is not defined.");
}
// Once we have created the mailer instance we will set a container instance
// on the mailer. This allows us to resolve mailer classes via containers
// for maximum testability on said classes instead of passing Closures.
$mailer = new Mailer(
$name,$this->app['view'],$this->createSwiftMailer($config),$this->app['events']
);
if ($this->app->bound('queue')) {
$mailer->setQueue($this->app['queue']);
}
// Next we will set all of the global addresses on this mailer,which allows
// for easy unification of all "from" addresses as well as easy debugging
// of sent messages since these will be sent to a single email address.
foreach (['from','reply_to','to','return_path'] as $type) {
$this->setGlobalAddress($mailer,$config,$type);
}
return $mailer;
}
权限存在但被禁用。尽管如此,使用 SeCreateSymbolicLinkPrivilege
创建符号链接效果很好。
我的理解是,应用程序需要使用 CreateSymbolicLink()
请求权限,然后才能执行需要给定权限的操作(将其状态从“已禁用”更改为“已启用”)。显然情况并非如此。这是否意味着提升的进程免于特权检查?我找不到有关该主题的任何文档。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)