[GH-ISSUE #843] Keepass doesn't start #575

Closed
opened 2026-05-05 06:12:16 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @curiosity-seeker on GitHub (Oct 7, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/843

With the existing profile Keepass 2.32 on Fedora 24 doesn't start. I'm getting the following error message:

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.Net.Sockets.SocketException: Operation not supported
  at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) <0x41e75e90 + 0x0020b> in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) <0x41e72190 + 0x00413> in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11..ctor () <0x41e6c830 + 0x001e7> in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.GetInstance () <0x41e6c520 + 0x0006f> in <filename unknown>:0 
  at System.Windows.Forms.XplatUI..cctor () <0x41e6b340 + 0x00137> in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Windows.Forms.Application.EnableVisualStyles () <0x41e63c50 + 0x0001f> in <filename unknown>:0 
  at KeePass.Program.Main (System.String[] args) <0x41e62920 + 0x0008f> in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.Net.Sockets.SocketException: Operation not supported
  at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) <0x41e75e90 + 0x0020b> in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) <0x41e72190 + 0x00413> in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11..ctor () <0x41e6c830 + 0x001e7> in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.GetInstance () <0x41e6c520 + 0x0006f> in <filename unknown>:0 
  at System.Windows.Forms.XplatUI..cctor () <0x41e6b340 + 0x00137> in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Windows.Forms.Application.EnableVisualStyles () <0x41e63c50 + 0x0001f> in <filename unknown>:0 
  at KeePass.Program.Main (System.String[] args) <0x41e62920 + 0x0008f> in <filename unknown>:0 
Sandbox monitor: waitpid 2 retval 2 status 256

Only after changing

protocol unix

to

protocol unix,inet,inet6

all is well. Anyone else with this problem?

Originally created by @curiosity-seeker on GitHub (Oct 7, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/843 With the existing profile Keepass 2.32 on Fedora 24 doesn't start. I'm getting the following error message: ``` Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.Net.Sockets.SocketException: Operation not supported at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) <0x41e75e90 + 0x0020b> in <filename unknown>:0 at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) <0x41e72190 + 0x00413> in <filename unknown>:0 at System.Windows.Forms.XplatUIX11..ctor () <0x41e6c830 + 0x001e7> in <filename unknown>:0 at System.Windows.Forms.XplatUIX11.GetInstance () <0x41e6c520 + 0x0006f> in <filename unknown>:0 at System.Windows.Forms.XplatUI..cctor () <0x41e6b340 + 0x00137> in <filename unknown>:0 --- End of inner exception stack trace --- at System.Windows.Forms.Application.EnableVisualStyles () <0x41e63c50 + 0x0001f> in <filename unknown>:0 at KeePass.Program.Main (System.String[] args) <0x41e62920 + 0x0008f> in <filename unknown>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.Net.Sockets.SocketException: Operation not supported at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) <0x41e75e90 + 0x0020b> in <filename unknown>:0 at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) <0x41e72190 + 0x00413> in <filename unknown>:0 at System.Windows.Forms.XplatUIX11..ctor () <0x41e6c830 + 0x001e7> in <filename unknown>:0 at System.Windows.Forms.XplatUIX11.GetInstance () <0x41e6c520 + 0x0006f> in <filename unknown>:0 at System.Windows.Forms.XplatUI..cctor () <0x41e6b340 + 0x00137> in <filename unknown>:0 --- End of inner exception stack trace --- at System.Windows.Forms.Application.EnableVisualStyles () <0x41e63c50 + 0x0001f> in <filename unknown>:0 at KeePass.Program.Main (System.String[] args) <0x41e62920 + 0x0008f> in <filename unknown>:0 Sandbox monitor: waitpid 2 retval 2 status 256 ``` Only after changing `protocol unix` to `protocol unix,inet,inet6` all is well. Anyone else with this problem?
gitea-mirror 2026-05-05 06:12:16 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@netblue30 commented on GitHub (Oct 8, 2016):

I put your fix in. I have no idea what's going on, it is similar with "evince doesn't run with --net=none". Probably one of the libraries is pushing some DNS traffic.

<!-- gh-comment-id:252422254 --> @netblue30 commented on GitHub (Oct 8, 2016): I put your fix in. I have no idea what's going on, it is similar with "evince doesn't run with --net=none". Probably one of the libraries is pushing some DNS traffic.
Author
Owner

@valoq commented on GitHub (Oct 11, 2016):

Just for additional information:

evince does run with --net=none but only if /tmp/.X11-unix is whitelisted
Is suspect it has something to do with x11 using ether the socket in /tmp or network access.

<!-- gh-comment-id:252888897 --> @valoq commented on GitHub (Oct 11, 2016): Just for additional information: evince does run with --net=none but only if /tmp/.X11-unix is whitelisted Is suspect it has something to do with x11 using ether the socket in /tmp or network access.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#575
No description provided.