2011-04-29 14:34:22 +04:00
|
|
|
#cmakedefine KWIN_BUILD_DECORATIONS 1
|
2011-06-30 15:02:30 +04:00
|
|
|
#cmakedefine KWIN_BUILD_TABBOX 1
|
2012-02-26 14:38:16 +04:00
|
|
|
#cmakedefine KWIN_BUILD_ACTIVITIES 1
|
2012-03-16 11:37:09 +04:00
|
|
|
#define KWIN_NAME "${KWIN_NAME}"
|
2014-06-10 14:05:54 +04:00
|
|
|
#define KWIN_INTERNAL_NAME_X11 "${KWIN_INTERNAL_NAME_X11}"
|
2012-03-16 11:37:09 +04:00
|
|
|
#define KWIN_CONFIG "${KWIN_NAME}rc"
|
2014-08-20 17:43:27 +04:00
|
|
|
#define KWIN_VERSION_STRING "${PROJECT_VERSION}"
|
2015-02-02 11:28:14 +03:00
|
|
|
#define XCB_VERSION_STRING "${XCB_VERSION}"
|
2015-10-01 10:26:12 +03:00
|
|
|
#define KWIN_KILLER_BIN "${CMAKE_INSTALL_FULL_LIBEXECDIR}/kwin_killer_helper"
|
|
|
|
#define KWIN_RULES_DIALOG_BIN "${CMAKE_INSTALL_FULL_LIBEXECDIR}/kwin_rules_dialog"
|
2016-06-20 12:21:16 +03:00
|
|
|
#define KWIN_XCLIPBOARD_SYNC_BIN "${CMAKE_INSTALL_FULL_LIBEXECDIR}/org_kde_kwin_xclipboard_syncer"
|
2014-08-14 16:43:57 +04:00
|
|
|
#cmakedefine01 HAVE_INPUT
|
2015-03-19 13:07:49 +03:00
|
|
|
#cmakedefine01 HAVE_X11_XCB
|
2016-01-13 17:40:02 +03:00
|
|
|
#cmakedefine01 HAVE_X11_XINPUT
|
2015-04-09 15:49:32 +03:00
|
|
|
#cmakedefine01 HAVE_DRM
|
2015-04-10 11:44:07 +03:00
|
|
|
#cmakedefine01 HAVE_GBM
|
2015-05-06 18:47:07 +03:00
|
|
|
#cmakedefine01 HAVE_LIBHYBRIS
|
2015-11-30 10:34:52 +03:00
|
|
|
#cmakedefine01 HAVE_WAYLAND_EGL
|
2015-12-08 13:42:48 +03:00
|
|
|
#cmakedefine01 HAVE_SYS_PRCTL_H
|
|
|
|
#cmakedefine01 HAVE_PR_SET_DUMPABLE
|
Disallow ptrace on greeter and kwin_wayland process on FreeBSD [... for the future]
Summary:
Similar to[[ https://phabricator.kde.org/D1216 | D1216 ]] add procctl call to disable ptrace on FreeBSD.
We cannot do the procfs-lookup to check whether the process is already being run inside gdb -- however, on FreeBSD, we could use the P_TRACED flag of the process to figure this out:
> sys/proc.h:#define P_TRACED 0x00800 /* Debugged process being traced. */
And the code would look something similar to
```
pid_t pid = getpid();
struct procstat *prstat = procstat_open_sysctl();
struct kinfo_proc *procinfo;
unsigned int cnt;
procinfo = procstat_getprocs(prstat, KERN_PROC_PID, pid, &cnt);
long p_flags = procinfo->ki_flag;
int p_traced = p_flags & P_TRACED;
if (p_traced != P_TRACED) {
mode = PROC_TRACE_CTL_DISABLE;
procctl(P_PID, getpid(), PROC_TRACE_CTL, &mode);
}
procstat_freeprocs(prstat,procinfo);
procstat_close(prstat);
```
But as wayland is [far] in the future on FreeBSD, and that check above is a bit lengthy, I think it is enough if we add it once it is needed.
Reviewers: rakuco, graesslin
Reviewed By: graesslin
Subscribers: plasma-devel
Projects: #plasma
Differential Revision: https://phabricator.kde.org/D1425
2016-05-10 09:49:58 +03:00
|
|
|
#cmakedefine01 HAVE_SYS_PROCCTL_H
|
|
|
|
#cmakedefine01 HAVE_PROC_TRACE_CTL
|
2016-04-07 15:25:42 +03:00
|
|
|
#cmakedefine01 HAVE_BREEZE_DECO
|
2016-07-19 11:51:09 +03:00
|
|
|
#cmakedefine01 HAVE_UDEV
|
2016-04-07 15:25:42 +03:00
|
|
|
#if HAVE_BREEZE_DECO
|
|
|
|
#define BREEZE_KDECORATION_PLUGIN_ID "${BREEZE_KDECORATION_PLUGIN_ID}"
|
|
|
|
#endif
|
2014-03-18 12:30:40 +04:00
|
|
|
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
|
|
#cmakedefine HAVE_UNISTD_H 1
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <malloc.h> header file. */
|
|
|
|
#cmakedefine HAVE_MALLOC_H 1
|
2014-06-11 09:51:07 +04:00
|
|
|
|
|
|
|
#cmakedefine XCB_ICCCM_FOUND 1
|
|
|
|
#ifndef XCB_ICCCM_FOUND
|
|
|
|
#define XCB_ICCCM_WM_STATE_WITHDRAWN 0
|
|
|
|
#define XCB_ICCCM_WM_STATE_NORMAL 1
|
|
|
|
#define XCB_ICCCM_WM_STATE_ICONIC 3
|
|
|
|
#endif
|