【问题标题】:SRP Rules (Group Policy) for mingw32-makemingw32-make 的 SRP 规则(组策略)
【发布时间】:2013-10-05 00:24:15
【问题描述】:

我在我的 PC 上设置了软件限制策略。每当我尝试从命令行使用 mingw32-make 时,都会得到以下信息:

mingw32-make.exe -j 4 -e -f  Makefile
This program is blocked by group policy. For more information, contact your system administrator.
mingw32-make.exe: *** [All] Error 1
Makefile:4: recipe for target `All' failed

在软件限制策略中,我有一个C:\MinGw 的路径规则。 另外,如果输入命令行mingw32-make.exe,在没有makefile的文件夹中,这就是我得到的:

mingw32-make: *** No targets specified and no makefile found. Stop.

我猜 ming32-make 运行的是 SRP 下不允许的辅助可执行文件。 有谁知道这个程序可能是什么?

【问题讨论】:

    标签: mingw32 group-policy


    【解决方案1】:

    我发现事件查看器会记录 SRP 何时阻止某些内容。使用它,我发现 mingw32-make 在用户的 %TEMP% 文件夹中创建了一个 .bat 文件。然后我在 SRP 中将该 .bat 文件列入白名单。它需要一个通配符,因为 .bat 文件名的一部分是随机生成的。

    但是,这将允许执行任何与通配符匹配的 .bat 文件。这允许恶意文件在匹配通配符时运行。

    【讨论】:

      猜你喜欢
      • 2014-07-26
      • 1970-01-01
      • 2017-11-11
      • 2012-01-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-17
      • 2012-11-15
      相关资源
      最近更新 更多