"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lxc/seccomp.c" between
lxc-4.0.9.tar.gz and lxc-4.0.10.tar.gz

About: LXC are userspace tools for the Linux kernel containers that let users easily create and manage system or application containers.

seccomp.c  (lxc-4.0.9):seccomp.c  (lxc-4.0.10)
skipping to change at line 1515 skipping to change at line 1515
close_prot_errno_disarm(fd_mem); close_prot_errno_disarm(fd_mem);
if (msg.__reserved != 0) { if (msg.__reserved != 0) {
ERROR("Proxy filled reserved data in response"); ERROR("Proxy filled reserved data in response");
seccomp_notify_default_answer(fd, req, resp, hdlr); seccomp_notify_default_answer(fd, req, resp, hdlr);
goto out; goto out;
} }
if (resp->id != req_id) { if (resp->id != req_id) {
ERROR("Proxy returned response with illegal id(%llu) != id(%llu)" , ERROR("Proxy returned response with invalid id(%llu) != id(%llu)" ,
(long long unsigned int)resp->id, (long long unsigned int)r eq_id); (long long unsigned int)resp->id, (long long unsigned int)r eq_id);
resp->id = req_id; resp->id = req_id;
seccomp_notify_default_answer(fd, req, resp, hdlr); seccomp_notify_default_answer(fd, req, resp, hdlr);
goto out; goto out;
} }
bytes = lxc_recvmsg_nointr_iov(listener_proxy_fd, iov, iov_len, MSG_TRUNC ); bytes = lxc_recvmsg_nointr_iov(listener_proxy_fd, iov, iov_len, MSG_TRUNC );
if (bytes != (ssize_t)msg_base_size) { if (bytes != (ssize_t)msg_base_size) {
SYSERROR("Failed to receive message from seccomp proxy"); SYSERROR("Failed to receive message from seccomp proxy");
seccomp_notify_default_answer(fd, req, resp, hdlr); seccomp_notify_default_answer(fd, req, resp, hdlr);
goto out; goto out;
} }
if (resp->id != req_id) { if (resp->id != req_id) {
ERROR("Proxy returned response with illegal id(%llu) != id(%llu)" , ERROR("Proxy returned response with invalid id(%llu) != id(%llu)" ,
(long long unsigned int)resp->id, (long long unsigned int)r eq_id); (long long unsigned int)resp->id, (long long unsigned int)r eq_id);
resp->id = req_id; resp->id = req_id;
} }
ret = seccomp_notify_respond(fd, resp); ret = seccomp_notify_respond(fd, resp);
if (ret) if (ret)
SYSERROR("Failed to send seccomp notification"); SYSERROR("Failed to send seccomp notification");
else else
TRACE("Sent response for seccomp notification with id(%llu)", TRACE("Sent response for seccomp notification with id(%llu)",
(long long unsigned int)resp->id); (long long unsigned int)resp->id);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)