Hi,

My two cents: do not hard code this but make it configurable, with a sane default.

Cheers,
Kees

On 02/06/2026 09:59, Jimmy Björklund via lists.fd.io wrote:
When creating the files under /var/run/vpp, thy get created with rights 775 by default would it not be better to have them 770 ?

File: src/vppinfra/socket.c
|if (sa->sa_family == AF_UNIX && s->allow_group_write)|
|{ |
|<< mode_t def_restrictions = umask(S_IWOTH);   // umask = 0002|
>>  mode_t def_restrictions = umask (S_IRWXO); // Make it 770 instead of 775 | bind_ret = bind(s->fd, sa, addr_len);     // socket gets 0777 & ~0002 = 0775 |
| Umask(def_restrictions); |
|}|
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#27027): https://lists.fd.io/g/vpp-dev/message/27027
Mute This Topic: https://lists.fd.io/mt/119607802/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/14379924/21656/631435203/xyzzy 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to