Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 307 Lines • ▼ Show 20 Line(s) | |||||
308 | include(CheckIncludeFile) | 308 | include(CheckIncludeFile) | ||
309 | include(CheckIncludeFiles) | 309 | include(CheckIncludeFiles) | ||
310 | include(CheckSymbolExists) | 310 | include(CheckSymbolExists) | ||
311 | check_include_files(unistd.h HAVE_UNISTD_H) | 311 | check_include_files(unistd.h HAVE_UNISTD_H) | ||
312 | check_include_files(malloc.h HAVE_MALLOC_H) | 312 | check_include_files(malloc.h HAVE_MALLOC_H) | ||
313 | 313 | | |||
314 | check_include_file("sys/prctl.h" HAVE_SYS_PRCTL_H) | 314 | check_include_file("sys/prctl.h" HAVE_SYS_PRCTL_H) | ||
315 | check_symbol_exists(PR_SET_DUMPABLE "sys/prctl.h" HAVE_PR_SET_DUMPABLE) | 315 | check_symbol_exists(PR_SET_DUMPABLE "sys/prctl.h" HAVE_PR_SET_DUMPABLE) | ||
316 | check_symbol_exists(PR_SET_PDEATHSIG "sys/prctl.h" HAVE_PR_SET_PDEATHSIG) | ||||
316 | check_include_file("sys/procctl.h" HAVE_SYS_PROCCTL_H) | 317 | check_include_file("sys/procctl.h" HAVE_SYS_PROCCTL_H) | ||
317 | check_symbol_exists(PROC_TRACE_CTL "sys/procctl.h" HAVE_PROC_TRACE_CTL) | 318 | check_symbol_exists(PROC_TRACE_CTL "sys/procctl.h" HAVE_PROC_TRACE_CTL) | ||
318 | if (HAVE_PR_SET_DUMPABLE OR HAVE_PROC_TRACE_CTL) | 319 | if (HAVE_PR_SET_DUMPABLE OR HAVE_PROC_TRACE_CTL) | ||
319 | set(CAN_DISABLE_PTRACE TRUE) | 320 | set(CAN_DISABLE_PTRACE TRUE) | ||
320 | endif() | 321 | endif() | ||
321 | add_feature_info("prctl/procctl tracing control" | 322 | add_feature_info("prctl/procctl tracing control" | ||
322 | CAN_DISABLE_PTRACE | 323 | CAN_DISABLE_PTRACE | ||
323 | "Required for disallowing ptrace on kwin_wayland process") | 324 | "Required for disallowing ptrace on kwin_wayland process") | ||
▲ Show 20 Lines • Show All 332 Lines • Show Last 20 Lines |