{"action":"created","issue":{"url":"https://api.github.com/repos/SirCmpwn/sway/issues/1022","repository_url":"https://api.github.com/repos/SirCmpwn/sway","labels_url":"https://api.github.com/repos/SirCmpwn/sway/issues/1022/labels{/name}","comments_url":"https://api.github.com/repos/SirCmpwn/sway/issues/1022/comments","events_url":"https://api.github.com/repos/SirCmpwn/sway/issues/1022/events","html_url":"https://github.com/SirCmpwn/sway/issues/1022","id":197956162,"number":1022,"title":"CAP_SYS_TTY_CONFIG is needed for vt activation","user":{"login":"gyakovlev","id":168902,"avatar_url":"https://avatars.githubusercontent.com/u/168902?v=3","gravatar_id":"","url":"https://api.github.com/users/gyakovlev","html_url":"https://github.com/gyakovlev","followers_url":"https://api.github.com/users/gyakovlev/followers","following_url":"https://api.github.com/users/gyakovlev/following{/other_user}","gists_url":"https://api.github.com/users/gyakovlev/gists{/gist_id}","starred_url":"https://api.github.com/users/gyakovlev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyakovlev/subscriptions","organizations_url":"https://api.github.com/users/gyakovlev/orgs","repos_url":"https://api.github.com/users/gyakovlev/repos","events_url":"https://api.github.com/users/gyakovlev/events{/privacy}","received_events_url":"https://api.github.com/users/gyakovlev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-29T05:35:02Z","updated_at":"2016-12-29T07:49:38Z","closed_at":null,"body":"HI, \r\n\r\nInstalled 0.11 on my gentoo machine and got stuck for some time without ability to launch sway.\r\nit seems after dropping privileges sway cannot swtich to vt7.\r\nerror I traced was\r\n```ioctl(3, VT_ACTIVATE, 0x7)              = -1 EPERM (Operation not permitted)```\r\n\r\nI'm running without systemd, logind, or consolekit if that matters.\r\ntried both SUID and NON-suid bits, no difference..\r\n\r\nthe following capabilities got me running again\r\n```/usr/bin/sway = cap_sys_ptrace,cap_sys_tty_config+ep```\r\n\r\nIs it specific to my setup or sway drops privileges too early?\r\n\r\nIt should  be fixed or documented.\r\n\r\n\r\nI can go back and provide strace  output if you need that. let me know.\r\n\r\nsway-0.11\r\nwlc-0.0.7\r\nwayland-1.12.0"},"comment":{"url":"https://api.github.com/repos/SirCmpwn/sway/issues/comments/269593897","html_url":"https://github.com/SirCmpwn/sway/issues/1022#issuecomment-269593897","issue_url":"https://api.github.com/repos/SirCmpwn/sway/issues/1022","id":269593897,"user":{"login":"robotanarchy","id":7833187,"avatar_url":"https://avatars.githubusercontent.com/u/7833187?v=3","gravatar_id":"","url":"https://api.github.com/users/robotanarchy","html_url":"https://github.com/robotanarchy","followers_url":"https://api.github.com/users/robotanarchy/followers","following_url":"https://api.github.com/users/robotanarchy/following{/other_user}","gists_url":"https://api.github.com/users/robotanarchy/gists{/gist_id}","starred_url":"https://api.github.com/users/robotanarchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robotanarchy/subscriptions","organizations_url":"https://api.github.com/users/robotanarchy/orgs","repos_url":"https://api.github.com/users/robotanarchy/repos","events_url":"https://api.github.com/users/robotanarchy/events{/privacy}","received_events_url":"https://api.github.com/users/robotanarchy/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T07:49:38Z","updated_at":"2016-12-29T07:49:38Z","body":"I can confirm this on Arch Linux without systemd, and also that it works after running the following setcap command: `setcap cap_sys_tty_config=ep /usr/bin/sway`\r\n\r\nAdded this to the [wiki](https://github.com/SirCmpwn/sway/wiki/Sway-without-systemd-on-Arch-Linux)."}}
{"actor":{"display_login":"robotanarchy"}}