aboutsummaryrefslogtreecommitdiff
path: root/src/arctica-greeter.vala
diff options
context:
space:
mode:
authorBastian Kanbach <lambda_dev@outlook.de>2022-02-28 10:34:06 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-03-01 15:47:05 +0100
commit7a865a19e9bcfc84477ef9a4087ed85539a0cd73 (patch)
tree4b903ea88c9ac53a7befab9b22f3b52acb79ed6f /src/arctica-greeter.vala
parent76031571f268b49517ba6c00bf9f26351b4c5bb1 (diff)
downloadarctica-greeter-7a865a19e9bcfc84477ef9a4087ed85539a0cd73.tar.gz
arctica-greeter-7a865a19e9bcfc84477ef9a4087ed85539a0cd73.tar.bz2
arctica-greeter-7a865a19e9bcfc84477ef9a4087ed85539a0cd73.zip
Remove marco WM due to logon screen bypass
This commit removes invocation of MATE's window manager marco, that was introduced with 9b3526d12d9d6c828fbd4a29dec2295ae2f735a5 Having marco launched allows any user to use its keybindings to open applications which could bypass arctica-greeter and access the operating system as the "lightdm" user.
Diffstat (limited to 'src/arctica-greeter.vala')
-rw-r--r--src/arctica-greeter.vala35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index ecbcc01..19e3b4d 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -1028,7 +1028,6 @@ public class ArcticaGreeter : Object
string systemd_stderr;
int systemd_exitcode = 0;
- Pid marco_pid = 0;
Pid nmapplet_pid = 0;
var indicator_list = AGSettings.get_strv(AGSettings.KEY_INDICATORS);
@@ -1053,24 +1052,6 @@ public class ArcticaGreeter : Object
activate_upower();
- try
- {
- string[] argv;
-
- Shell.parse_argv ("marco", out argv);
- Process.spawn_async (null,
- argv,
- null,
- SpawnFlags.SEARCH_PATH,
- null,
- out marco_pid);
- debug ("Launched marco WM. PID: %d", marco_pid);
- }
- catch (Error e)
- {
- warning ("Error starting the Marco Window Manager: %s", e.message);
- }
-
greeter.greeter_ready.connect (() => {
debug ("Showing greeter");
greeter.show ();
@@ -1220,22 +1201,6 @@ public class ArcticaGreeter : Object
debug ("AT-SPI terminated with signal %d", Process.term_sig (status));
atspi_pid = 0;
}
-
- if (marco_pid != 0)
- {
-#if VALA_0_40
- Posix.kill (marco_pid, Posix.Signal.TERM);
-#else
- Posix.kill (marco_pid, Posix.SIGTERM);
-#endif
- int status;
- Posix.waitpid (marco_pid, out status, 0);
- if (Process.if_exited (status))
- debug ("Marco Window Manager exited with return value %d", Process.exit_status (status));
- else
- debug ("Marco Window Manager terminated with signal %d", Process.term_sig (status));
- marco_pid = 0;
- }
}
var screen = Gdk.Screen.get_default ();