Bug#921015: kamailio 5.2 invalid permissions at run dir cuases several issues

PICCORO McKAY Lenz mckaygerhard at gmail.com
Thu Jan 31 16:18:51 GMT 2019


Package: kamailio
Severity: grave
Version: 5.2.1-1

either upgraded or installed from zero, kamailio 5.2.1-1 seems there's no
working anymore with some important modules enabled..  4.4.4 does work
perfectly .. the fifo and rcp file are under a /var/run/kamailio directory
with denied access by the service and this files are important for control

seems the /var/run/kamailio directory are  denied for some resources..
as i can see directory are owed byt root and only ower and group have
access (seems kamailio itseflt change this but i can guarantee), but i
sure see that kamailio 4.4 instalation have the /var/run/kamailio
directory set to kamailio user and group

kamailio 4.4 backported by me for jessie:
`drwxr-xr-x 2 kamailio kamailio 100 Aug 15 17:33 kamailio`
kamailio 5.2 installed on buster/testing:
`drwxr-x--- 2 root root 120 Jan 30 09:35 kamailio`

due that several issues are happened if we started using some modules
due unable to manage the socket control:

```
Jan 31 15:35:51 venenux-debian kamailio[16861]: 17(16889) ERROR:
<core> [core/io_wait.h:1040]: io_wait_loop_epoll(): epoll_wait(7,
0x7f6ed6f88d88, 0, 5000): Invalid argument [22]
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR: ctl
[ctl.c:390]: mod_destroy(): ERROR: ctl: could not delete unix socket
/var/run/kamailio//kamailio_ctl: Permission denied (13)
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: <core>
[db_pool.c:100]: pool_remove(): removing connection from the pool
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:85]: tm_shutdown(): start
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:88]: tm_shutdown(): emptying hash table
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:90]: tm_shutdown(): removing semaphores
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:92]: tm_shutdown(): destroying tmcb lists
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:95]: tm_shutdown(): done
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR:
jsonrpcs [jsonrpcs_fifo.c:599]: jsonrpc_fifo_destroy(): FIFO stat
failed: Permission denied
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR:
jsonrpcs [jsonrpcs_sock.c:516]: jsonrpc_dgram_destroy(): socket stat
failed: Permission denied
```

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com



More information about the Pkg-voip-maintainers mailing list