Provided by: libapparmor1_2.7.0~beta1+bzr1774-1ubuntu2_i386 bug

NAME

       aa_find_mountpoint - find where the apparmor interface filesystem is
       mounted

SYNOPSIS

       #include <sys/apparmor.h>

       int aa_find_mountpoint(char **mnt);

       Link with -lapparmor when compiling.

DESCRIPTION

       The aa_find_mountpoint function finds where the apparmor filesystem is
       mounted on the system, and returns a string containing the mount path.
       It is the caller's responsibility to free(3) the returned path.

RETURN VALUE

       On success zero is returned. On error, -1 is returned, and errno(3) is
       set appropriately.

ERRORS

       ENOMEM
           Insufficient memory was available.

       EACCES
           Access to the the required paths was denied.

       ENOENT
           The apparmor filesystem mount could not be found

BUGS

       None known. If you find any, please report them at
       <http://https://bugs.launchpad.net/apparmor/+filebug>.

SEE ALSO

       apparmor(7), apparmor.d(5), apparmor_parser(8), and
       <http://wiki.apparmor.net>.