]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/af_unix.c
af unix: allow for maximum socket name
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 6 May 2017 16:33:28 +0000 (18:33 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 8 May 2017 10:15:43 +0000 (12:15 +0200)
commitcaf3beb02dd931caef96975d21cb985884dfabb9
tree3bf36a1f256670992e2c9fc398fce294869a6bc1
parent55b8c7557ace152e288a32c57791b210a8102a42
af unix: allow for maximum socket name

Abstract unix sockets need not be \0-terminated. So you can effectively have
107 chars available. If you \0-terminate you'll have a 106. Don't enforce
\0-termination in these low-level functions. Enforce it higher up which we
already do.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/af_unix.c
src/lxc/af_unix.h