lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170320155657.GD80094@ast-mbp.thefacebook.com>
Date:   Mon, 20 Mar 2017 08:56:59 -0700
From:   Alexei Starovoitov <alexei.starovoitov@...il.com>
To:     Chenbo Feng <chenbofeng.kernel@...il.com>
Cc:     netdev@...r.kernel.org, Alexei Starovoitov <ast@...com>,
        Daniel Borkmann <daniel@...earbox.net>,
        Lorenzo Colitti <lorenzo@...gle.com>,
        Willem de Bruijn <willemb@...gle.com>,
        Chenbo Feng <fengc@...gle.com>
Subject: Re: [PATCH net-next v4 3/3] A Sample of using socket cookie and uid
 for traffic monitoring

On Sun, Mar 19, 2017 at 05:08:44PM -0700, Chenbo Feng wrote:
> From: Chenbo Feng <fengc@...gle.com>
> 
> Add a sample program to demostrate the possible usage of
> get_socket_cookie and get_socket_uid helper function. The program will
> store bytes and packets counting of in/out traffic monitored by iptables
> and store the stats in a bpf map in per socket base. The owner uid of
> the socket will be stored as part of the data entry. A shell script for
> running the program is also included.
> 
> Signed-off-by: Chenbo Feng <chenbofeng.kernel@...il.com>
> ---
>  samples/bpf/cookie_uid_helper_example.c      | 229 +++++++++++++++++++++++++++
>  samples/bpf/libbpf.h                         |  10 ++
>  samples/bpf/run_cookie_uid_helper_example.sh |  14 ++

Makefile update missing?

> + * Compile:
> + * gcc -I ../../usr/include -I ../../tools/lib -I ../../tools/include \
> + * -I ./ -Wall cookie_uid_helper_example.c ../../tools/lib/bpf/bpf.c -o \
> + * perSocketStats_example

this can be part of Makefile and please drop CamelStyle.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ