aboutsummaryrefslogtreecommitdiff
path: root/sway/main.c
AgeCommit message (Collapse)Author
2018-07-02log_kernel: s/fclose/pclose/ (for popen'd FILE)Dominique Martinet
With recent glibc the functions are strictly identical, but this might not be true for all libc implementations Found through static analysis.
2018-06-19Perform (partial) server initialization before dropping privileges.Tobias Blass
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.
2018-06-05Remove suspicious unconditional returnTobias Blass
This return effectively disables the log_kernel function
2018-05-16sway: run commands without waiting for XwaylandDominique Martinet
Xwayland is lazy now, there is no need to wait at all
2018-04-06Add debug tree viewDrew DeVault
2018-03-31temporarily add LD_LIBRARY_PATH stuffTony Crisci
2018-03-29Revert "Merge pull request #1653 from swaywm/revert-1647-refactor-tree"Tony Crisci
This reverts commit 472e81f35d689d67cda241acafda91c688d61046, reversing changes made to 6b7841b11ff4cd35f54d69dc92029855893e5ce0.
2018-03-29Revert "Refactor tree"Drew DeVault
2018-03-29rename layout initTony Crisci
2018-03-29move tree includes to their own directoryTony Crisci
2018-01-05fix typos in comments/messages; add shutting down messageDominique Martinet
2017-12-31Consolidate WLR and Sway loggingCalvin Lee
See #1390
2017-12-16Merge branch 'wlroots' into feature/inputTony Crisci
2017-12-15xkb configTony Crisci
2017-12-09working xcursorTony Crisci
2017-12-06Add output configemersion
2017-12-05Add minimal config subsystememersion
2017-12-02log env after ipc initTony Crisci
2017-11-28remove nvidia support claimTony Crisci
2017-11-22Wire up IPC serverDrew DeVault
2017-11-19Add outputs to the treeDrew DeVault
2017-11-18Move everything to sway/old/Drew DeVault
2017-11-11Initialize outputs from backend and add to treeDrew DeVault
2017-11-11Fire up the wlroots backend and run the event loopDrew DeVault
2017-10-24nvidia: Validate the nvidia_drm module optionsDan Robertson
When the proprietary nvidia driver is used, ensure the modeset option is set instead of checking /proc/cmdline for nvidia-drm.modeset=1.
2017-08-14Check for Raspberry Piazarus
2017-06-06FreeBSD fixesjohalun
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).
2017-05-11Terminate when both suid bit and filecaps are setMykyta Holubakha
2017-05-11Initialise logging earlierMykyta Holubakha
2017-04-26Add -DVERSION flag for release version numbersSebastian Noack
2017-04-12Implement more thourough nvidia config checkDrew DeVault
2017-04-12Downgrade nvidia proprietary driver warningDrew DeVault
2017-04-07Add libcap check to CMakeJerziKaminsky
- 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.
2017-03-10UnGNUify the codebaseDrew DeVault
2017-02-23Move env logging to earlier than wlc_initDrew DeVault
2017-02-20Read configs from /etc/sway/security.d/*Drew DeVault
2017-01-16Unset LD_LIBRARY_PATH, unless specifiedMykyta Holubakha
2017-01-12Log capability droppingMykyta Holubakha
2017-01-12Keep CAP_SYS_PTRACE with suid binaryMykyta Holubakha
2016-12-17Change how security config is loadedDrew DeVault
2016-12-15Handle malloc failures from read_lineDrew DeVault
2016-12-09Fix build on FreeBSDGreg V
- 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
2016-12-04Decrement expected_lenDrew DeVault
2016-12-04Drop restart command from sanity checkDrew DeVault
Since we don't actually have one of those
2016-12-02Check for CAP_SYS_PTRACEDrew DeVault
2016-12-02Deal with LD_LIBRARY_PATHDrew DeVault
2016-12-02Unset LD_PRELOAD on startup (before dropping root)Drew DeVault
LD_PRELOAD enables keyloggers to easily be made. This solution isn't perfect - really a secure system wouldn't have LD_PRELOAD at all. It was a stupid idea in the first place.
2016-12-02Flesh out security_sanity_checkDrew DeVault
2016-12-01Shut Clang upDrew DeVault
2016-12-01Write example security config, start on codeDrew DeVault