From de16229470a09eec8c6a652e0eea2be5a664d207 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 7 Nov 2023 09:28:06 +0100 Subject: data/: Move config files and policykit .pkla file from debian/ to data/ and install via automake. --- data/90-arctica-greeter.conf | 24 +++++++++++++++ data/91-arctica-greeter-guest-session.conf | 16 ++++++++++ data/92-arctica-greeter-remote-logon.conf | 4 +++ data/Makefile.am | 17 ++++++++++- data/arctica-greeter.pkla | 44 ++++++++++++++++++++++++++++ debian/90-arctica-greeter.conf | 24 --------------- debian/91-arctica-greeter-guest-session.conf | 16 ---------- debian/92-arctica-greeter-remote-logon.conf | 4 --- debian/arctica-greeter.pkla | 44 ---------------------------- 9 files changed, 104 insertions(+), 89 deletions(-) create mode 100644 data/90-arctica-greeter.conf create mode 100644 data/91-arctica-greeter-guest-session.conf create mode 100644 data/92-arctica-greeter-remote-logon.conf create mode 100644 data/arctica-greeter.pkla delete mode 100644 debian/90-arctica-greeter.conf delete mode 100644 debian/91-arctica-greeter-guest-session.conf delete mode 100644 debian/92-arctica-greeter-remote-logon.conf delete mode 100644 debian/arctica-greeter.pkla diff --git a/data/90-arctica-greeter.conf b/data/90-arctica-greeter.conf new file mode 100644 index 0000000..4b2584b --- /dev/null +++ b/data/90-arctica-greeter.conf @@ -0,0 +1,24 @@ +[Seat:*] + +# For real usage of Arctica Greeter as Thin Client login +# system, remove the comment hashes for all options below + +# we are very serious, we _want_ Arctica Greeter as LightDM greeter!!! +greeter-session=arctica-greeter + +# don't show local user names at Arctica Greeter login prompt +#greeter-hide-users=true + +# don neither show a username / password login prompt for local login +greeter-show-manual-login=true + +# disable guest sessions (a guest session requires a valid default +# user-session parameter, see below) +#allow-guest=true + +# enforce showing remote login feature +greeter-show-remote-login=true + +# if on Ubuntu and Unity is not installed, this is a minimal user session type for +# default (guest) sessions (sudo apt-get install openbox) +#user-session=openbox diff --git a/data/91-arctica-greeter-guest-session.conf b/data/91-arctica-greeter-guest-session.conf new file mode 100644 index 0000000..cb0a3df --- /dev/null +++ b/data/91-arctica-greeter-guest-session.conf @@ -0,0 +1,16 @@ +[LightDM] + +# Override default guest-account script by Arctica Greeters guest +# account script. +guest-account-script=arctica-greeter-guest-account-script + +[Seat:*] + +# disable guest sessions (a guest session requires a valid default +# user-session parameter, see below) +allow-guest=true +greeter-allow-guest=true + +# if on Ubuntu and Unity is not installed, this is a minimal user session type for +# default (guest) sessions (sudo apt-get install openbox) +#user-session=openbox diff --git a/data/92-arctica-greeter-remote-logon.conf b/data/92-arctica-greeter-remote-logon.conf new file mode 100644 index 0000000..4e8cc6a --- /dev/null +++ b/data/92-arctica-greeter-remote-logon.conf @@ -0,0 +1,4 @@ +[Seat:*] + +# enforce showing remote login feature +greeter-show-remote-login=true diff --git a/data/Makefile.am b/data/Makefile.am index 74a1223..c06a300 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,5 +1,7 @@ # -*- Mode: Automake; indent-tabs-mode: t; tab-width: 4 -*- +NULL = + 50-arctica-greeter.conf: 50-arctica-greeter.conf.in $(AM_V_GEN) sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@ @@ -9,7 +11,20 @@ lightdm_confdir = $(datadir)/lightdm/lightdm.conf.d lightdm_conf_DATA = \ 50-arctica-greeter.conf \ - 50-arctica-greeter-guest-wrapper.conf + 50-arctica-greeter-guest-wrapper.conf \ + $(NULL) + +lightdm_sysconfdir = $(sysconfdir)/lightdm/lightdm.conf.d +lightdm_sysconf_DATA = \ + 90-arctica-greeter.conf \ + 91-arctica-greeter-guest-session.conf \ + 92-arctica-greeter-remote-logon.conf \ + $(NULL) + +pkla_policydir = $(localstatedir)/lib/polkit-1/localauthority/10-vendor.d +pkla_policy_DATA = \ + arctica-greeter.pkla \ + $(NULL) arctica-greeter-guest-session-startup.desktop: arctica-greeter-guest-session-startup.desktop.in $(AM_V_GEN) sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@ diff --git a/data/arctica-greeter.pkla b/data/arctica-greeter.pkla new file mode 100644 index 0000000..99235c2 --- /dev/null +++ b/data/arctica-greeter.pkla @@ -0,0 +1,44 @@ +# DO NOT EDIT THIS FILE, it will be overwritten on update +# Place your local configurations under /etc/polkit-1/localauthority/ + +[Disable Controlling of Network Devices] +Identity=unix-user:lightdm +Action=org.freedesktop.NetworkManager.enable-disable-network;org.freedesktop.NetworkManager.enable-disable-wifi;org.freedesktop.NetworkManager.enable-disable-wwan;org.freedesktop.NetworkManager.enable-disable-wimax; +ResultActive=no +ResultInactive=no +ResultsAny=no + +[Disable Sleep and Wake] +Identity=unix-user:lightdm +Action=org.freedesktop.NetworkManager.sleep-wake +ResultActive=no +ResultInactive=no +ResultsAny=no + +[Disable WiFi Sharing] +Identity=unix-user:lightdm +Action=org.freedesktop.NetworkManager.wifi.share.protected;org.freedesktop.NetworkManager.wifi.share.open +ResultActive=no +ResultInactive=no +ResultsAny=no + +[Disable Settings Modifications] +Identity=unix-user:lightdm +Action=org.freedesktop.NetworkManager.settings.modify.own;org.freedesktop.NetworkManager.settings.modify.system;org.freedesktop.NetworkManager.settings.modify.hostname +ResultActive=no +ResultInactive=no +ResultsAny=no + +[Disable User Connections] +Identity=unix-user:lightdm +Action=org.freedesktop.NetworkManager.use-user-connections +ResultActive=no +ResultInactive=no +ResultsAny=no + +[Enable Controlling of Network Connections] +Identity=unix-user:lightdm +Action=org.freedesktop.NetworkManager.network-control +ResultActive=yes +ResultInactive=no +ResultsAny=no diff --git a/debian/90-arctica-greeter.conf b/debian/90-arctica-greeter.conf deleted file mode 100644 index 4b2584b..0000000 --- a/debian/90-arctica-greeter.conf +++ /dev/null @@ -1,24 +0,0 @@ -[Seat:*] - -# For real usage of Arctica Greeter as Thin Client login -# system, remove the comment hashes for all options below - -# we are very serious, we _want_ Arctica Greeter as LightDM greeter!!! -greeter-session=arctica-greeter - -# don't show local user names at Arctica Greeter login prompt -#greeter-hide-users=true - -# don neither show a username / password login prompt for local login -greeter-show-manual-login=true - -# disable guest sessions (a guest session requires a valid default -# user-session parameter, see below) -#allow-guest=true - -# enforce showing remote login feature -greeter-show-remote-login=true - -# if on Ubuntu and Unity is not installed, this is a minimal user session type for -# default (guest) sessions (sudo apt-get install openbox) -#user-session=openbox diff --git a/debian/91-arctica-greeter-guest-session.conf b/debian/91-arctica-greeter-guest-session.conf deleted file mode 100644 index cb0a3df..0000000 --- a/debian/91-arctica-greeter-guest-session.conf +++ /dev/null @@ -1,16 +0,0 @@ -[LightDM] - -# Override default guest-account script by Arctica Greeters guest -# account script. -guest-account-script=arctica-greeter-guest-account-script - -[Seat:*] - -# disable guest sessions (a guest session requires a valid default -# user-session parameter, see below) -allow-guest=true -greeter-allow-guest=true - -# if on Ubuntu and Unity is not installed, this is a minimal user session type for -# default (guest) sessions (sudo apt-get install openbox) -#user-session=openbox diff --git a/debian/92-arctica-greeter-remote-logon.conf b/debian/92-arctica-greeter-remote-logon.conf deleted file mode 100644 index 4e8cc6a..0000000 --- a/debian/92-arctica-greeter-remote-logon.conf +++ /dev/null @@ -1,4 +0,0 @@ -[Seat:*] - -# enforce showing remote login feature -greeter-show-remote-login=true diff --git a/debian/arctica-greeter.pkla b/debian/arctica-greeter.pkla deleted file mode 100644 index 99235c2..0000000 --- a/debian/arctica-greeter.pkla +++ /dev/null @@ -1,44 +0,0 @@ -# DO NOT EDIT THIS FILE, it will be overwritten on update -# Place your local configurations under /etc/polkit-1/localauthority/ - -[Disable Controlling of Network Devices] -Identity=unix-user:lightdm -Action=org.freedesktop.NetworkManager.enable-disable-network;org.freedesktop.NetworkManager.enable-disable-wifi;org.freedesktop.NetworkManager.enable-disable-wwan;org.freedesktop.NetworkManager.enable-disable-wimax; -ResultActive=no -ResultInactive=no -ResultsAny=no - -[Disable Sleep and Wake] -Identity=unix-user:lightdm -Action=org.freedesktop.NetworkManager.sleep-wake -ResultActive=no -ResultInactive=no -ResultsAny=no - -[Disable WiFi Sharing] -Identity=unix-user:lightdm -Action=org.freedesktop.NetworkManager.wifi.share.protected;org.freedesktop.NetworkManager.wifi.share.open -ResultActive=no -ResultInactive=no -ResultsAny=no - -[Disable Settings Modifications] -Identity=unix-user:lightdm -Action=org.freedesktop.NetworkManager.settings.modify.own;org.freedesktop.NetworkManager.settings.modify.system;org.freedesktop.NetworkManager.settings.modify.hostname -ResultActive=no -ResultInactive=no -ResultsAny=no - -[Disable User Connections] -Identity=unix-user:lightdm -Action=org.freedesktop.NetworkManager.use-user-connections -ResultActive=no -ResultInactive=no -ResultsAny=no - -[Enable Controlling of Network Connections] -Identity=unix-user:lightdm -Action=org.freedesktop.NetworkManager.network-control -ResultActive=yes -ResultInactive=no -ResultsAny=no -- cgit v1.2.3