Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/gnome-session-3.38.0/gnome-session/gdm-log.c
Examining data/gnome-session-3.38.0/gnome-session/gdm-log.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-app.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-app.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-autostart-app.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-autostart-app.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-client.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-client.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-consolekit.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-dbus-client.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-dbus-client.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-fail-whale-dialog.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-fail-whale-dialog.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-fail-whale.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-fail-whale.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-icon-names.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-inhibitor-flag.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-inhibitor.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-inhibitor.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-manager-logout-mode.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-manager.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-manager.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-presence-flag.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-presence.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-presence.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-process-helper.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-process-helper.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-session-fill.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-session-fill.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-session-save.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-session-save.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-shell-extensions.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-shell-extensions.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-shell.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-shell.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-store.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-store.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-system.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-system.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-systemd.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-systemd.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-util.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-util.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-xsmp-client.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-xsmp-client.h
Examining data/gnome-session-3.38.0/gnome-session/gsm-xsmp-server.c
Examining data/gnome-session-3.38.0/gnome-session/gsm-xsmp-server.h
Examining data/gnome-session-3.38.0/gnome-session/test-client-dbus.c
Examining data/gnome-session-3.38.0/gnome-session/test-inhibit.c
Examining data/gnome-session-3.38.0/gnome-session/test-process-helper.c
Examining data/gnome-session-3.38.0/gnome-session/main.c
Examining data/gnome-session-3.38.0/tools/gnome-session-check-accelerated-common.h
Examining data/gnome-session-3.38.0/tools/gnome-session-check-accelerated-gl-helper.c
Examining data/gnome-session-3.38.0/tools/gnome-session-check-accelerated-gles-helper.c
Examining data/gnome-session-3.38.0/tools/gnome-session-check-accelerated.c
Examining data/gnome-session-3.38.0/tools/gnome-session-ctl.c
Examining data/gnome-session-3.38.0/tools/gnome-session-inhibit.c
Examining data/gnome-session-3.38.0/tools/gnome-session-quit.c
Examining data/gnome-session-3.38.0/tools/gnome-session-selector.c

FINAL RESULTS:

data/gnome-session-3.38.0/tools/gnome-session-selector.c:183:13:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
        if (readlink (saved_session, last_session, PATH_MAX - 1) > 0) {
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:342:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_attempt_restart (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:344:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *manager = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:381:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_attempt_stop (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:383:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *manager = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:398:45:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_set_session_idle (GsmSystem *system,
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:401:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *manager = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:471:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_can_switch_user (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:473:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *manager = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:485:40:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_can_restart (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:487:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *manager = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:511:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_can_stop (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:513:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *manager = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:563:45:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_is_login_session (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:565:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *manager = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:588:40:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_can_suspend (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:590:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *manager = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:620:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_can_hibernate (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:622:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *manager = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:690:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_suspend (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:692:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *manager = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:705:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_hibernate (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:707:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *manager = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:754:49:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_add_inhibitor (GsmSystem        *system,
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:758:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *manager = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:783:47:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_remove_inhibitor (GsmSystem   *system,
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:786:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *manager = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:828:45:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_prepare_shutdown (GsmSystem *system,
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:831:53:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *consolekit = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:880:46:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_complete_shutdown (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:882:53:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmConsolekit *consolekit = GSM_CONSOLEKIT (system);
data/gnome-session-3.38.0/gnome-session/gsm-consolekit.c:889:53:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_consolekit_is_last_session_for_user (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:168:33:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystem              *system;
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:280:57:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if (gsm_system_is_login_session (manager->priv->system)) {
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:494:62:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                gsm_system_complete_shutdown (manager->priv->system);
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:499:62:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                gsm_system_complete_shutdown (manager->priv->system);
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:964:20:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystem *system;
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:973:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if (!gsm_system_is_last_session_for_user (system))
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:1927:57:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if (gsm_system_is_login_session (manager->priv->system))
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:2277:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        gsm_system_add_inhibitor (manager->priv->system, id,
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:2311:53:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        gsm_system_remove_inhibitor (manager->priv->system, id);
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:2370:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        g_clear_object (&manager->priv->system);
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:2463:20:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystem *system;
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:2466:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        gsm_system_set_session_idle (system,
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:2468:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        g_object_unref (system);
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:2472:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
on_gsm_system_active_changed (GsmSystem  *system,
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:2478:55:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        is_active = gsm_system_is_active (self->priv->system);
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:2621:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                (gsm_system_can_stop (manager->priv->system)
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:2622:60:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                 || gsm_system_can_restart (manager->priv->system)
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:2623:60:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                 || gsm_system_can_suspend (manager->priv->system)
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:2624:62:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                 || gsm_system_can_hibernate (manager->priv->system));
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:2641:74:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                gsm_system_can_restart_to_firmware_setup (manager->priv->system);
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:2656:66:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        gsm_system_set_restart_to_firmware_setup (manager->priv->system, enable);
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:3332:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        g_signal_connect (manager->priv->system, "notify::active",
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:3336:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        on_gsm_system_active_changed (manager->priv->system, NULL, manager);
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:3795:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
on_shutdown_prepared (GsmSystem  *system,
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:3800:47:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        g_signal_handlers_disconnect_by_func (system, on_shutdown_prepared, manager);
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:3839:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                g_signal_connect (manager->priv->system, "shutdown-prepared",
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:3841:61:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                gsm_system_prepare_shutdown (manager->priv->system, reboot);
data/gnome-session-3.38.0/gnome-session/gsm-session-fill.c:104:20:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystem *system;
data/gnome-session-3.38.0/gnome-session/gsm-session-fill.c:108:49:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        is_login = gsm_system_is_login_session (system);
data/gnome-session-3.38.0/gnome-session/gsm-session-fill.c:109:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        g_object_unref (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:143:40:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_can_switch_user (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-system.c:145:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->can_switch_user (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:145:64:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->can_switch_user (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:149:33:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_can_stop (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-system.c:151:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->can_stop (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:151:57:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->can_stop (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:155:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_can_restart (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-system.c:157:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->can_restart (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:157:60:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->can_restart (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:161:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_can_restart_to_firmware_setup (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-system.c:163:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->can_restart_to_firmware_setup (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:163:78:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->can_restart_to_firmware_setup (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:167:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_set_restart_to_firmware_setup (GsmSystem *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.c:170:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->set_restart_to_firmware_setup (system, enable);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:170:71:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->set_restart_to_firmware_setup (system, enable);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:174:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_can_suspend (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-system.c:176:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->can_suspend (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:176:60:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->can_suspend (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:180:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_can_hibernate (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-system.c:182:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->can_hibernate (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:182:62:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->can_hibernate (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:186:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_attempt_stop (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-system.c:188:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->attempt_stop (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:188:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->attempt_stop (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:192:40:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_attempt_restart (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-system.c:194:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->attempt_restart (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:194:57:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->attempt_restart (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:198:32:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_suspend (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-system.c:200:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->suspend (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:200:49:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->suspend (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:204:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_hibernate (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-system.c:206:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->hibernate (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:206:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->hibernate (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:210:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_set_session_idle (GsmSystem *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.c:213:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->set_session_idle (system, is_idle);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:213:58:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->set_session_idle (system, is_idle);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:217:45:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_add_inhibitor (GsmSystem        *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.c:221:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->add_inhibitor (system, id, flag);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:221:55:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->add_inhibitor (system, id, flag);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:225:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_remove_inhibitor (GsmSystem   *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.c:228:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->remove_inhibitor (system, id);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:228:58:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->remove_inhibitor (system, id);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:232:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_is_login_session (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-system.c:234:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->is_login_session (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:234:65:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->is_login_session (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:238:49:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_is_last_session_for_user (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-system.c:240:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->is_last_session_for_user (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:240:73:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return GSM_SYSTEM_GET_IFACE (system)->is_last_session_for_user (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:250:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_is_active (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-system.c:253:33:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        g_object_get ((GObject*)system, "active", &is_active, NULL);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:258:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_prepare_shutdown  (GsmSystem *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.c:261:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->prepare_shutdown (system, restart);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:261:58:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->prepare_shutdown (system, restart);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:265:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_system_complete_shutdown (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-system.c:267:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->complete_shutdown (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:267:59:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GSM_SYSTEM_GET_IFACE (system)->complete_shutdown (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.c:277:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                if (system != NULL) {
data/gnome-session-3.38.0/gnome-session/gsm-system.c:285:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                if (system != NULL) {
data/gnome-session-3.38.0/gnome-session/gsm-system.c:296:30:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        return g_object_ref (system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:47:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        void (* request_completed)    (GsmSystem *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.h:50:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        void (* shutdown_prepared)    (GsmSystem *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.h:53:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        gboolean (* can_switch_user)  (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:54:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        gboolean (* can_stop)         (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:55:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        gboolean (* can_restart)      (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:56:64:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        gboolean (* can_restart_to_firmware_setup) (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:57:64:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        void     (* set_restart_to_firmware_setup) (GsmSystem *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.h:59:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        gboolean (* can_suspend)      (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:60:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        gboolean (* can_hibernate)    (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:61:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        void     (* attempt_stop)     (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:62:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        void     (* attempt_restart)  (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:63:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        void     (* suspend)          (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:64:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        void     (* hibernate)        (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:65:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        void     (* set_session_idle) (GsmSystem *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.h:67:51:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        gboolean (* is_login_session) (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:68:58:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        void     (* add_inhibitor)    (GsmSystem        *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.h:71:58:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        void     (* remove_inhibitor) (GsmSystem        *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.h:73:53:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        void     (* prepare_shutdown) (GsmSystem   *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.h:75:53:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        void     (* complete_shutdown)(GsmSystem   *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:76:59:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        gboolean (* is_last_session_for_user) (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:90:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gboolean   gsm_system_can_switch_user  (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:92:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gboolean   gsm_system_can_stop         (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:94:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gboolean   gsm_system_can_restart      (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:96:65:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gboolean   gsm_system_can_restart_to_firmware_setup (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:98:65:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void       gsm_system_set_restart_to_firmware_setup (GsmSystem *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.h:101:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gboolean   gsm_system_can_suspend      (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:103:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gboolean   gsm_system_can_hibernate    (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:105:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void       gsm_system_attempt_stop     (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:107:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void       gsm_system_attempt_restart  (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:109:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void       gsm_system_suspend          (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:111:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void       gsm_system_hibernate        (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:113:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void       gsm_system_set_session_idle (GsmSystem *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.h:116:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gboolean   gsm_system_is_login_session (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:118:60:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gboolean   gsm_system_is_last_session_for_user (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:120:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gboolean   gsm_system_is_active        (GsmSystem *system);
data/gnome-session-3.38.0/gnome-session/gsm-system.h:122:59:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void       gsm_system_add_inhibitor    (GsmSystem        *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.h:126:59:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void       gsm_system_remove_inhibitor (GsmSystem        *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.h:128:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void       gsm_system_prepare_shutdown  (GsmSystem  *system,
data/gnome-session-3.38.0/gnome-session/gsm-system.h:130:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
void       gsm_system_complete_shutdown (GsmSystem  *system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:511:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_attempt_restart (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:513:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:548:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_attempt_stop (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:550:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:563:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_set_session_idle (GsmSystem *system,
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:566:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:590:41:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_can_switch_user (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:592:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:604:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_can_restart (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:606:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:636:55:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_can_restart_to_firmware_setup (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:638:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:670:55:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_set_restart_to_firmware_setup (GsmSystem *system,
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:673:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:695:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_can_stop (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:697:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:727:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_is_login_session (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:729:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:752:37:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_can_suspend (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:754:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:784:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_can_hibernate (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:786:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:854:33:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_suspend (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:856:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:869:35:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_hibernate (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:871:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:918:46:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_add_inhibitor (GsmSystem        *system,
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:922:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:947:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_remove_inhibitor (GsmSystem   *system,
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:950:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *manager = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:992:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_prepare_shutdown (GsmSystem *system,
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:995:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *systemd = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:1045:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_complete_shutdown (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:1047:44:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        GsmSystemd *systemd = GSM_SYSTEMD (system);
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:1054:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
gsm_systemd_is_last_session_for_user (GsmSystem *system)
data/gnome-session-3.38.0/gnome-session/gsm-systemd.c:1142:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access("/run/systemd/seats/", F_OK) < 0)
data/gnome-session-3.38.0/gnome-session/main.c:218:14:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if (!execvp ("dbus-launch", new_argv)) {
data/gnome-session-3.38.0/tools/gnome-session-inhibit.c:287:7:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execvp (*argv, argv);
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:1230:27:  [3] (random) g_random_int_range:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        cookie = (guint32)g_random_int_range (1, G_MAXINT32);
data/gnome-session-3.38.0/gnome-session/gsm-util.c:468:25:  [3] (random) g_random_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                rand1 = g_random_int ();
data/gnome-session-3.38.0/gnome-session/gsm-util.c:469:25:  [3] (random) g_random_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                rand2 = g_random_int ();
data/gnome-session-3.38.0/gnome-session/main.c:237:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if (getenv ("DISPLAY") == NULL) {
data/gnome-session-3.38.0/tools/gnome-session-selector.c:631:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if (getenv ("SESSION_MANAGER") != NULL)
data/gnome-session-3.38.0/gnome-session/gsm-manager.c:3693:58:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                                        (char *)internal_provides[i]);
data/gnome-session-3.38.0/gnome-session/gsm-xsmp-server.c:478:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen (filename, "r+");
data/gnome-session-3.38.0/gnome-session/gsm-xsmp-server.c:514:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                fd = open (filename, O_CREAT | O_WRONLY, 0600);
data/gnome-session-3.38.0/gnome-session/gsm-xsmp-server.c:558:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char   error[256];
data/gnome-session-3.38.0/gnome-session/main.c:437:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                debug = atoi (debug_string) == 1;
data/gnome-session-3.38.0/gnome-session/test-process-helper.c:43:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                int i = atoi (argv[2]);
data/gnome-session-3.38.0/tools/gnome-session-check-accelerated-gl-helper.c:134:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                ret = atoi (arg);
data/gnome-session-3.38.0/tools/gnome-session-check-accelerated-gl-helper.c:151:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char value[KENV_MVALLEN];
data/gnome-session-3.38.0/tools/gnome-session-check-accelerated-gl-helper.c:162:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                ret = atoi (value);
data/gnome-session-3.38.0/tools/gnome-session-check-accelerated-gl-helper.c:203:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        blacklist = fopen(PKGDATADIR "/hardware-compatibility", "r");
data/gnome-session-3.38.0/tools/gnome-session-ctl.c:168:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[1];
data/gnome-session-3.38.0/tools/gnome-session-selector.c:159:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char last_session[PATH_MAX] = "";
data/gnome-session-3.38.0/gnome-session/gsm-presence.c:118:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (status_text != NULL && strlen (status_text) > MAX_STATUS_TEXT) {
data/gnome-session-3.38.0/gnome-session/gsm-xsmp-server.c:598:23:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        saved_umask = umask (0);
data/gnome-session-3.38.0/gnome-session/gsm-xsmp-server.c:599:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask (saved_umask);
data/gnome-session-3.38.0/gnome-session/gsm-xsmp-server.c:608:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask (saved_umask);
data/gnome-session-3.38.0/tools/gnome-session-check-accelerated-gl-helper.c:130:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        arg = word + strlen ("gnome.fallback=");
data/gnome-session-3.38.0/tools/gnome-session-check-accelerated-gl-helper.c:217:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                line[strlen(line) - 1] = '\0';
data/gnome-session-3.38.0/tools/gnome-session-check-accelerated.c:181:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 read:
data/gnome-session-3.38.0/tools/gnome-session-check-accelerated.c:195:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                        goto read;
data/gnome-session-3.38.0/tools/gnome-session-check-accelerated.c:300:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				XA_STRING, 8, PropModeReplace, (guchar *) renderer_string, strlen (renderer_string));
data/gnome-session-3.38.0/tools/gnome-session-ctl.c:169:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                read (data->fifo_fd, buf, 1);

ANALYSIS SUMMARY:

Hits = 225
Lines analyzed = 21730 in approximately 0.51 seconds (42863 lines/second)
Physical Source Lines of Code (SLOC) = 16014
Hits@level = [0]   4 [1]  10 [2]  12 [3]   5 [4] 197 [5]   1
Hits@level+ = [0+] 229 [1+] 225 [2+] 215 [3+] 203 [4+] 198 [5+]   1
Hits/KSLOC@level+ = [0+] 14.3 [1+] 14.0502 [2+] 13.4258 [3+] 12.6764 [4+] 12.3642 [5+] 0.0624454
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.