]> git.sur5r.net Git - i3/i3/commit
Add pledge(2) support for OpenBSD 2161/head
authorTheo Buehler <theo@math.ethz.ch>
Thu, 14 Jan 2016 09:06:34 +0000 (10:06 +0100)
committerTheo Buehler <theo@math.ethz.ch>
Sun, 17 Jan 2016 17:49:00 +0000 (18:49 +0100)
commita1d1f456a1fbf44bfa5c6a9d041023ac498b0c46
tree33bc51a6dc2dbe5bb1bc22a322874789adaa7824
parent9a4dbf366bcfce43e50185f05ed8c3ad85ac8ba1
Add pledge(2) support for OpenBSD

pledges for i3:
"stdio rpath unix" for talking to the i3 socket usually in /tmp
"proc exec" for executing programs
"wpath cpath" are needed for the restart-in-place functionality

To make this work, @semarie pointed out that it is sufficient to ensure
that we get physical_mem_bytes only once, namely in init_logging().

pledges for i3-msg:
"stdio rpath unix" are needed for talking to the i3-socket

pledges for i3-nagbar
"rpath getpw" to find the home directory
"wpath cpath" to write the script
"proc exec" to execute the script
i3-msg/main.c
i3-nagbar/main.c
src/log.c
src/main.c