NAME
aa **buf, char **mode); int aa_gettaskcon(pid_t target, char **con, char **mode); int aa_getcon(char **con, char **mode); int aa_getpeercon(int fd, char **con); Link with -lapparmor when compiling.
DESCRIPTION
The aa_getcon function gets the current AppArmor confinement context for the current task. The confinement context is usually just the name of the AppArmor profile restricting the task, but it may include the profile namespace or in some cases a set of profile names (known as a stack of profiles). The returned string *con should be freed using free(). to large to fit in the supplied buffer.
BUGS
None known. If you find any, please report them at <>.
SEE ALSO
apparmor(7), apparmor.d(5), apparmor_parser(8), aa_change_profile(2) and <>.