2011-04-29 10:34:22 +00:00
|
|
|
#cmakedefine KWIN_BUILD_DECORATIONS 1
|
2011-06-30 11:02:30 +00:00
|
|
|
#cmakedefine KWIN_BUILD_TABBOX 1
|
2012-02-26 10:38:16 +00:00
|
|
|
#cmakedefine KWIN_BUILD_ACTIVITIES 1
|
2012-03-16 07:37:09 +00:00
|
|
|
#define KWIN_NAME "${KWIN_NAME}"
|
2014-06-10 10:05:54 +00:00
|
|
|
#define KWIN_INTERNAL_NAME_X11 "${KWIN_INTERNAL_NAME_X11}"
|
2012-03-16 07:37:09 +00:00
|
|
|
#define KWIN_CONFIG "${KWIN_NAME}rc"
|
2014-08-20 13:43:27 +00:00
|
|
|
#define KWIN_VERSION_STRING "${PROJECT_VERSION}"
|
2015-02-02 08:28:14 +00:00
|
|
|
#define XCB_VERSION_STRING "${XCB_VERSION}"
|
2015-10-01 07:26:12 +00: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 09:21:16 +00:00
|
|
|
#define KWIN_XCLIPBOARD_SYNC_BIN "${CMAKE_INSTALL_FULL_LIBEXECDIR}/org_kde_kwin_xclipboard_syncer"
|
2014-08-14 12:43:57 +00:00
|
|
|
#cmakedefine01 HAVE_INPUT
|
2015-03-19 10:07:49 +00:00
|
|
|
#cmakedefine01 HAVE_X11_XCB
|
2016-01-13 14:40:02 +00:00
|
|
|
#cmakedefine01 HAVE_X11_XINPUT
|
2015-04-09 12:49:32 +00:00
|
|
|
#cmakedefine01 HAVE_DRM
|
2015-04-10 08:44:07 +00:00
|
|
|
#cmakedefine01 HAVE_GBM
|
2015-05-06 15:47:07 +00:00
|
|
|
#cmakedefine01 HAVE_LIBHYBRIS
|
2015-11-30 07:34:52 +00:00
|
|
|
#cmakedefine01 HAVE_WAYLAND_EGL
|
2015-12-08 10:42:48 +00: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 06:49:58 +00:00
|
|
|
#cmakedefine01 HAVE_SYS_PROCCTL_H
|
|
|
|
#cmakedefine01 HAVE_PROC_TRACE_CTL
|
2016-04-07 12:25:42 +00:00
|
|
|
#cmakedefine01 HAVE_BREEZE_DECO
|
2016-07-19 08:51:09 +00:00
|
|
|
#cmakedefine01 HAVE_UDEV
|
2016-04-07 12:25:42 +00:00
|
|
|
#if HAVE_BREEZE_DECO
|
|
|
|
#define BREEZE_KDECORATION_PLUGIN_ID "${BREEZE_KDECORATION_PLUGIN_ID}"
|
|
|
|
#endif
|
2014-03-18 08:30:40 +00: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 05:51:07 +00: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
|