id
stringlengths
4
63
text
stringlengths
153
8.81M
_transport_delete_port(9)
NAME _transport_delete_port - helper function to removing a port SYNOPSIS void _transport_delete_port (struct MPT3SAS_ADAPTER *ioc , struct _sas_port *mpt3sas_port ); ARGUMENTS ioc per adapter object mpt3sas_port mpt3sas per port object SEE ALSO Kernel file ./drivers/scsi/mpt3sas...
_transport_expander_phy_control(9)
NAME _transport_expander_phy_control - expander phy control SYNOPSIS int _transport_expander_phy_control (struct MPT3SAS_ADAPTER *ioc , struct sas_phy *phy , u8 phy_operation ); ARGUMENTS ioc per adapter object phy The sas phy object phy_operation ? RETURN 0 for suc...
_transport_expander_report_manufacture(9)
NAME _transport_expander_report_manufacture - obtain SMP report_manufacture SYNOPSIS int _transport_expander_report_manufacture (struct MPT3SAS_ADAPTER *ioc , u64 sas_address , struct sas_expander_device *edev , u8 port_id ); ARGUMENTS ioc per adapter object sas_address expander sas address ed...
_transport_get_bay_identifier(9)
NAME _transport_get_bay_identifier - SYNOPSIS int _transport_get_bay_identifier (struct sas_rphy *rphy ); ARGUMENTS rphy The sas phy object RETURN the slot id for a device that resides inside an enclosure. SEE ALSO Kernel file ./drivers/scsi/mpt3sas/mpt3sas_transport.c _transport_get_port_id_by_sas_phy(9)...
_transport_get_enclosure_identifier(9)
NAME _transport_get_enclosure_identifier - SYNOPSIS int _transport_get_enclosure_identifier (struct sas_rphy *rphy , u64 *identifier ); ARGUMENTS rphy The sas phy object identifier ? DESCRIPTION Obtain the enclosure logical id for an expander. RETURN 0 for success, non-zero for failure. SEE ALSO Ke...
_transport_get_expander_phy_error_log(9)
NAME _transport_get_expander_phy_error_log - return expander counters SYNOPSIS int _transport_get_expander_phy_error_log (struct MPT3SAS_ADAPTER *ioc , struct sas_phy *phy ); ARGUMENTS ioc per adapter object phy The sas phy object RETURN 0 for success, non-zero for failure. SEE ALSO Kernel ...
_transport_get_linkerrors(9)
NAME _transport_get_linkerrors - return phy counters for both hba and expanders SYNOPSIS int _transport_get_linkerrors (struct sas_phy *phy ); ARGUMENTS phy The sas phy object RETURN 0 for success, non-zero for failure. SEE ALSO Kernel file ./drivers/scsi/mpt3sas/mpt3sas_transport.c _transport_get_port_i...
_transport_get_port_id_by_rphy(9)
NAME _transport_get_port_id_by_rphy - Get Port number from rphy object SYNOPSIS u8 _transport_get_port_id_by_rphy (struct MPT3SAS_ADAPTER *ioc , struct sas_rphy *rphy ); ARGUMENTS ioc per adapter object rphy sas_rphy object DESCRIPTION Returns Port number. SEE ALSO Kernel file ./drivers/scs...
_transport_get_port_id_by_sas_phy(9)
NAME _transport_get_port_id_by_sas_phy - get zone's port id that Phy belong to SYNOPSIS u8 _transport_get_port_id_by_sas_phy (struct sas_phy *phy ); ARGUMENTS phy sas_phy object DESCRIPTION Return Port number SEE ALSO Kernel file ./drivers/scsi/mpt3sas/mpt3sas_transport.c _transport_sas_node_find_by_sas...
_transport_phy_enable(9)
NAME _transport_phy_enable - enable/disable phys SYNOPSIS int _transport_phy_enable (struct sas_phy *phy , int enable ); ARGUMENTS phy The sas phy object enable enable phy when true DESCRIPTION Only support sas_host direct attached phys. RETURN 0 for success, non-zero for failure. SEE ALSO Ker...
_transport_phy_reset(9)
NAME _transport_phy_reset - SYNOPSIS int _transport_phy_reset (struct sas_phy *phy , int hard_reset ); ARGUMENTS phy The sas phy object hard_reset RETURN 0 for success, non-zero for failure. SEE ALSO Kernel file ./drivers/scsi/mpt3sas/mpt3sas_transport.c _transport_get_port_id_by_sas_phy(9), _tr...
_transport_phy_speed(9)
NAME _transport_phy_speed - set phy min/max link rates SYNOPSIS int _transport_phy_speed (struct sas_phy *phy , struct sas_phy_linkrates *rates ); ARGUMENTS phy The sas phy object rates rates defined in sas_phy_linkrates DESCRIPTION Only support sas_host direct attached phys. RETURN 0 for succ...
_transport_sanity_check(9)
NAME _transport_sanity_check - sanity check when adding a new port SYNOPSIS void _transport_sanity_check (struct MPT3SAS_ADAPTER *ioc , struct _sas_node *sas_node , u64 sas_address , struct hba_port *port ); ARGUMENTS ioc per adapter object sas_node sas node object (either expander or sas host) ...
_transport_sas_node_find_by_sas_address(9)
NAME _transport_sas_node_find_by_sas_address - sas node search SYNOPSIS struct _sas_node * _transport_sas_node_find_by_sas_address (struct MPT3SAS_ADAPTER *ioc , u64 sas_address , struct hba_port *port ); ARGUMENTS ioc per adapter object sas_address sas address of expander or sas host port ...
_transport_set_identify(9)
NAME _transport_set_identify - set identify for phys and end devices SYNOPSIS int _transport_set_identify (struct MPT3SAS_ADAPTER *ioc , u16 handle , struct sas_identify *identify ); ARGUMENTS ioc per adapter object handle device handle identify sas identify info DESCRIPTION Populates...
_transport_smp_handler(9)
NAME _transport_smp_handler - transport portal for smp passthru SYNOPSIS void _transport_smp_handler (struct bsg_job *job , struct Scsi_Host *shost , struct sas_rphy *rphy ); ARGUMENTS job ? shost shost object rphy sas transport rphy object DESCRIPTION This used primarily for smp...
_update_sysc_cache(9)
NAME _update_sysc_cache - return the module OCP_SYSCONFIG register, keep copy SYNOPSIS int _update_sysc_cache (struct omap_hwmod *oh ); ARGUMENTS oh struct omap_hwmod * DESCRIPTION Load the current value of the hwmod OCP_SYSCONFIG register into the struct omap_hwmod for later use. Returns -EINVAL if the hw...
_usb_addr(9)
NAME _usb_addr - calculates endpoint address from direction & number SYNOPSIS u8 _usb_addr (struct ci_hw_ep *ep ); ARGUMENTS ep endpoint SEE ALSO Kernel file ./drivers/usb/chipidea/udc.c hw_ep_bit(9), hw_device_state(9), hw_ep_flush(9), hw_ep_disable(9), hw_ep_enable(9), hw_ep_get_halt(9), hw_...
_uverbs_alloc(9)
NAME _uverbs_alloc - Quickly allocate memory for use with a bundle SYNOPSIS __malloc void * _uverbs_alloc (struct uverbs_attr_bundle *bundle , size_t size , gfp_t flags ); ARGUMENTS bundle The bundle size Number of bytes to allocate flags Allocator flags DESCRIPTION The bundle alloc...
_vdpa_register_device(9)
NAME _vdpa_register_device - register a vDPA device with vdpa lock held Caller must have a succeed call of vdpa_alloc_device() before. Caller must invoke this routine in the management device dev_add() callback after setting up valid mgmtdev for this vdpa device. SYNOPSIS int _vdpa_register_device (struct vdpa_devic...
_vdpa_unregister_device(9)
NAME _vdpa_unregister_device - unregister a vDPA device Caller must invoke this routine as part of management device dev_del() callback. SYNOPSIS void _vdpa_unregister_device (struct vdpa_device *vdev ); ARGUMENTS vdev the vdpa device to be unregisted from vDPA bus SEE ALSO Kernel file ./drivers/vdpa/vdpa.c...
_wait_idlest_generic(9)
NAME _wait_idlest_generic - wait for a module to leave the idle state SYNOPSIS int _wait_idlest_generic (struct clk_hw_omap *clk , struct clk_omap_reg *reg , u32 mask , u8 idlest , const char *name ); ARGUMENTS clk module clock to wait for (needed for register offsets) reg virtual address of m...
_wait_softreset_complete(9)
NAME _wait_softreset_complete - wait for an OCP softreset to complete SYNOPSIS int _wait_softreset_complete (struct omap_hwmod *oh ); ARGUMENTS oh struct omap_hwmod * to wait on DESCRIPTION Wait until the IP block represented by oh reports that its OCP softreset is complete. This can be triggered by softw...
_warpdrive_disable_ddio(9)
NAME _warpdrive_disable_ddio - Disable direct I/O for all the volumes SYNOPSIS void _warpdrive_disable_ddio (struct MPT3SAS_ADAPTER *ioc ); ARGUMENTS ioc per adapter object SEE ALSO Kernel file ./drivers/scsi/mpt3sas/mpt3sas_warpdrive.c mpt3sas_get_num_volumes(9), mpt3sas_init_warpdrive_properties(9), mpt3sa...
_write_sysconfig(9)
NAME _write_sysconfig - write a value to the module's OCP_SYSCONFIG register SYNOPSIS void _write_sysconfig (u32 v , struct omap_hwmod *oh ); ARGUMENTS v OCP_SYSCONFIG value to write oh struct omap_hwmod * DESCRIPTION Write v into the module class' OCP_SYSCONFIG register, if it has one. N...
_xbc_exit(9)
NAME _xbc_exit - Clean up all parsed bootconfig SYNOPSIS void _xbc_exit (bool early ); ARGUMENTS early Set true if this is called before budy system is initialized. DESCRIPTION This clears all data structures of parsed bootconfig on memory. If you need to reuse xbc_init with new boot config, you can use this....
a2d_ASN1_OBJECT(3)
NAME a2d_ASN1_OBJECT — DER content octets of an ASN.1 object identifier SYNOPSIS library “libcrypto” #include <openssl/asn1.h> int a2d_ASN1_OBJECT(unsigned char *der_out, int olen, const char *val_in, int ilen); DESCRIPTION a2d_ASN1_OBJECT() accepts an ASCII string val_in of ilen bytes and interpret...
a2i_ipadd(3)
NAME a2i_ipadd, a2i_IPADDRESS, a2i_IPADDRESS_NC — parse Internet Protocol addresses into ASN.1 OCTET STRINGs for X.509 SYNOPSIS library “libcrypto” #include <openssl/x509v3.h> int a2i_ipadd(unsigned char *ipout, const char *ipasc); ASN1_OCTET_STRING * a2i_IPADDRESS(const char *ipasc); ...
a2ping(1)
NAME a2ping.pl -- convert between PS, EPS and PDF and other page description formats SYNOPSIS a2ping.pl [--]help a2ping.pl [--]doc a2ping.pl [options] <inputfile> [[outformat:] outputfile] DESCRIPTION a2ping is a UNIX command line utility written in Perl that converts many raster image and vector graph...
a64l(3)
NAME a64l, l64a - convert between long and base-64 LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <stdlib.h> long a64l(const char *str64); char *l64a(long value); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): a64l(), l64a(): _XOPEN_SOURCE >= 50...
a64l(3p)
PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME a64l, l64a — convert between a 32-bit integer and a radix-64 AS...
aa_alloc_profile(9)
NAME aa_alloc_profile - allocate, initialize and return a new profile SYNOPSIS struct aa_profile * aa_alloc_profile (const char *hname , struct aa_proxy *proxy , gfp_t gfp ); ARGUMENTS hname name of the profile (NOT NULL) proxy proxy to use OR null if to allocate a new one gfp all...
aa_alloc_root_ns(9)
NAME aa_alloc_root_ns - allocate the root profile namespace SYNOPSIS int aa_alloc_root_ns (void ); ARGUMENTS void no arguments RETURN 0 on success else error SEE ALSO Kernel file ./security/apparmor/policy_ns.c aa_ns_visible(9), aa_ns_name(9), alloc_ns(9), aa_free_ns(9), __aa_lookupn_ns(9), aa_lookupn_ns(9),...
aa_alloc_secid(9)
NAME aa_alloc_secid - allocate a new secid for a profile SYNOPSIS int aa_alloc_secid (struct aa_label *label , gfp_t gfp ); ARGUMENTS label the label to allocate a secid for gfp memory allocation flags RETURN 0 with label->secid initialized <0 returns error with label->secid set to AA_SECID_INV...
aa_apply_modes_to_perms(9)
NAME aa_apply_modes_to_perms - apply namespace and profile flags to perms SYNOPSIS void aa_apply_modes_to_perms (struct aa_profile *profile , struct aa_perms *perms ); ARGUMENTS profile that perms where computed from perms perms to apply mode modifiers to DESCRIPTION TODO: split into profile and ns...
aa_audit(9)
NAME aa_audit - Log a profile based audit event to the audit subsystem SYNOPSIS int aa_audit (int type , struct aa_profile *profile , struct apparmor_audit_data *ad , void (*cb) (struct audit_buffer *, void *) ); ARGUMENTS type audit type for the message profile profile to check against (NOT NULL) ...
aa_audit_file(9)
NAME aa_audit_file - handle the auditing of file operations SYNOPSIS int aa_audit_file (const struct cred *subj_cred , struct aa_profile *profile , struct aa_perms *perms , const char *op , u32 request , const char *name , const char *target , struct aa_label *tlabel , kuid_t ouid , const char *info , int error ); A...
aa_audit_msg(9)
NAME aa_audit_msg - Log a message to the audit subsystem SYNOPSIS void aa_audit_msg (int type , struct apparmor_audit_data *ad , void (*cb) (struct audit_buffer *, void *) ); ARGUMENTS type audit type for the message ad audit event structure (NOT NULL) cb optional callback fn ...
aa_capable(9)
NAME aa_capable - test permission to use capability SYNOPSIS int aa_capable (const struct cred *subj_cred , struct aa_label *label , int cap , unsigned int opts ); ARGUMENTS subj_cred cred we are testing capability against label label being tested for capability (NOT NULL) cap capabili...
aa_change_hat(9)
NAME aa_change_hat - change hat to/from subprofile SYNOPSIS int aa_change_hat (const char *hats[] , int count , u64 token , int flags ); ARGUMENTS hats vector of hat names to try changing into (MAYBE NULL if count == 0) count number of hat names in hats token magic value to validate...
aa_change_profile(9)
NAME aa_change_profile - perform a one-way profile transition SYNOPSIS int aa_change_profile (const char *fqname , int flags ); ARGUMENTS fqname name of profile may include namespace (NOT NULL) flags flags affecting change behavior DESCRIPTION Change to new profile name. Unlike with hats, there...
aa_check_perms(9)
NAME aa_check_perms - do audit mode selection based on perms set SYNOPSIS int aa_check_perms (struct aa_profile *profile , struct aa_perms *perms , u32 request , struct apparmor_audit_data *ad , void (*cb)(struct audit_buffer *, void *) ); ARGUMENTS profile profile being checked perms perms computed...
aa_clear_task_ctx_trans(9)
NAME aa_clear_task_ctx_trans - clear transition tracking info from the ctx SYNOPSIS void aa_clear_task_ctx_trans (struct aa_task_ctx *ctx ); ARGUMENTS ctx task context to clear (NOT NULL) SEE ALSO Kernel file ./security/apparmor/include/task.h aa_free_task_ctx(9), aa_dup_task_ctx(9) April 2026 ...
aa_create_aafs(9)
NAME aa_create_aafs - create the apparmor security filesystem SYNOPSIS int aa_create_aafs (void ); ARGUMENTS void no arguments DESCRIPTION dentries created here are released by aa_destroy_aafs RETURN error on failure SEE ALSO Kernel file ./security/apparmor/apparmorfs.c mangle_name(9), __aafs_setup_d_inod...
aa_current_raw_label(9)
NAME aa_current_raw_label - find the current tasks confining label SYNOPSIS struct aa_label * aa_current_raw_label (void ); ARGUMENTS void no arguments RETURN up to date confining label or the ns unconfined label (NOT NULL) DESCRIPTION This fn will not update the tasks cred to the most up to date version of ...
aa_destroy_aafs(9)
NAME aa_destroy_aafs - cleanup and free aafs SYNOPSIS void aa_destroy_aafs (void ); ARGUMENTS void no arguments DESCRIPTION releases dentries allocated by aa_create_aafs SEE ALSO Kernel file ./security/apparmor/apparmorfs.c mangle_name(9), __aafs_setup_d_inode(9), aafs_create(9), aafs_create_file(9), aafs_...
aa_destroy_str_table(9)
NAME aa_destroy_str_table - free entries str table SYNOPSIS void aa_destroy_str_table (struct aa_str_table *t ); ARGUMENTS t the string table to free (MAYBE NULL) SEE ALSO Kernel file ./security/apparmor/lib.c val_mask_to_str(9), skipn_spaces(9), aa_info_message(9), aa_perm_mask_to_str(9), aa_apply_modes_...
aa_dfa_free_kref(9)
NAME aa_dfa_free_kref - free aa_dfa by kref (called by aa_put_dfa) SYNOPSIS void aa_dfa_free_kref (struct kref *kref ); ARGUMENTS kref kref callback for freeing of a dfa (NOT NULL) SEE ALSO Kernel file ./security/apparmor/match.c unpack_table(9), verify_table_headers(9), verify_dfa(9), dfa_free(9), ...
aa_dfa_leftmatch(9)
NAME aa_dfa_leftmatch - traverse @dfa to find state @str stops at SYNOPSIS aa_state_t aa_dfa_leftmatch (struct aa_dfa *dfa , aa_state_t start , const char *str , unsigned int *count ); ARGUMENTS dfa the dfa to match str against (NOT NULL) start the state of the dfa to start matching in ...
aa_dfa_match(9)
NAME aa_dfa_match - traverse @dfa to find state @str stops at SYNOPSIS aa_state_t aa_dfa_match (struct aa_dfa *dfa , aa_state_t start , const char *str ); ARGUMENTS dfa the dfa to match str against (NOT NULL) start the state of the dfa to start matching in str the null terminate...
aa_dfa_match_len(9)
NAME aa_dfa_match_len - traverse @dfa to find state @str stops at SYNOPSIS aa_state_t aa_dfa_match_len (struct aa_dfa *dfa , aa_state_t start , const char *str , int len ); ARGUMENTS dfa the dfa to match str against (NOT NULL) start the state of the dfa to start matching in str ...
aa_dfa_match_until(9)
NAME aa_dfa_match_until - traverse @dfa until accept state or end of input SYNOPSIS aa_state_t aa_dfa_match_until (struct aa_dfa *dfa , aa_state_t start , const char *str , const char **retpos ); ARGUMENTS dfa the dfa to match str against (NOT NULL) start the state of the dfa to start matching ...
aa_dfa_matchn_until(9)
NAME aa_dfa_matchn_until - traverse @dfa until accept or @n bytes consumed SYNOPSIS aa_state_t aa_dfa_matchn_until (struct aa_dfa *dfa , aa_state_t start , const char *str , int n , const char **retpos ); ARGUMENTS dfa the dfa to match str against (NOT NULL) start the state of the dfa to start ...
aa_dfa_next(9)
NAME aa_dfa_next - step one character to the next state in the dfa SYNOPSIS aa_state_t aa_dfa_next (struct aa_dfa *dfa , aa_state_t state , const char c ); ARGUMENTS dfa the dfa to traverse (NOT NULL) state the state to start in c the input character to transition on DESCRIPTI...
aa_dfa_null_transition(9)
NAME aa_dfa_null_transition - step to next state after null character SYNOPSIS aa_state_t aa_dfa_null_transition (struct aa_dfa *dfa , aa_state_t start ); ARGUMENTS dfa the dfa to match against start the state of the dfa to start matching in DESCRIPTION aa_dfa_null_transition transitions to the...
aa_dfa_unpack(9)
NAME aa_dfa_unpack - unpack the binary tables of a serialized dfa SYNOPSIS struct aa_dfa * aa_dfa_unpack (void *blob , size_t size , int flags ); ARGUMENTS blob aligned serialized stream of data to unpack (NOT NULL) size size of data to unpack flags flags controlling what type of ...
aa_dup_task_ctx(9)
NAME aa_dup_task_ctx - duplicate a task context, incrementing reference counts SYNOPSIS void aa_dup_task_ctx (struct aa_task_ctx *new , const struct aa_task_ctx *old ); ARGUMENTS new a blank task context (NOT NULL) old the task context to copy (NOT NULL) SEE ALSO Kernel file ./security/...
aa_file_perm(9)
NAME aa_file_perm - do permission revalidation check & audit for @file SYNOPSIS int aa_file_perm (const char *op , const struct cred *subj_cred , struct aa_label *label , struct file *file , u32 request , bool in_atomic ); ARGUMENTS op operation being checked subj_cred subject cred label ...
aa_find_child(9)
NAME aa_find_child - find a profile by @name in @parent SYNOPSIS struct aa_profile * aa_find_child (struct aa_profile *parent , const char *name ); ARGUMENTS parent profile to search (NOT NULL) name profile name to search for (NOT NULL) RETURN a refcounted profile or NULL if not found SEE ALSO...
aa_free_data(9)
NAME aa_free_data - free a data blob SYNOPSIS void aa_free_data (void *ptr , void *arg ); ARGUMENTS ptr data to free arg unused SEE ALSO Kernel file ./security/apparmor/policy.c aa_pdb_free_kref(9), __add_profile(9), __list_remove_profile(9), __remove_profile(9), __aa_profile_list_release(9...
aa_free_ns(9)
NAME aa_free_ns - free a profile namespace SYNOPSIS void aa_free_ns (struct aa_ns *ns ); ARGUMENTS ns the namespace to free (MAYBE NULL) DESCRIPTION Requires: All references to the namespace must have been put, if the namespace was referenced by a profile confining a task, SEE ALSO Kernel file ./security...
aa_free_profile(9)
NAME aa_free_profile - free a profile SYNOPSIS void aa_free_profile (struct aa_profile *profile ); ARGUMENTS profile the profile to free (MAYBE NULL) DESCRIPTION Free a profile, its hats and null_profile. All references to the profile, its hats and null_profile must have been put. If the profile was reference...
aa_free_secid(9)
NAME aa_free_secid - free a secid SYNOPSIS void aa_free_secid (u32 secid ); ARGUMENTS secid secid to free SEE ALSO Kernel file ./security/apparmor/secid.c aa_alloc_secid(9) April 2026 aa_free_secid ...
aa_free_task_ctx(9)
NAME aa_free_task_ctx - free a task_ctx SYNOPSIS void aa_free_task_ctx (struct aa_task_ctx *ctx ); ARGUMENTS ctx task_ctx to free (MAYBE NULL) SEE ALSO Kernel file ./security/apparmor/include/task.h aa_dup_task_ctx(9), aa_clear_task_ctx_trans(9) April 2026 ...
aa_get_current_label(9)
NAME aa_get_current_label - get the newest version of the current tasks label SYNOPSIS struct aa_label * aa_get_current_label (void ); ARGUMENTS void no arguments RETURN newest version of confining label (NOT NULL) DESCRIPTION This fn will not update the tasks cred, so it is safe inside of locks The returned...
aa_get_dfa(9)
NAME aa_get_dfa - increment refcount on dfa @p SYNOPSIS struct aa_dfa * aa_get_dfa (struct aa_dfa *dfa ); ARGUMENTS dfa dfa (MAYBE NULL) RETURN pointer to dfa if dfa is NULL will return NULL Requires: dfa must be held with valid refcount when called SEE ALSO Kernel file ./security/apparmor/include/match.h ...
aa_get_label_rcu(9)
NAME aa_get_label_rcu - increment refcount on a label that can be replaced SYNOPSIS struct aa_label * aa_get_label_rcu (struct aa_label __rcu **l ); ARGUMENTS l pointer to label that can be replaced (NOT NULL) RETURN pointer to a refcounted label. else NULL if no label SEE ALSO Kernel file ./security/app...
aa_get_newest_cred_label(9)
NAME aa_get_newest_cred_label - obtain the newest label on a cred SYNOPSIS struct aa_label * aa_get_newest_cred_label (const struct cred *cred ); ARGUMENTS cred cred to obtain label from (NOT NULL) RETURN newest version of confining label SEE ALSO Kernel file ./security/apparmor/include/cred.h aa_current_r...
aa_get_newest_label(9)
NAME aa_get_newest_label - find the newest version of @l SYNOPSIS struct aa_label * aa_get_newest_label (struct aa_label *l ); ARGUMENTS l the label to check for newer versions of RETURN refcounted newest version of l taking into account replacement, renames and removals return l. SEE ALSO Kernel file ./s...
aa_get_newest_profile(9)
NAME aa_get_newest_profile - simple wrapper fn to wrap the label version SYNOPSIS struct aa_profile * aa_get_newest_profile (struct aa_profile *p ); ARGUMENTS p profile (NOT NULL) DESCRIPTION Returns refcount to newest version of the profile (maybe p) Requires: p must be held with a valid refcount SEE ALS...
aa_get_ns(9)
NAME aa_get_ns - increment references count on @ns SYNOPSIS struct aa_ns * aa_get_ns (struct aa_ns *ns ); ARGUMENTS ns namespace to increment reference count of (MAYBE NULL) RETURN pointer to ns, if ns is NULL returns NULL Requires: ns must be held with valid refcount when called SEE ALSO Kernel file ./sec...
aa_get_pdb(9)
NAME aa_get_pdb - increment refcount on @pdb SYNOPSIS struct aa_policydb * aa_get_pdb (struct aa_policydb *pdb ); ARGUMENTS pdb policydb (MAYBE NULL) RETURN pointer to pdb if pdb is NULL will return NULL Requires: pdb must be held with valid refcount when called SEE ALSO Kernel file ./security/apparmor/inc...
aa_get_profile(9)
NAME aa_get_profile - increment refcount on profile @p SYNOPSIS struct aa_profile * aa_get_profile (struct aa_profile *p ); ARGUMENTS p profile (MAYBE NULL) RETURN pointer to p if p is NULL will return NULL Requires: p must be held with valid refcount when called SEE ALSO Kernel file ./security/apparmor/...
aa_get_profile_loaddata(9)
NAME aa_get_profile_loaddata - get a profile reference count on loaddata SYNOPSIS struct aa_loaddata * aa_get_profile_loaddata (struct aa_loaddata *data ); ARGUMENTS data reference to get a count on RETURN pointer to reference Requires: data to have a valid reference count on it. SEE ALSO Kernel file ./secur...
aa_get_profile_not0(9)
NAME aa_get_profile_not0 - increment refcount on profile @p found via lookup SYNOPSIS struct aa_profile * aa_get_profile_not0 (struct aa_profile *p ); ARGUMENTS p profile (MAYBE NULL) RETURN pointer to p if p is NULL will return NULL Requires: p must be held with valid refcount when called SEE ALSO Kerne...
aa_get_profile_rcu(9)
NAME aa_get_profile_rcu - increment a refcount profile that can be replaced SYNOPSIS struct aa_profile * aa_get_profile_rcu (struct aa_profile __rcu **p ); ARGUMENTS p pointer to profile that can be replaced (NOT NULL) RETURN pointer to a refcounted profile. else NULL if no profile SEE ALSO Kernel file ....
aa_get_task_label(9)
NAME aa_get_task_label - Get another task's label SYNOPSIS struct aa_label * aa_get_task_label (struct task_struct *task ); ARGUMENTS task task to query (NOT NULL) RETURN counted reference to task's label SEE ALSO Kernel file ./security/apparmor/task.c aa_replace_current_label(9), aa_set_current_onexec(9), ...
aa_getprocattr(9)
NAME aa_getprocattr - Return the label information for @label SYNOPSIS int aa_getprocattr (struct aa_label *label , char **string , bool newline ); ARGUMENTS label the label to print label info about (NOT NULL) string Returns - string containing the label info (NOT NULL) newline indica...
aa_info_message(9)
NAME aa_info_message - log a none profile related status message SYNOPSIS void aa_info_message (const char *str ); ARGUMENTS str message to log SEE ALSO Kernel file ./security/apparmor/lib.c val_mask_to_str(9), aa_destroy_str_table(9), skipn_spaces(9), aa_perm_mask_to_str(9), aa_apply_modes_to_perms(9), aa_c...
aa_label_acntsxprint(9)
NAME aa_label_acntsxprint - allocate a __counted string buffer and print label SYNOPSIS int aa_label_acntsxprint (char __counted **strp , struct aa_ns *ns , struct aa_label *label , int flags , gfp_t gfp ); ARGUMENTS strp buffer to write to. ns namespace profile is being viewed from la...
aa_label_alloc(9)
NAME aa_label_alloc - allocate a label with a profile vector of @size length SYNOPSIS struct aa_label * aa_label_alloc (int size , struct aa_proxy *proxy , gfp_t gfp ); ARGUMENTS size size of profile vector in the label proxy proxy to use OR null if to allocate a new one gfp memor...
aa_label_asxprint(9)
NAME aa_label_asxprint - allocate a string buffer and print label into it SYNOPSIS int aa_label_asxprint (char **strp , struct aa_ns *ns , struct aa_label *label , int flags , gfp_t gfp ); ARGUMENTS strp Returns - the allocated buffer with the label name. (NOT NULL) ns namespace profile is bei...
aa_label_find_merge(9)
NAME aa_label_find_merge - find label that is equiv to merge of @a and @b SYNOPSIS struct aa_label * aa_label_find_merge (struct aa_label *a , struct aa_label *b ); ARGUMENTS a label to merge with b (NOT NULL) b label to merge with a (NOT NULL) DESCRIPTION Requires: labels be fully cons...
aa_label_insert(9)
NAME aa_label_insert - insert label @label into @ls or return existing label SYNOPSIS struct aa_label * aa_label_insert (struct aa_labelset *ls , struct aa_label *label ); ARGUMENTS ls labelset to insert label into label label to insert DESCRIPTION Requires: caller to hold a valid ref on label...
aa_label_is_subset(9)
NAME aa_label_is_subset - test if @sub is a subset of @set SYNOPSIS bool aa_label_is_subset (struct aa_label *set , struct aa_label *sub ); ARGUMENTS set label to test against sub label to test if is subset of set RETURN true if sub is subset of set else false SEE ALSO Kernel file ./securi...
aa_label_is_unconfined_subset(9)
NAME aa_label_is_unconfined_subset - test if @sub is a subset of @set SYNOPSIS bool aa_label_is_unconfined_subset (struct aa_label *set , struct aa_label *sub ); ARGUMENTS set label to test against sub label to test if is subset of set DESCRIPTION This checks for subset but taking into acco...
aa_label_match(9)
NAME aa_label_match - do a multi-component label match SYNOPSIS int aa_label_match (struct aa_profile *profile , struct aa_ruleset *rules , struct aa_label *label , aa_state_t state , bool inview , u32 request , struct aa_perms *perms ); ARGUMENTS profile profile to match against (NOT NULL) rules ru...
aa_label_merge(9)
NAME aa_label_merge - attempt to insert new merged label of @a and @b SYNOPSIS struct aa_label * aa_label_merge (struct aa_label *a , struct aa_label *b , gfp_t gfp ); ARGUMENTS a label to merge with b (NOT NULL) b label to merge with a (NOT NULL) gfp memory allocation ty...
aa_label_next_in_merge(9)
NAME aa_label_next_in_merge - find the next profile when merging @a and @b SYNOPSIS struct aa_profile * aa_label_next_in_merge (struct label_it *I , struct aa_label *a , struct aa_label *b ); ARGUMENTS I label iterator a label to merge b label to merge RETURN next profil...
aa_label_remove(9)
NAME aa_label_remove - remove a label from the labelset SYNOPSIS bool aa_label_remove (struct aa_label *label ); ARGUMENTS label label to remove RETURN true if label was removed from the tree else label was not in tree so it could not be removed SEE ALSO Kernel file ./security/apparmor/label.c ns_cmp(9), ...
aa_label_replace(9)
NAME aa_label_replace - replace a label @old with a new version @new SYNOPSIS bool aa_label_replace (struct aa_label *old , struct aa_label *new ); ARGUMENTS old label to replace new label replacing old RETURN true if old was in tree and replaced else old was not in tree, and new was not inse...
aa_label_snxprint(9)
NAME aa_label_snxprint - print a label name to a string buffer SYNOPSIS int aa_label_snxprint (char *str , size_t size , struct aa_ns *ns , struct aa_label *label , int flags ); ARGUMENTS str buffer to write to. (MAY BE NULL if size == 0) size size of buffer ns namespace profil...
aa_label_strn_parse(9)
NAME aa_label_strn_parse - parse, validate and convert a text string to a label SYNOPSIS struct aa_label * aa_label_strn_parse (struct aa_label *base , const char *str , size_t n , gfp_t gfp , bool create , bool force_stack ); ARGUMENTS base base label to use for lookups (NOT NULL) str null ter...
aa_labelset_destroy(9)
NAME aa_labelset_destroy - remove all labels from the label set SYNOPSIS void aa_labelset_destroy (struct aa_labelset *ls ); ARGUMENTS ls label set to cleanup (NOT NULL) DESCRIPTION Labels that are removed from the set may still exist beyond the set being destroyed depending on their reference counting SEE...
aa_lookup_condperms(9)
NAME aa_lookup_condperms - convert dfa compressed perms to internal perms SYNOPSIS struct aa_perms * aa_lookup_condperms (kuid_t subj_uid , struct aa_policydb *rules , aa_state_t state , struct path_cond *cond ); ARGUMENTS subj_uid uid to use for subject owner test rules the aa_policydb to lookup per...
aa_lookupn_ns(9)
NAME aa_lookupn_ns - look up a policy namespace relative to @view SYNOPSIS struct aa_ns * aa_lookupn_ns (struct aa_ns *view , const char *name , size_t n ); ARGUMENTS view namespace to search in (NOT NULL) name name of namespace to find (NOT NULL) n length of name RETURN a r...
aa_lookupn_profile(9)
NAME aa_lookupn_profile - find a profile by its full or partial name SYNOPSIS struct aa_profile * aa_lookupn_profile (struct aa_ns *ns , const char *hname , size_t n ); ARGUMENTS ns the namespace to start from (NOT NULL) hname name to do lookup on. Does not contain namespace prefix (NOT NULL) ...
aa_map_file_to_perms(9)
NAME aa_map_file_to_perms - map file flags to AppArmor permissions SYNOPSIS u32 aa_map_file_to_perms (struct file *file ); ARGUMENTS file open file to map flags to AppArmor permissions RETURN apparmor permission set for the file SEE ALSO Kernel file ./security/apparmor/include/file.h April 2026 ...
aa_map_resource(9)
NAME aa_map_resource - map compiled policy resource to internal # SYNOPSIS int aa_map_resource (int resource ); ARGUMENTS resource flattened policy resource number RETURN resource # for the current architecture. DESCRIPTION rlimit resource can vary based on architecture, map the compiled policy resource # to the...
aa_match_to_prot(9)
NAME aa_match_to_prot - match the af, type, protocol triplet SYNOPSIS aa_state_t aa_match_to_prot (struct aa_policydb *policy , aa_state_t state , u32 request , u16 af , int type , int protocol , struct aa_perms **p , const char **info ); ARGUMENTS policy policy being matched state state to start i...