From 22e73f32dddfdd536a2d6dff1ba184f592d45251 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 13 Sep 2011 15:17:21 +1000 Subject: [PATCH] update README with highly non-portable capability support on some linux kernels --- README | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README b/README index 001e6b4..24b1f00 100644 --- a/README +++ b/README @@ -35,6 +35,19 @@ ports from connecting. These servers require you use the "insecure" export option in /etc/exports in order to allow libnfs clients to be able to connect. +Some versions of Linux support special capabilities that can be assigned to +programs to allow non-root users to bind to system ports. +This is set up by running + sudo setcap 'cap_net_bind_service=+ep' /path/to/executable +When libnfs is linked against an executable with this special capability +assigned to it, libnfs may be able to use system ports even when executing +under the privilege of a non-root user account. + +This is highly non-portable so IF this works on your linux system, count +yourself lucky. + + + PLATFORM support ================= As of now this is tested with linux, MacOSX and Apple iOS. -- 2.34.1