Hi
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);
}
/Jimmy
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#27026): https://lists.fd.io/g/vpp-dev/message/27026
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]]
-=-=-=-=-=-=-=-=-=-=-=-