I'm running an Oracle Linux 9.4 on the following LXC.
When I open a Unix socket, it doesn't allow other users access.
The socket is opened on a writable directory.
And other users should be able to access it.
However, access is denied.
I'm not sure if this is a problem with the LXC permissions or something else.
Any thoughts on this?
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?