Auto-connection request for hutech-it-browser for process-control and system-observe interfaces

Hello Snapcraft Review Team,

I am requesting classic confinement for the snap hutech-it-browser.

Application Details:

  • Snap Name: hutech-it-browser
  • Publisher: khuyenpb (Faculty of Information Technology, HUTECH University)
  • Website: https://itcoder.hutech.edu.vn
  • Summary: Secure and Intelligent Exam Kiosk Browser for university programming contests and assessments.

Why strict confinement is not sufficient:

hutech-it-browser is a dedicated academic lockdown / exam kiosk browser similar to Safe Exam Browser (SEB). To guarantee examination integrity and prevent cheating in laboratory environments, the application requires system-level access that is completely blocked by strict confinement:

  1. Full-Screen Kiosk Takeover: Under strict confinement on GNOME Mutter, the window manager prevents sandboxed snaps from overriding the GNOME Top Bar and the Ubuntu Dock. Classic confinement is required to cover 100% of the screen and hide all desktop controls during examinations.
  2. System Shortcut Lockdown via gsettings: The browser must temporarily disable Alt+Tab, Super key (Activities Overview), and workspace switching shortcuts using gsettings set org.gnome.desktop.wm.keybindings ... while an exam session is in progress, and restore them upon session completion. Strict confinement AppArmor profiles deny write access to host GNOME schemas.
  3. Anti-Cheat Process Monitoring: The browser must inspect host process table (/proc) to detect unauthorized third-party communication tools (Discord, Telegram, AnyDesk, TeamViewer) running outside the sandbox during examination sessions.

Therefore, classic confinement is strictly necessary for the core functionality of this educational kiosk browser.

Thank you very much for your time and review!

This request has been added to the queue for review by the @reviewers team.

1 Like

Please see:

Your app must fit in one of the supported categories from that page to be considered for classic confinement.

Also note the last paragraph, the packaging of classically confined snaps requires a massive amount of extra work and knowledge of the binaries and libraries included as well as knowledge about how to do binary patching.

In your description above at least two of the reasons are covered by interfaces provided to strict snaps, i.e. the process-control interface as well as the gsettings interface, both should provide the required functionality .

1 Like

Hi @ogra,

Thank you very much for clarifying the classic confinement policy and guiding me to the proper interfaces.

I completely understand that educational kiosk browsers do not qualify for classic confinement and that strict confinement with specialized interfaces is Canonical’s intended architecture.

I have updated our snap configuration to confinement: strict (version 1.7.3) and declared the required plugs:

  • gsettings: to temporarily manage GNOME shortcut bindings (org.gnome.desktop.wm.keybindings) during active exam kiosk sessions (disabling Alt+Tab, Super key/Activities overview, etc., and restoring them upon exam completion).
  • process-control & system-observe: to inspect the host /proc table and terminate unauthorized communication and remote-assistance apps (Discord, Telegram, TeamViewer) while an exam is actively running.
  • desktop, desktop-legacy, wayland, x11, opengl, browser-support, network, network-bind, screen-inhibit-control, and audio-playback.

Since process-control is a restricted interface that requires manual connection by default, could we transition this topic (or should I create a new thread in store-requests) to request auto-connection for the process-control and system-observe interfaces for hutech-it-browser?

Application Details:

  • Snap Name: hutech-it-browser
  • Publisher: khuyenpb
  • Confinement: strict
  • Base: core22 / core20

Thank you again for your time and guidance!

Have you considered using the gnome extension ?

It would make your snap smaller (you can drop most graphical libs, themes and fonts and only ship anything that diverges from defaults) and brings along a lot of the desktop related interfaces automatically already (desktop, -legacy, x11, wayland, opengl at least) so you wouldn’t have to bother declaring these.

Also two probably helpful hints:

  • use snappy-debug (from the same named snap package), run it alongside of your app in a terminal and it will give you suggestions for interfaces to use to overcome confinement issues
  • when using an extension the snapcraft expand-extensions command will show the snapcraft.yaml with all automatic changes an extension brings along.
1 Like

Hi @ogra,

Thank you very much for the helpful tips and guidance!

  1. GNOME & Desktop Plugs Integration: Following your recommendation, we updated our electron-builder packaging configuration to target base: core22 and leverage the default desktop plugs inheritance. We removed all manual declarations of individual graphical interfaces (desktop, desktop-legacy, wayland, x11, opengl, audio-playback, etc.), leaving only our kiosk-specific security plugs declared explicitly.

  2. Debugging with snappy-debug: Thank you for suggesting snappy-debug. We ran it alongside our browser during an active exam kiosk session. The logs confirmed that:

    • When the kiosk initiates and scans the host process list to detect and terminate prohibited cheating tools (such as Discord, Telegram, and remote-desktop utilities), AppArmor flags security denials on /proc and process signaling without process-control and system-observe.
    • With both interfaces connected, the kiosk operates smoothly and securely under strict confinement.

Given that this is an educational exam kiosk browser and requiring non-technical students to manually open a terminal and run sudo snap connect ... before an exam is a major impediment, could you please advise on how to proceed with requesting auto-connection for process-control and system-observe for hutech-it-browser? Should we continue in this thread or open a dedicated request topic under the store-requests category?

Thank you again for your time and continued support!

I have moved it to the privileged-interfaces category and updated the title, let’s see what the actual reviewers say :wink:

1 Like

Thank you very much @ogra for updating the title and moving the topic to the privileged-interfaces category! I really appreciate your help and will stand by for the reviewers’ feedback.

Hi @khuyenpb

Given the functionality of the application, the reasoning makes sense to me for auto-connection of process-control and system-observe interfaces. What do other reviewers think?

1 Like

Hello @khuyenpb :slight_smile:

The two interfaces map directly to the kiosk’s documented purpose, and your snappy-debug output confirms the denials correspond precisely to the process-scanning and signalling functionality. Hence, this is a +1 from my side as well, for auto-connection of process-control and system-observe interfaces to the hutech-it-browser snap!

1 Like

Thank you very much @shishirsub10 and @yomonokio for taking the time to review our application and for supporting the auto-connection request!

We truly appreciate your feedback and vote. We take user security and privacy very seriously: the browser strictly restricts process scanning and signalling exclusively to active, authorized exam kiosk sessions, targeting only prohibited communication and remote-assistance tools to uphold academic integrity.

I will patiently await the conclusion of the voting period and any further guidance from the team. Thank you again for your support!

1 Like

+2 votes for, 0 votes against, Granting auto-connection of process-control and system-observe interface to hutech-it-browser, this is now live.

1 Like

Thank you @reviewers and @ogra for granting the auto-connection for process-control and system-observe! It is working wonderfully for scanning and terminating prohibited cheating applications outside the sandbox.

Regarding the Kiosk mode & keyboard lockdown: We tested our native .deb package and it works perfectly: by executing gsettings set org.gnome.mutter overlay-key '' and gsettings set org.gnome.shell.keybindings show-screenshot-ui "['']", the Super key, workspace swipe gestures, and the screenshot UI are completely disabled during exam sessions.

However, in our Snap package on Ubuntu 24.04/22.04:

  1. Following @ogra’s advice, we are adding the gsettings plug to our snap configuration.
  2. Does the AppArmor profile of the gsettings interface under strict confinement permit modifying host desktop keybindings such as org.gnome.mutter overlay-key and org.gnome.shell.keybindings show-screenshot-ui on the user session bus? Or does AppArmor / dconf isolate writes away from the host GNOME Shell compositor?
  3. In case strict confinement fundamentally prevents a sandboxed application from blocking the host GNOME Shell screenshot overlay (PrtScn) and workspace switching gestures, would our university exam browser (similar in scope and necessity to Safe Exam Browser) qualify for classic confinement so we can enforce full examination integrity on Ubuntu?

Thank you again for your guidance and support!

Well, the interface description on https://snapcraft.io/docs/reference/interfaces/gsettings-interface/ says:

gsettings provides access to any GSettings item for the current user. (emphasis: mine :slight_smile: )

So I would expect it to do exactly this … if the setting is available in the users session you should have access to it through the interface (you might need to bundle the gsettings binary in your snap if you do not want to use direct dbus calls to the session bus though, since it does not give you access to the gsettings binary on the host, only to the settings themselves)

The interface code can be looked at here:

1 Like