Access denied to unix socket

markfree

Member
Jan 18, 2022
9
8
8
I'm running an Oracle Linux 9.4 on the following LXC.
Bash:
root@node:~# pct config 904
arch: amd64
features: fuse=1,nesting=1
ostype: centos
rootfs: VMs:vm-904-disk-1,mountoptions=lazytime,size=20G
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir

When I open a Unix socket, it doesn't allow other users access.
Bash:
[root@pod ~]# nc -vklU /tmp/root.socket
Ncat: Listening on /tmp/root.socket

Bash:
[user@pod ~]$ nc -U /tmp/root.socket
Ncat: Permission denied.

The socket is opened on a writable directory.
Bash:
[user@pod ~]$ ls -lad /tmp/
drwxrwxrwt 15 root root 4096 Sep 29 12:37 /tmp/

And other users should be able to access it.
Bash:
[user@pod ~]$ ls -lah /tmp/root.socket
srwxr-xr-x 1 root root 0 Sep 29 12:37 /tmp/root.socket

However, access is denied.
I'm not sure if this is a problem with the LXC permissions or something else.
Any thoughts on this?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!