AA_FIND_MOUNTPOINT
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
BUGS
SEE ALSO
POD ERRORS
NAME
aa_is_enabled − determine if apparmor is available
aa_find_mountpoint − find where the apparmor interface filesystem is mounted
SYNOPSIS
#include <sys/apparmor.h>
int aa_is_enabled(void);
int aa_find_mountpoint(char **mnt);
Link with −lapparmor when compiling.
DESCRIPTION
The aa_is_enabled function returns true (1) if apparmor is enabled. If it isn’t it sets the errno to reflect the reason it is not enabled and returns 0.
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
aa_is_enabled On success 1 is returned. On error, 0 is returned, and errno(3) is set appropriately.
aa_find_mountpoint On success zero is returned. On error, −1 is returned, and errno(3) is set appropriately.
ERRORS
aa_is_enabled
ENOSYS
AppArmor extensions to the system are not available.
ECANCELED
AppArmor is available on the system but has been disabled at boot.
ENOENT
AppArmor is available (and maybe even enforcing policy) but the interface is not available.
ENOMEM
Insufficient memory was available.
EPERM
Did not have sufficient permissions to determine if AppArmor is enabled.
EACCES
+Did not have sufficient permissions to determine if AppArmor is enabled.
aa_find_mountpoint
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>.
POD ERRORS
Hey! The
above document had some coding errors, which are explained
below:
Around line 60:
You can’t have =items (as at line 64) unless the first thing after the =over is an =item
More Linux Commands
manpages/wcsncasecmp.3.html
wcsncasecmp(3) - compare two fixed-size wide-character strin
The wcsncasecmp() function is the wide-character equivalent of the strncasecmp(3) function. It compares the wide-character string pointed to by s1 and the wide-
manpages/getline.3.html
getline(3) - delimited string input - Linux manual page.....
getline() reads an entire line from stream, storing the address of the buffer containing the text into *lineptr. The buffer is null-terminated and includes the
manpages/gnutls_x509_privkey_import_dsa_raw.3.html
gnutls_x509_privkey_import_dsa_raw(3) - API function........
This function will convert the given DSA raw parameters to the native gnutls_x509_privkey_t format. The output will be stored in key. RETURNS On success, GNUTLS
manpages/intel_bios_dumper.1.html
intel_bios_dumper(1) - Saves the Intel video BIOS contents t
intel_bios_dumper is a tool to save the contents of the Intel video BIOS to a file. It can then be parsed offline for debugging issues with the video bios table
manpages/XUndefineCursor.3.html
XUndefineCursor(3) - define cursors - Linux manual page.....
If a cursor is set, it will be used when the pointer is in the window. If the cursor is None, it is equivalent to XUndefineCursor. XDefineCursor can generate Ba
manpages/makeinfo.1.html
makeinfo(1) - translate Texinfo documents - Linux man page
Translate Texinfo source documentation to various other formats, by default Info files suitable for reading online with Emacs or standalone GNU Info. General op
manpages/systemd.1.html
systemd(1) - systemd System and Service Manager (Man Page)
systemd is a system and service manager for Linux operating systems. When run as first process on boot (as PID 1), it acts as init system that brings up and mai
manpages/gluBeginCurve.3gl.html
gluBeginCurve(3gl) - delimit a NURBS curve definition.......
Use gluBeginCurve to mark the beginning of a NURBS curve definition. After calling gluBeginCurve, make one or more calls to gluNurbsCurve to define the attribut
manpages/ber_put_string.3.html
ber_put_string(3) - OpenLDAP LBER simplified Basic Encoding
These routines provide a subroutine interface to a simplified implementation of the Basic Encoding Rules of ASN.1. The version of BER these routines support is
manpages/glGetTexParameter.3gl.html
glGetTexParameter(3gl) - return texture parameter values....
glGetTexParameter returns in params the value or values of the texture parameter specified as pname. target defines the target texture, either GL_TEXTURE_1D, GL
manpages/move_panel.3curses.html
move_panel(3curses) - panel stack extension for curses......
Panels are ncurses(3NCURSES) windows with the added feature of depth. Panel functions allow the use of stacked windows and ensure the proper portions of each wi
manpages/gnutls_anon_allocate_client_credentials.3.html
gnutls_anon_allocate_client_credentials(3) - API function...
gnutls_anon_allocate_client_credentials.3 - This structure is complex enough to manipulate directly thus this helper function is provided in order to allocate i
