Unverified Commit 19a50320 by Stéphane Graber Committed by GitHub

Merge pull request #2976 from brauner/2019-05-06/bugfixes

seccomp: document path calculation
parents 7e30d659 18847d37
...@@ -1338,7 +1338,10 @@ int seccomp_notify_handler(int fd, uint32_t events, void *data, ...@@ -1338,7 +1338,10 @@ int seccomp_notify_handler(int fd, uint32_t events, void *data,
__do_close_prot_errno int fd_mem = -EBADF; __do_close_prot_errno int fd_mem = -EBADF;
int reconnect_count, ret; int reconnect_count, ret;
ssize_t bytes; ssize_t bytes;
char mem_path[6 + 21 + 5]; char mem_path[6 /* /proc/ */
+ INTTYPE_TO_STRLEN(int64_t)
+ 3 /* mem */
+ 1 /* \0 */];
struct lxc_handler *hdlr = data; struct lxc_handler *hdlr = data;
struct lxc_conf *conf = hdlr->conf; struct lxc_conf *conf = hdlr->conf;
struct seccomp_notif *req = conf->seccomp.notifier.req_buf; struct seccomp_notif *req = conf->seccomp.notifier.req_buf;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment