On 06/27/2012 12:48 AM, Corinna Vinschen wrote: > I guess, the most platform-independent approach would be to encapsulate > the whole problem into a function requesting a specific capability along > the lines of the POSIX 1.e definitions,
Some Gnulib code (e.g., unlinkdir.c) relies on the Solaris-defined primitives in <priv.h> for that, e.g., priv_set_ismember (PRIV_SYS_LINKDIR) to test whether the current process can unlink directories (traditionally this required root privileges). Presumably this sort of thing could be extended and ported to POSIX 1.e, if someone wanted to do that.