RSBAC_MS_GET_COPIED(2)

NAME
rsbac_ms_get_copied - get last number of bytes transferred by this socket

SYNOPSIS
#include <rsbac/types.h>

#include <rsbac/syscalls.h>

int rsbac_ms_get_copied(int fd);

DESCRIPTION
rsbac_ms_get_copied gets the last number of bytes transferred by this socket, if blocked because of malware. This is the only way to get this value and use a read buffer, if -RSBAC_EMALWAREDETECTED has been returned by sys_read, but works only, if MS_sock_trusted_tcp/udp is MS_active for this process.

RETURN VALUE
rsbac_ms_get_copied returns the number of bytes on success and an error code otherwise.

ERRORS

RSBAC_EINVALIDTARGET
    fd is invalid or socket has no status MS_active_rejected.

RSBAC_EREADFAILED
    The RSBAC system ran into an error while getting the attribute.

SEE ALSO
-

AUTHOR
Amon Ott <ao@compuniverse.com>