Skip to content

Commit cd6f6b7

Browse files
authored
[Auditor] Add a bunch of macOS libraries/frameworks to be ignored (#1207)
1 parent 606055a commit cd6f6b7

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

src/auditor/dynamic_linkage.jl

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,30 +203,58 @@ function should_ignore_lib(lib, ::ELFHandle, platform::AbstractPlatform)
203203
end
204204
function should_ignore_lib(lib, ::MachOHandle, platform::AbstractPlatform)
205205
ignore_libs = [
206-
"libsystem.b.dylib",
206+
"libbsm.0.dylib",
207+
"libcups.2.dylib",
207208
"libobjc.a.dylib",
209+
"libpmenergy.dylib",
210+
"libpmsample.dylib",
211+
"libsandbox.1.dylib",
212+
"libsystem.b.dylib",
208213
# This is not built by clang or GCC, so we leave it as a system library
209214
"libc++.1.dylib",
210215
"libresolv.9.dylib",
211216
# Frameworks in the SDK
217+
"accelerate",
212218
"appkit",
219+
"applicationservices",
220+
"audiotoolbox",
221+
"audiounit",
222+
"avfoundation",
213223
"carbon",
224+
"cfnetwork",
214225
"cocoa",
215226
"coreaudio",
227+
"corebluetooth",
216228
"corefoundation",
217229
"coregraphics",
230+
"corelocation",
231+
"coremedia",
218232
"coremidi",
219233
"coreservices",
234+
"coretext",
235+
"corevideo",
236+
"corewlan",
220237
"diskarbitration",
238+
"forcefeedback",
221239
"foundation",
240+
"gamecontroller",
241+
"imageio",
242+
"iobluetooth",
222243
"iokit",
244+
"iosurface",
245+
"localauthentication",
246+
"mediaaccessibility",
223247
"metal",
224248
"metalkit",
225249
"opencl",
226250
"opengl",
251+
"opendirectory",
252+
"quartz",
227253
"quartzcore",
228254
"security",
255+
"securityinterface",
229256
"systemconfiguration",
257+
"videotoolbox",
230258
]
231259
return lowercase(basename(lib)) in ignore_libs
232260
end

0 commit comments

Comments
 (0)