summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
2017-04-26Update .build.yml0.13-rc3Furkan Sahin-1/+1
2017-04-30Update config.inFurkan Sahin-1/+0
swaymsg -t get_inputs now pretty prints its output, so this warning is obsolete
2017-04-29Merge pull request #1204 from zandrmartin/prevent-layout-auto-crashFurkan Sahin-0/+4
prevent crash when `layout auto` is missing args
2017-04-29Set child border to background if not specifiedFurkan Sahin-0/+4
2017-04-29Merge pull request #1201 from SirCmpwn/fix-colorsFurkan Sahin-12/+12
Support specifying fewer than 5 colors
2017-04-26Fix link to dotfiles, closes #1193Furkan Sahin-2/+2
2017-04-26Merge pull request #1194 from snoack/versionFurkan Sahin-65/+20
Add -DVERSION flag for release version numbers
2017-04-24Merge pull request #1187 from 4e554c4c/masterFurkan Sahin-1/+1
Fix typo in sway(5)
2017-04-20Merge pull request #1184 from JerziKaminsky/logging2Furkan Sahin-11/+13
More Logging Fixes
2017-04-19Merge pull request #1183 from sleep-walker/masterFurkan Sahin-2/+2
explicitly ignore unused return value
2017-04-18Merge pull request #1181 from wasamasa/bugfix-initial-scratchpad-size0.13-rc1Furkan Sahin-2/+2
Use i3's dimensions for initial scratchpad views
2017-04-18Merge pull request #1178 from 4e554c4c/forkFurkan Sahin-2/+32
Prevent sway from duplicating on a failed fork
2017-04-18Use i3's dimensions for initial scratchpad viewsFurkan Sahin-2/+2
See https://github.com/i3/i3/blob/master/src/scratchpad.c#L196-L197
2017-04-18Merge pull request #1180 from wasamasa/feature-move-to-scratchpadFurkan Sahin-1/+4
Feature move to scratchpad
2017-04-18Implement and document `move [to] scratchpad`Furkan Sahin-1/+4
2017-04-18Add .build.yml (for builds.sr.ht)Furkan Sahin-0/+25
2017-04-17Prevent sway from duplicating on a failed forkFurkan Sahin-2/+32
Also remove a useless `sway_log` and replace it with a pipe
2017-04-16Merge pull request #1173 from JerziKaminsky/security_resolve_symlinkFurkan Sahin-40/+179
FOR_REVIEW: IPC security - Allow policy targets to be symlinks
2017-04-16Merge pull request #1175 from JerziKaminsky/fix_sway_assert_variadicFurkan Sahin-8/+16
Fix multiple issues in sway_assert
2017-04-16Fix location reported by sway_assertFurkan Sahin-4/+4
2017-04-16Fix variadic forwarding in sway_assertFurkan Sahin-5/+13
_sway_assert is a variadic function which tries to delegate to another variadic function. This requires a vprintf-style variant of the delegate. https://stackoverflow.com/a/150616
2017-04-16Handle symlinks as IPC security targetsFurkan Sahin-4/+45
- When policies are allocated, the ipc target path goes through symlink resolution. The result is used as the canonical for matching pids to policies at runtime. In particular, this matches up with the target of the `/proc/<pid>/exe`. - There's a possible race condition if this isn't done correctly, read below. Originally, validate_ipc_target() always tried to resolve its argument for symlinks, and returned a parogram target string if it validates. This created a possible race condition with security implications. The problem is that get_feature_policy() first independently resolved the policy target in order to check whether a policy already exists. If it didn't find any, it called alloc_feature_policy() which called validate_ipc_target() which resolved the policy target again. In the time between the two checks, the symlink could be altered, and a lucky attacker could fool the program into thinking that a policy doesn't exist for a target, and then switch the symlink to point at another file. At the very least this could allow him to create two policies for the same program target, and possibly to bypass security by associating the permissions for one target with another, or force default permissions to apply to a target for which a more specific rule has been configured. So we don't that. Instead, the policy target is resolved once and that result is used for the rest of the lookup/creation process.
2017-04-14Add resolve_path() to utilsFurkan Sahin-0/+49
2017-04-15Add validate_ipc_target()Furkan Sahin-0/+46
2017-04-15Move get_feature_policy to sway/security.cFurkan Sahin-19/+22
2017-04-15Rename get_policy to get_feature_policyFurkan Sahin-3/+3
2017-04-15Disambiguate get_*_policy() and get_*_policy_mask()Furkan Sahin-17/+17
2017-04-14Merge pull request #1171 from JerziKaminsky/misc_fixesFurkan Sahin-5/+8
Misc fixes
2017-04-12Fix style in sway-bar(5) manpageFurkan Sahin-4/+4
2017-04-12Remain compat with libinput < 1.7.0Furkan Sahin-1/+4
2017-04-12Merge pull request #1147 from SirCmpwn/nvidia-supportFurkan Sahin-8/+35
Downgrade nvidia proprietary driver warning
2017-04-12Implement more thourough nvidia config checkFurkan Sahin-4/+35
2017-04-10Merge pull request #1146 from SirCmpwn/pretty-print-swaymsgFurkan Sahin-17/+248
Add pretty printing to swaymsg
2017-04-10Merge branch 'master' into pretty-print-swaymsgFurkan Sahin-84/+424
2017-04-08Merge pull request #1150 from JerziKaminsky/cmake_find_libcapFurkan Sahin-1/+59
Add libcap check to CMake
2017-04-07Merge pull request #1155 from 4e554c4c/get_marksFurkan Sahin-0/+37
Add `-t get_marks` and use more i3-like marks
2017-04-07Add `-t get_marks` and use more i3-like marksFurkan Sahin-0/+37
In i3 every mark is unique and one mark cannot be used in more than one window, sway behavior has been amended to match this. `swaymsg -t get_marks` will now return an array of all marks used in sway. See #98
2017-04-07Merge pull request #1153 from SirCmpwn/fix-1152Furkan Sahin-3/+3
Fix dangling file descriptors (fixes #1152)
2017-04-07Merge pull request #1154 from ascent12/fix-1152Furkan Sahin-3/+0
Removed explicitly setting file descriptors to -1
2017-04-08Removed explicitly setting file descriptors to -1Furkan Sahin-3/+0
2017-04-07Fix dangling file descriptors (fixes #1152)Furkan Sahin-1/+4
2017-04-06Merge pull request #1151 from ascent12/masterFurkan Sahin-34/+27
Change regex to use PCRE
2017-04-07Added designated initaliser, to prevent any possible problem withFurkan Sahin-12/+11
ordering
2017-04-07Changed regular expressions to use PCRE for i3 compatibilityFurkan Sahin-23/+17
2017-04-06Merge pull request #1149 from 4e554c4c/criteriaFurkan Sahin-53/+116
Improve criteria handling
2017-04-06Add libcap check to CMakeFurkan Sahin-1/+59
- 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-04-04Improve criteria handlingFurkan Sahin-53/+116
This commit changes how commands decide what container to act on. Commands get the current container though `current_container`, a global defined in sway/commands.c. If a criteria is given before a command, then the following command will be run once for every container the criteria matches with a reference to the matching container in 'current_container'. Commands should use this instead of `get_focused_container()` from now on. This commit also fixes a few (minor) mistakes made in implementing marks such as non-escaped arrows in sway(5) and calling the "mark" command "floating" by accident. It also cleans up `criteria.c` in a few places.
2017-04-03Merge pull request #1145 from 4e554c4c/marksFurkan Sahin-0/+189
Impliment i3-style marks
2017-04-03Update man pageFurkan Sahin-2/+2
2017-04-03Downgrade nvidia proprietary driver warningFurkan Sahin-5/+1