{"push_id":2816709159,"size":1,"distinct_size":1,"ref":"refs/heads/feature/obj-pinning","head":"c26b44a5a75fc21baabbfd2de78881e275725f6b","before":"bf0a76b147615d1ad45e4b40c9ba558e64dd3a95","commits":[{"sha":"c26b44a5a75fc21baabbfd2de78881e275725f6b","author":{"name":"Oriol Arcas","email":"a98c9d4e37de3d71db2e1a293b51c579a914c4ae@starflownetworks.com"},"message":"Python support for object pinning (persistent BPF)\n\nThis commit adds support for the BPF_OBJ_PIN system call, already\npresent in libbpf. A BPF program or map can be made persistent if pinned\nto a file system path with the new methods:\n\n  b.pin_func_to_fs(func_name, path)\n\nor\n\n  b.pin_table_to_fs(table_name, path)\n\nAny process with enough permissions will be able to open such path and\ngain access to the BPF file descriptor. The BPF object will persist\nuntil the file has been unlinked and all the file descriptors are\nclosed.\n\nPersistent objects are necessary for iptables and tc BPF commands.\n\nBPF objects can only be pinned to a BPF file system. It can be mounted\nwith the following command:\n\n  # mount -t bpf none /sys/fs/bpf\n\nIn /sys/fs/bpf there is an empty directory for this purpose.\n\nSigned-off-by: Oriol Arcas <oriol@starflownetworks.com>","distinct":true,"url":"https://api.github.com/repos/oriolarcas/bcc/commits/c26b44a5a75fc21baabbfd2de78881e275725f6b"}]}
{"actor":{"display_login":"oriolarcas"}}