aboutgitcodebugslistschat
path: root/util.c
Commit message (Expand)AuthorAgeFilesLines
* passt: Relicense to GPL 2.0, or any later versionStefano Brivio2023-04-061-1/+1
* tcp, udp, util: Pass socket creation errors all the way upStefano Brivio2023-03-091-13/+18
* treewide: Fix header includes to build with muslChris Kuhn2023-03-091-0/+1
* util: Add own prototype for __clone2() on ia642023_02_27.c538ee8Stefano Brivio2023-02-271-0/+9
* Make assertions actually usefulDavid Gibson2023-02-121-1/+0
* util: Always return -1 on error in sock_l4()David Gibson2022-11-251-1/+1
* util: Allow sock_l4() to open dual stack socketsDavid Gibson2022-11-251-2/+15
* util, pasta: Add do_clone() wrapper around __clone2() and clone()Stefano Brivio2022-11-161-0/+21
* arp, tap, util: Don't use perror() after seccomp filter is installedStefano Brivio2022-11-161-3/+3
* Replace FWRITE with a functionDavid Gibson2022-10-151-0/+33
* conf, tcp, udp: Allow specification of interface to bind toStefano Brivio2022-10-151-1/+18
* util: Check return value of lseek() while reading bound ports from procfsStefano Brivio2022-10-151-3/+7
* Move logging functions to a new file, log.cStefano Brivio2022-10-141-120/+1
* clang-tidy: Suppress warning about unchecked error in logfn macroDavid Gibson2022-09-291-1/+1
* Handle userns isolation and dropping root at the same timeDavid Gibson2022-09-131-5/+0
* Move self-isolation code into a separate fileDavid Gibson2022-09-131-51/+0
* Consolidate determination of UID/GID to run asDavid Gibson2022-09-131-50/+0
* Split checking for root from dropping root privilegeDavid Gibson2022-09-131-3/+26
* Don't store UID & GID persistently in the context structureDavid Gibson2022-09-131-6/+6
* util: Drop any supplementary group before dropping privilegesStefano Brivio2022-08-301-1/+1
* Make substructures for IPv4 and IPv6 specific context informationDavid Gibson2022-07-301-2/+2
* Allow different external interfaces for IPv4 and IPv6 connectivityDavid Gibson2022-07-301-1/+1
* util: Fix debug print on failed SO_REUSEADDR setting in sock_l4()Stefano Brivio2022-07-141-1/+1
* Remove unused line_read()David Gibson2022-07-061-54/+0
* Use new lineread implementation for procfs_scan_listen()David Gibson2022-07-061-4/+6
* conf: Add --runas option, changing to given UID and GID if started as rootStefano Brivio2022-05-191-0/+52
* conf, tcp, udp: Allow address specification for forwarded portsStefano Brivio2022-05-011-15/+12
* treewide: Unchecked return value from library, CWE-252Stefano Brivio2022-04-071-4/+7
* treewide: Fix android-cloexec-* clang-tidy warnings, re-enable checksStefano Brivio2022-03-291-1/+1
* treewide: Mark constant references as constStefano Brivio2022-03-291-4/+4
* treewide: Packet abstraction with mandatory boundary checksStefano Brivio2022-03-291-23/+37
* util: Fix function declaration style of write_pidfile()Stefano Brivio2022-03-291-1/+2
* tcp, udp, util: Enforce 24-bit limit on socket numbersStefano Brivio2022-03-291-0/+7
* tcp: Refactor to use events instead of states, split out spliced implementationStefano Brivio2022-03-281-0/+19
* conf, util, tap: Implement --trace option for extra verbose loggingStefano Brivio2022-03-251-0/+6
* seccomp: Adjust list of allowed syscalls for armv6l, armv7lStefano Brivio2022-02-261-1/+2
* passt, pasta: Namespace-based sandboxing, defer seccomp policy applicationStefano Brivio2022-02-211-16/+113
* util: Avoid return of possibly truncated unsigned long in bitmap_isset()Stefano Brivio2022-02-011-2/+2
* passt: Address new clang-tidy warnings from LLVM 13.0.1Stefano Brivio2022-01-301-3/+5
* tcp, udp, util: Fixes for bitmap handling on big-endian, castsStefano Brivio2022-01-261-3/+9
* conf, pasta: Explicitly pass CLONE_{NEWUSER,NEWNET} to setns()Stefano Brivio2022-01-261-2/+2
* passt: Drop <linux/ipv6.h> include, carry own ipv6hdr and opt_hdr definitionsStefano Brivio2022-01-261-2/+0
* passt: Add cppcheck target, test, and address resulting warningsStefano Brivio2021-10-211-2/+2
* passt: Fix build with gcc 7, use std=c99, enable some more Clang checkersStefano Brivio2021-10-211-4/+6
* util: Go to next non-empty line, skip newlines in line_read()Stefano Brivio2021-10-201-1/+5
* passt: Add clang-tidy Makefile target and test, take care of warningsStefano Brivio2021-10-201-2/+3
* passt: Static builds: don't redefine __vsyslog(), skip getpwnam() and initgro...Stefano Brivio2021-10-161-4/+7
* util, pasta: Don't read() and lseek() every single line in read_line()Stefano Brivio2021-10-161-4/+23
* util: Don't duplicate debug messages, they're already on stderrStefano Brivio2021-10-151-4/+4
* passt, pasta: Completely avoid dynamic memory allocationStefano Brivio2021-10-141-12/+117