Remove FreeBSD specific security config

Since we're going to require clients to have been spawned by sway to be
trusted, we can ditch the FreeBSD config
This commit is contained in:
Drew DeVault 2018-07-28 11:23:12 -04:00
parent b80a4b27f1
commit 14f89600a8
2 changed files with 6 additions and 34 deletions

View file

@ -168,21 +168,12 @@ configure_file(
install_dir: sysconfdir + '/sway' install_dir: sysconfdir + '/sway'
) )
if is_freebsd configure_file(
configure_file( configuration: config,
configuration: config, input: 'security.d/00-defaults.in',
input: 'security.d/10-freebsd.in', output: '@BASENAME@',
output: '@BASENAME@', install_dir: sysconfdir + '/sway/security.d'
install_dir: sysconfdir + '/sway/security.d' )
)
else
configure_file(
configuration: config,
input: 'security.d/00-defaults.in',
output: '@BASENAME@',
install_dir: sysconfdir + '/sway/security.d'
)
endif
install_data( install_data(
'sway.desktop', 'sway.desktop',

View file

@ -1,19 +0,0 @@
# sway security rules
#
# FreeBSD does not support getting client PID from server side
# so we can not know the path to the client's binary.
#
# The solution for now is to be permissive and allow all
# features by default for any client.
# Configures enabled compositor features for specific programs
permit * fullscreen keyboard mouse background screenshot panel lock
ipc * {
* enabled
events {
* enabled
}
}