Skip to content

Tighten the daemon child-process scan and check the Windows and Linux environment allow-lists #4359

Done

Description

@mstomar125

Found reviewing #4350 (child_env.rs).

  • The source scan cuts each file at its first #[cfg(test)], so files with that attribute on an early production item are not scanned after it: durable_write.rs:47, user_presence.rs:207, services/database_manager.rs:401. It also misses Command as C; C::new( and Command::new ( with a space. Make the scan structural (as the sync wire-shape guard does) and add a test with a planted spawn.
  • The Linux and Windows allow-lists were judged by reading only. Linux drops GDK_BACKEND, WEBKIT_, GTK_, LANGUAGE, LOGNAME, LD_LIBRARY_PATH and proxy/SSL_CERT_FILE variables; Windows drops ProgramFiles, ProgramW6432, PROCESSOR_ARCHITECTURE, NUMBER_OF_PROCESSORS and OS. Launch the app from the tray on each OS and add what it needs.

Done when the scan has no early-cut hole and the app launches from the tray on Linux and Windows.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions