Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 294 Lines • ▼ Show 20 Line(s) | |||||
295 | include(CheckIncludeFile) | 295 | include(CheckIncludeFile) | ||
296 | include(CheckIncludeFiles) | 296 | include(CheckIncludeFiles) | ||
297 | include(CheckSymbolExists) | 297 | include(CheckSymbolExists) | ||
298 | check_include_files(unistd.h HAVE_UNISTD_H) | 298 | check_include_files(unistd.h HAVE_UNISTD_H) | ||
299 | check_include_files(malloc.h HAVE_MALLOC_H) | 299 | check_include_files(malloc.h HAVE_MALLOC_H) | ||
300 | 300 | | |||
301 | check_include_file("sys/prctl.h" HAVE_SYS_PRCTL_H) | 301 | check_include_file("sys/prctl.h" HAVE_SYS_PRCTL_H) | ||
302 | check_symbol_exists(PR_SET_DUMPABLE "sys/prctl.h" HAVE_PR_SET_DUMPABLE) | 302 | check_symbol_exists(PR_SET_DUMPABLE "sys/prctl.h" HAVE_PR_SET_DUMPABLE) | ||
303 | add_feature_info("prctl-dumpable" HAVE_PR_SET_DUMPABLE "Required for disallow ptrace on kwin_wayland process") | 303 | check_include_file("sys/procctl.h" HAVE_SYS_PROCCTL_H) | ||
304 | check_symbol_exists(PROC_TRACE_CTL "sys/procctl.h" HAVE_PROC_TRACE_CTL) | ||||
305 | if (HAVE_PR_SET_DUMPABLE OR HAVE_PROC_TRACE_CTL) | ||||
306 | set(CAN_DISABLE_PTRACE TRUE) | ||||
307 | endif() | ||||
308 | add_feature_info("prctl/procctl tracing control" | ||||
309 | CAN_DISABLE_PTRACE | ||||
310 | "Required for disallowing ptrace on kwin_wayland process") | ||||
304 | 311 | | |||
305 | configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h ) | 312 | configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h ) | ||
306 | 313 | | |||
307 | 314 | | |||
308 | ########### global ############### | 315 | ########### global ############### | ||
309 | set(kwin_effects_dbus_xml ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kwin.Effects.xml) | 316 | set(kwin_effects_dbus_xml ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kwin.Effects.xml) | ||
310 | 317 | | |||
311 | include_directories(BEFORE | 318 | include_directories(BEFORE | ||
▲ Show 20 Lines • Show All 320 Lines • Show Last 20 Lines |