mdmon: ensure Unix domain socket is created with safe permissions.
In the unlikely case that mdmon is started with an overly permissive umask, we don't want to risk giving away world acccess. All other "mkdir" and "O_CREAT" calls in mdmon and mdadm set a suitably restrictive permission mask. 'bind' don't take an explicit mask so it needs an implicit one. Reported-by: Vincent Berg <vberg@ioactive.com> Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
f99a9e1563
commit
120ec6f7b9
Loading…
Reference in New Issue