diff options
-rw-r--r-- | security.d/10-freebsd.in | 12 | ||||
-rw-r--r-- | sway/CMakeLists.txt | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/security.d/10-freebsd.in b/security.d/10-freebsd.in new file mode 100644 index 00000000..de405f70 --- /dev/null +++ b/security.d/10-freebsd.in | |||
@@ -0,0 +1,12 @@ | |||
1 | # sway security rules | ||
2 | # | ||
3 | # FreeBSD does not support getting client PID from server side | ||
4 | # so we can not know the path to the client's binary. | ||
5 | # | ||
6 | # The solution for now is to be permissive and allow all | ||
7 | # features by default for any client. | ||
8 | |||
9 | # Configures enabled compositor features for specific programs | ||
10 | permit * fullscreen keyboard mouse background screenshot panel lock | ||
11 | |||
12 | |||
diff --git a/sway/CMakeLists.txt b/sway/CMakeLists.txt index bf0b2e7f..61c22b84 100644 --- a/sway/CMakeLists.txt +++ b/sway/CMakeLists.txt | |||
@@ -93,6 +93,10 @@ endfunction() | |||
93 | add_config(config config sway) | 93 | add_config(config config sway) |
94 | add_config(00-defaults security.d/00-defaults sway/security.d) | 94 | add_config(00-defaults security.d/00-defaults sway/security.d) |
95 | 95 | ||
96 | if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD) | ||
97 | add_config(10-freebsd security.d/10-freebsd sway/security.d) | ||
98 | endif (CMAKE_SYSTEM_NAME STREQUAL FreeBSD) | ||
99 | |||
96 | if (A2X_FOUND) | 100 | if (A2X_FOUND) |
97 | add_manpage(sway 1) | 101 | add_manpage(sway 1) |
98 | add_manpage(sway 5) | 102 | add_manpage(sway 5) |