Software:authbind
Original author(s) | Ian Jackson |
---|---|
Initial release | August 29, 1998 |
Stable release | 2.1.2
/ January 22, 2017 |
Written in | C |
Operating system | Unix-like |
Platform | Cross-platform[which?] |
Type | System utility |
License | GNU General Public License |
Website | upstream git Debian archive (official location for upstream tarballs) |
authbind is an open-source system utility written by Ian Jackson and is distributed under the GNU General Public License.[1] The authbind software allows a program that would normally require superuser privileges to access privileged network services to run as a non-privileged user. authbind allows the system administrator to permit specific users and groups access to bind to TCP and UDP ports below 1024.[2] Ports 0 - 1023 are normally privileged and reserved for programs that are run as the root user. Allowing regular users limited access to privileged ports helps prevent possible privilege escalation and system compromise if the software happens to contain software bugs or is found to be vulnerable to unknown exploits.
authbind achieves this by defining the LD PRELOAD environment variable which loads a libauthbind library. This library overrides the bind() call with a version that executes a setuid helper program (/usr/lib/authbind/helper) with the socket as file descriptor 0. The helper validates its arguments and checks its configuration, calls the real bind() system call on file descriptor 0 (which also affects the original process's socket), and exits, allowing the original process to continue with the socket bound to the requested address and port.
authbind is currently distributed with the Debian and Ubuntu Linux distributions.[3][4]
Alternatives
- The Linux kernel's implementation of POSIX capabilities includes the CAP_NET_BIND_SERVICE which allows either explicitly enabled binaries (with "setcap CAP_NET_BIND_SERVICE+ep /path/to/binary") or binaries configured to accept the capability from the invoking user's capability set ("setcap CAP_NET_BIND_SERVICE+ei /path/to/binary") if available, making userland software unnecessary for binding to lower numeral ports. Linux capabilities, however were not introduced until the latter half of 1999, more than a year after authbind's release, and (similar to setuid/setgid) cannot be set on scripts. Both these explain why the software was initially developed.
See also
- chroot
- Operating system-level virtualization
- FreeBSD jail
- Sysjail
- Solaris Containers
- LOMAC
References
- ↑ "authbind "debian" metadata directory as of 2012-06-30". http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=authbind.git;a=tree;f=debian;h=1ca4c03904b17555e5819ffbda6b969c27f8f48f;hb=HEAD.
- ↑ Hunger, Steve (2001-05-01). Debian GNU/Linux Bible (2nd ed.). Hoboken, New Jersey: John Wiley & Sons. p. 609. ISBN 0-7645-4710-0.
- ↑ "Debian authbind packages". http://packages.debian.org/search?keywords=authbind&searchon=names&suite=all§ion=all.
- ↑ "Ubuntu authbind packages". http://packages.ubuntu.com/search?keywords=authbind&searchon=names&suite=all§ion=all.
External links
Original source: https://en.wikipedia.org/wiki/Authbind.
Read more |