Hey there!
I want to use LightDMs integrated VNC function so I configured it in /etc/lightdm/lightdm.conf
:
[VNCServer]
enabled=true
command=Xvnc -rfbauth /etc/vncpasswd
port=5900
listen-address=127.0.0.1
width=1920
height=1080
depth=24
I installed tigervnc-server
, created the password file and restarted the system.
After the reboot sudo systemctl status lightdm
shows the following errors:
Nov 05 22:40:32 myserver lightdm[6227]: Failed to create IPv4 VNC socket: Error binding to address 127.0.0.1:5900: Permission denied
Nov 05 22:40:32 myserver lightdm[6227]: Failed to create IPv6 VNC socket: Error binding to address 127.0.0.1:5900: Permission denied
I have no experience with SELinux so I did some searching and found some debug commands:
sudo ausearch -c 'vncsession' --raw
sudo ausearch -m AVC,USER_AVC,SELINUX_ERR,USER_SELINUX_ERR -ts recent
Both don’t give any results.
However, if I set SELinux to permissive, the vnc server starts just fine and I can connect to it.
tigervnc-selinux
is installed.
So my question is: Did I hit a bug or is this expected behaviour and I’m just incompetent?
Any help or hints are appreciated. Thanks!