summaryrefslogtreecommitdiffstats
path: root/sway/main.c
Commit message (Collapse)AuthorAge
* Move env logging to earlier than wlc_initLibravatar Drew DeVault2017-02-28
|
* 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
|
* Unset LD_PRELOAD on startup (before dropping root)Libravatar Drew DeVault2016-12-02
| | | | | | 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.
* Flesh out security_sanity_checkLibravatar Drew DeVault2016-12-02
|
* Shut Clang upLibravatar Drew DeVault2016-12-01
|
* Write example security config, start on codeLibravatar Drew DeVault2016-12-01
|
* Log LD_LIBRARY_PATHLibravatar Drew DeVault2016-10-27
|
* Remove duplicate redhat-release lineLibravatar Drew DeVault2016-10-27
|
* Log uname -a on startupLibravatar Drew DeVault2016-10-27
|
* Log contents of distro version filesLibravatar Drew DeVault2016-10-27
|
* Log important env vars on startupLibravatar Drew DeVault2016-10-27
|
* moved ipc_init above config file processing.Libravatar Patrick Sauter2016-10-02
| | | | | | | This is necessary because commands in the config file (mode for instance) emit ipc events, and if ipc_init has not been called the ipc_clients_list is not initialized, and we segfault. This fixes that bug.
* Split setgid and setuid, add privilege checkLibravatar D.B2016-09-20
| | | | | | | This commit deals with issue #884. I consulted the following sources: https://www.securecoding.cert.org/confluence/display/c/POS36-C.+Observe+correct+revocation+order+while+relinquishing+privileges and https://www.securecoding.cert.org/confluence/display/c/POS37-C.+Ensure+that+privilege+relinquishment+is+successful
* Reorganize includesLibravatar Drew DeVault2016-09-01
|
* sway/main.c: simplify free'ing by switching to the helper methodLibravatar Daniel Lockyer2016-05-05
|
* Update to wlc 0.0.20.5Libravatar Drew DeVault2016-04-16
|
* Implement include commandLibravatar Mikkel Oscar Lyderik2016-03-26
| | | | | | | | | | | | | | | | | | | | The include command (`include <path>`) makes it possible to include sub config files from the main config file (or from within other sub config files). The include command uses the following rules for including config files: * the `path` can be either a full path or a path that is relative to the parent config. Shell expansion is supported, so it's possible to do `include ~/.config/sway.d/*`. * The same config file can only be included once (to prevent include cycles). If a config is included multiple times it will just be ignored after it has been included once. * Including a sub config file is the same as inserting the content of that file into the parent config, thus rules about overwriting bindsyms etc. works the same as for a single config. Implement #542
* Gracefully exit when config is not foundLibravatar Mikkel Oscar Lyderik2016-03-24
| | | | | This makes sure that sway will gracefully exit if the config is not found or sway is unable to read it.
* Make the nvidia warning louderLibravatar Drew DeVault2016-03-24
|
* Don't set WLC_DIM on startup0.1Libravatar Drew DeVault2016-03-24
|
* Update to new WLC APILibravatar Drew DeVault2016-03-24
|
* Free config before exiting sway.Libravatar Mikkel Oscar Lyderik2016-02-27
| | | | | | Apart from freeing the sway_config struct, this also terminates the swaybars spawned by sway, since they are linked by PID to the bar config structs.
* Correctly exit sway on errors.Libravatar Mikkel Oscar Lyderik2016-02-26
| | | | | | | | Calling `exit` in sway_terminate prevents sway from correctly shutting down (freeing data, cleanly terminating the ipc server, etc.). A better way is to exit straight away if the failure occurs before `wlc_run` and use sway_abort as usual if it occur when wlc is running.
* Fix for when sway_abort doesn't exitLibravatar Yacine Hmito2016-02-25
| | | | sway_terminate does an exit in case wlc_terminate doesn't
* No options when using sway as IPC clientLibravatar Yacine Hmito2016-02-25
| | | | | | | | Sway used to attempt sending an IPC command composed of every argument after the first non-option argument encountered. Now, raises an error if an option is encountered before the intended command. Some options such as -h or -v take effect when parsing, so they still apply.
* Removed p as a valid CLI optionLibravatar Yacine Hmito2016-02-25
| | | | | | The get-socketpath long option had an undocumented short alternative as `p`. It has been removed. However, the code in the options array is still the 'p' char.
* Prevent ipc from crashing swayLibravatar crondog2016-01-22
|
* libinputLibravatar Cole Mickens2016-01-19
|
* Init layout before checking configLibravatar Mikkel Oscar Lyderik2016-01-05
|
* Handle SIGTERM sent to swayLibravatar Mikkel Oscar Lyderik2015-12-29
| | | | | | | This makes sway handle and gracefully shut down everything when receiving a SIGTERM. Fix #416
* Detect proprietary AMD drivers tooLibravatar Streetwalrus Einstein2015-12-14
|
* Implement invoking `sway` as IPC clientLibravatar Drew DeVault2015-12-12
| | | | As an alternative to invoking swaymsg.
* Merge pull request #276 from sce/earlier_loggingLibravatar Drew DeVault2015-11-29
|\ | | | | main: Setup logging before wlc_init.
| * main: Setup logging before wlc_init.Libravatar S. Christoffer Eliesen2015-11-29
| | | | | | | | | | If `wlc_init` fails the error message will never be logged or printed anywhere.
* | Fix option parsingLibravatar Christoph Gysin2015-11-28
| | | | | | | | | | | | | | | | | | | | Using 'flag' results in duplicate code paths for short and long options. This broke the -q short option in swaymsg, because there was: {"quiet", no_argument, &quiet, 'q'} Which will set quiet to 'q' and return 0, not 'q'.
* | sway: Add --help option that prints usageLibravatar Christoph Gysin2015-11-28
| |
* | sway: Print usage and exit on unknown optionsLibravatar Christoph Gysin2015-11-28
| |
* | Use macros for exit valuesLibravatar Christoph Gysin2015-11-28
|/
* sway/main: Move wlc init to after args are handled.Libravatar S. Christoffer Eliesen2015-11-28
| | | | | | | | | | First of all because it's not needed that early, and second of all because there's a bug where calling `sway --get-socketpath` via `popen` causes the child sway process to spin/hang instead of returning EOF. (Specifically `(unset SWAYSOCK; swaymsg)` hangs.) This patch fixes that. (Also note that this patch moves the "detailed review" comment, so I guess this patch requires extra detailed review?)
* Move IPC client into common, refactor IPCLibravatar Drew DeVault2015-11-27
|