diff --git a/libraries/libapparmor/doc/aa_getcon.pod b/libraries/libapparmor/doc/aa_getcon.pod index f279128d4..a0768a8bc 100644 --- a/libraries/libapparmor/doc/aa_getcon.pod +++ b/libraries/libapparmor/doc/aa_getcon.pod @@ -41,7 +41,9 @@ B B -B +B + +B Link with B<-lapparmor> when compiling. @@ -59,6 +61,9 @@ The aa_getpeercon function is similar to that of aa_gettaskcon except that it returns the confinement information for task on the other end of a socket connection. +The aa_getpeercon_raw function is the backend for the aa_getpeercon function +and does not handle buffer allocation. + The aa_getprocattr function is the backend for the aa_getcon and aa_gettaskcon functions and handles the reading and parsing of the confinement data from different arbitrary attr files and returns the processed results in @@ -96,10 +101,16 @@ The specified I does not exist or is not visible. =item B -The confinement data is to large to fit in the supplied buffer. +The confinement data is too large to fit in the supplied buffer. =back +=head1 NOTES + +If aa_getpeercon_raw returns -1 and errno is ERANGE, the value of *len can be +used to reallocate buf so that it is sufficiently large enough to store the +confinement data. + =head1 BUGS None known. If you find any, please report them at