aboutsummaryrefslogtreecommitdiffstats
path: root/sway/main.c
Commit message (Collapse)AuthorAge
...
* Update for swaywm/wlroots#1126Libravatar emersion2018-07-09
|
* pango/cairo: set default font map to NULL to free itLibravatar Dominique Martinet2018-07-05
|
* ipc-server: add display destroy listener and remove ipc_terminateLibravatar Dominique Martinet2018-07-04
| | | | | | | | | | | | | | | | | | | | | | | | | wl_event_source_remove() is illegal after display has been destroyed, so just destroy everything when we still can. ==20392==ERROR: AddressSanitizer: heap-use-after-free on address 0x607000001240 at pc 0x00000048e86e bp 0x7ffe4b557e00 sp 0x7ffe4b557df0 READ of size 8 at 0x607000001240 thread T0 #0 0x48e86d in wl_list_insert ../common/list.c:149 #1 0x7fdf673d4d7d in wl_event_source_remove src/event-loop.c:487 #2 0x41b742 in ipc_terminate ../sway/ipc-server.c:94 #3 0x40b1ad in main ../sway/main.c:440 #4 0x7fdf6664c18a in __libc_start_main ../csu/libc-start.c:308 #5 0x409359 in _start (/opt/wayland/bin/sway+0x409359) 0x607000001240 is located 48 bytes inside of 72-byte region [0x607000001210,0x607000001258) freed by thread T0 here: #0 0x7fdf692c4880 in __interceptor_free (/lib64/libasan.so.5+0xee880) #1 0x7fdf673d371a in wl_display_destroy src/wayland-server.c:1097 previously allocated by thread T0 here: #0 0x7fdf692c4c48 in malloc (/lib64/libasan.so.5+0xeec48) #1 0x7fdf673d4d9e in wl_event_loop_create src/event-loop.c:522 #2 0x40acb2 in main ../sway/main.c:363 #3 0x7fdf6664c18a in __libc_start_main ../csu/libc-start.c:308
* startup: move setenv WAYLAND_DISPLAY before config execsLibravatar Dominique Martinet2018-07-04
| | | | | | | | | We would previously run all config commands without the environment, which would appear to work as our socket name is the default one, but wayland clients would start up in the wrong sway session. (This explains why 'sometimes' my swayidle processes wouldn't die with sway, as they weren't listening to the correct socket)
* log_kernel: s/fclose/pclose/ (for popen'd FILE)Libravatar Dominique Martinet2018-07-02
| | | | | | | With recent glibc the functions are strictly identical, but this might not be true for all libc implementations Found through static analysis.
* Perform (partial) server initialization before dropping privileges.Libravatar Tobias Blass2018-06-19
| | | | | | | | Some operations during backend creation (e.g. becoming DRM master) require CAP_SYS_ADMIN privileges. At this point, sway has dropped them already, though. This patch splits the privileged part of server_init into its own function and calls it before dropping its privileges. This fixes the bug with minimal security implications.
* Remove suspicious unconditional returnLibravatar Tobias Blass2018-06-05
| | | | This return effectively disables the log_kernel function
* sway: run commands without waiting for XwaylandLibravatar Dominique Martinet2018-05-16
| | | | Xwayland is lazy now, there is no need to wait at all
* Add debug tree viewLibravatar Drew DeVault2018-04-06
|
* temporarily add LD_LIBRARY_PATH stuffLibravatar Tony Crisci2018-03-31
|
* Revert "Merge pull request #1653 from swaywm/revert-1647-refactor-tree"Libravatar Tony Crisci2018-03-29
| | | | | This reverts commit 472e81f35d689d67cda241acafda91c688d61046, reversing changes made to 6b7841b11ff4cd35f54d69dc92029855893e5ce0.
* Revert "Refactor tree"Libravatar Drew DeVault2018-03-29
|
* rename layout initLibravatar Tony Crisci2018-03-29
|
* move tree includes to their own directoryLibravatar Tony Crisci2018-03-29
|
* fix typos in comments/messages; add shutting down messageLibravatar Dominique Martinet2018-01-05
|
* Consolidate WLR and Sway loggingLibravatar Calvin Lee2017-12-31
| | | | See #1390
* Merge branch 'wlroots' into feature/inputLibravatar Tony Crisci2017-12-16
|\
| * Add output configLibravatar emersion2017-12-06
| |
* | xkb configLibravatar Tony Crisci2017-12-15
| |
* | working xcursorLibravatar Tony Crisci2017-12-09
|/
* Add minimal config subsystemLibravatar emersion2017-12-05
|
* log env after ipc initLibravatar Tony Crisci2017-12-02
|
* remove nvidia support claimLibravatar Tony Crisci2017-11-28
|
* Wire up IPC serverLibravatar Drew DeVault2017-11-22
|
* Add outputs to the treeLibravatar Drew DeVault2017-11-19
|
* Move everything to sway/old/Libravatar Drew DeVault2017-11-18
|
* Initialize outputs from backend and add to treeLibravatar Drew DeVault2017-11-11
|
* Fire up the wlroots backend and run the event loopLibravatar Drew DeVault2017-11-11
|
* nvidia: Validate the nvidia_drm module optionsLibravatar Dan Robertson2017-10-24
| | | | | When the proprietary nvidia driver is used, ensure the modeset option is set instead of checking /proc/cmdline for nvidia-drm.modeset=1.
* Check for Raspberry PiLibravatar azarus2017-08-14
|
* FreeBSD fixesLibravatar johalun2017-06-06
| | | | | | | Increase _POSIX_SOURCE value where needed. Increase _XOPEN_SOURCE value where needed. Conditionally link to libcap (only on Linux). Possibly some trailing whitespace fixes (automatic).
* Terminate when both suid bit and filecaps are setLibravatar Mykyta Holubakha2017-05-11
|
* Initialise logging earlierLibravatar Mykyta Holubakha2017-05-11
|
* Add -DVERSION flag for release version numbersLibravatar Sebastian Noack2017-04-26
|
* Implement more thourough nvidia config checkLibravatar Drew DeVault2017-04-12
|
* Downgrade nvidia proprietary driver warningLibravatar Drew DeVault2017-04-12
|
* Add libcap check to CMakeLibravatar JerziKaminsky2017-04-07
| | | | | | | | | | | - Moved ``<sys/capability.h>`` include inside `__linux__` guard, because all uses are similarly guarded. - <sys/capability.h> is part of an optional devel package, at least in fedora. CMake now explicitly checks that libcap devel files are available. - Added libcap to the list of install packages in .travis.yml, to make the dependency explicit. travis-ci installs the package by default, which is why this hasn't surfaced previously.
* UnGNUify the codebaseLibravatar Drew DeVault2017-03-10
|
* Move env logging to earlier than wlc_initLibravatar Drew DeVault2017-02-23
|
* Read configs from /etc/sway/security.d/*Libravatar Drew DeVault2017-02-20
|
* Unset LD_LIBRARY_PATH, unless specifiedLibravatar Mykyta Holubakha2017-01-16
|
* Log capability droppingLibravatar Mykyta Holubakha2017-01-12
|
* Keep CAP_SYS_PTRACE with suid binaryLibravatar Mykyta Holubakha2017-01-12
|
* Change how security config is loaded0.11-rc3Libravatar Drew DeVault2016-12-17
|
* Handle malloc failures from read_lineLibravatar Drew DeVault2016-12-15
|
* Fix build on FreeBSDLibravatar Greg V2016-12-09
| | | | | | | | | - Make sure CMake always finds absolute paths for Cairo, Pango and GdkPixbuf - Add forgotten json-c include path to swaymsg/CMakeLists.txt - Disable -Werror because of assert warnings - Add correct /proc/pid/file path for FreeBSD - Use libepoll-shim on FreeBSD - Only use Linux capabilities on, well, Linux
* Decrement expected_lenLibravatar Drew DeVault2016-12-04
|
* Drop restart command from sanity checkLibravatar Drew DeVault2016-12-04
| | | | Since we don't actually have one of those
* Check for CAP_SYS_PTRACELibravatar Drew DeVault2016-12-02
|
* Deal with LD_LIBRARY_PATHLibravatar Drew DeVault2016-12-02
|