Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
65a64fdc
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
65a64fdc
编写于
9月 17, 2012
作者:
S
sla
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7193201: [OS X] The development launcher should be signed and given task_for_pid privileges
Reviewed-by: sspitsyn, nloodin, mgronlun, coleenp
上级
f9c63c12
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
30 addition
and
7 deletion
+30
-7
make/bsd/makefiles/launcher.make
make/bsd/makefiles/launcher.make
+12
-7
src/os/bsd/launcher/Info-privileged.plist
src/os/bsd/launcher/Info-privileged.plist
+18
-0
未找到文件。
make/bsd/makefiles/launcher.make
浏览文件 @
65a64fdc
...
...
@@ -19,7 +19,7 @@
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
#
# Rules to build gamma launcher, used by vm.make
...
...
@@ -41,6 +41,8 @@ LAUNCHERFLAGS := $(ARCHFLAG) \
-DLAUNCHER_TYPE
=
\"
gamma
\"
\
-DLINK_INTO_
$(LINK_INTO)
\
$(TARGET_DEFINES)
# Give the launcher task_for_pid() privileges so that it can be used to run JStack, JInfo, et al.
LFLAGS_LAUNCHER
+=
-sectcreate
__TEXT __info_plist
$(GAMMADIR)
/src/os/bsd/launcher/Info-privileged.plist
ifeq
($(LINK_INTO),AOUT)
LAUNCHER.o
=
launcher.o
$(JVM_OBJ_FILES)
...
...
@@ -50,22 +52,22 @@ ifeq ($(LINK_INTO),AOUT)
LIBS_LAUNCHER
+=
$(STATIC_STDCXX)
$(LIBS)
else
LAUNCHER.o
=
launcher.o
LFLAGS_LAUNCHER
+=
-L
`
pwd
`
LFLAGS_LAUNCHER
+=
-L
`
pwd
`
# The gamma launcher runs the JDK from $JAVA_HOME, overriding the JVM with a
# freshly built JVM at ./libjvm.{so|dylib}. This is accomplished by setting
# the library searchpath using ({DY}LD_LIBRARY_PATH) to find the local JVM
# freshly built JVM at ./libjvm.{so|dylib}. This is accomplished by setting
# the library searchpath using ({DY}LD_LIBRARY_PATH) to find the local JVM
# first. Gamma dlopen()s libjava from $JAVA_HOME/jre/lib{/$arch}, which is
# statically linked with CoreFoundation framework libs. Unfortunately, gamma's
# unique searchpath results in some unresolved symbols in the framework
# unique searchpath results in some unresolved symbols in the framework
# libraries, because JDK libraries are inadvertently discovered first on the
# searchpath, e.g. libjpeg. On Mac OS X, filenames are case *insensitive*.
# So, the actual filename collision is libjpeg.dylib and libJPEG.dylib.
# To resolve this, gamma needs to also statically link with the CoreFoundation
# To resolve this, gamma needs to also statically link with the CoreFoundation
# framework libraries.
ifeq
($(OS_VENDOR),Darwin)
LFLAGS_LAUNCHER
+=
-framework
CoreFoundation
LFLAGS_LAUNCHER
+=
-framework
CoreFoundation
endif
LIBS_LAUNCHER
+=
-l
$(JVM)
$(LIBS)
...
...
@@ -101,6 +103,9 @@ $(LAUNCHER): $(OBJS) $(LIBJVM) $(LAUNCHER_MAPFILE)
$(QUIETLY)
$
(
LINK_LAUNCHER/PRE_HOOK
)
$(QUIETLY)
$(LINK_LAUNCHER)
$(LFLAGS_LAUNCHER)
-o
$@
$(OBJS)
$(LIBS_LAUNCHER)
$(QUIETLY)
$
(
LINK_LAUNCHER/POST_HOOK
)
# Sign the launcher with the development certificate
(
if
present
)
so that it can be used
# to run JStack, JInfo, et al.
$(QUIETLY)
-codesign
-s
openjdk_codesign
$@
$(LAUNCHER)
:
$(LAUNCHER_SCRIPT)
...
...
src/os/bsd/launcher/Info-privileged.plist
0 → 100644
浏览文件 @
65a64fdc
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
CFBundleIdentifier
</key>
<string>
net.java.openjdk.cmd
</string>
<key>
CFBundleInfoDictionaryVersion
</key>
<string>
6.0
</string>
<key>
CFBundleName
</key>
<string>
OpenJDK Command
</string>
<key>
CFBundleShortVersionString
</key>
<string>
1.0
</string>
<key>
CFBundleVersion
</key>
<string>
1.0
</string>
<key>
SecTaskAccess
</key>
<string>
allowed
</string>
</dict>
</plist>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录