id
stringlengths
4
63
text
stringlengths
153
8.81M
tomoyo_check_unix_acl(9)
NAME tomoyo_check_unix_acl - Check permission for unix domain socket operation. SYNOPSIS bool tomoyo_check_unix_acl (struct tomoyo_request_info *r , const struct tomoyo_acl_info *ptr ); ARGUMENTS r Pointer to "struct tomoyo_request_info". ptr Pointer to "struct tomoyo_acl_info". DESCRIPTION...
tomoyo_check_unix_address(9)
NAME tomoyo_check_unix_address - Check permission for unix domain socket's operation. SYNOPSIS int tomoyo_check_unix_address (struct sockaddr *addr , const unsigned int addr_len , struct tomoyo_addr_info *address ); ARGUMENTS addr Pointer to "struct sockaddr". addr_len Size of addr. address ...
tomoyo_close_control(9)
NAME tomoyo_close_control - close() for /sys/kernel/security/tomoyo/ interface. SYNOPSIS void tomoyo_close_control (struct tomoyo_io_buffer *head ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". SEE ALSO Kernel file ./security/tomoyo/common.c tomoyo_addprintf(9), tomoyo_flush(9), tomoyo_set_string...
tomoyo_collect_acl(9)
NAME tomoyo_collect_acl - Delete elements in "struct tomoyo_domain_info". SYNOPSIS void tomoyo_collect_acl (struct list_head *list ); ARGUMENTS list Pointer to "struct list_head". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_memory_free(9), tomoyo_struct_used_by_io_buff...
tomoyo_collect_entry(9)
NAME tomoyo_collect_entry - Try to kfree() deleted elements. SYNOPSIS void tomoyo_collect_entry (void ); ARGUMENTS void no arguments DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_memory_free(9), tomoyo_struct_used_by_io_buffer(9), tomoyo_name_used_by_io_buffer(9), tomo...
tomoyo_collect_member(9)
NAME tomoyo_collect_member - Delete elements with "struct tomoyo_acl_head". SYNOPSIS void tomoyo_collect_member (const enum tomoyo_policy_id id , struct list_head *member_list ); ARGUMENTS id One of values in "enum tomoyo_policy_id". member_list Pointer to "struct list_head". DESCRIPTION Returns not...
tomoyo_commit_condition(9)
NAME tomoyo_commit_condition - Commit "struct tomoyo_condition". SYNOPSIS struct tomoyo_condition * tomoyo_commit_condition (struct tomoyo_condition *entry ); ARGUMENTS entry Pointer to "struct tomoyo_condition". DESCRIPTION Returns pointer to "struct tomoyo_condition" on success, NULL otherwise. This functio...
tomoyo_commit_ok(9)
NAME tomoyo_commit_ok - Check memory quota. SYNOPSIS void * tomoyo_commit_ok (void *data , const unsigned int size ); ARGUMENTS data Data to copy from. size Size in byte. DESCRIPTION Returns pointer to allocated memory on success, NULL otherwise. data is zero-cleared on success. Caller holds ...
tomoyo_compare_name_union(9)
NAME tomoyo_compare_name_union - Check whether a name matches "struct tomoyo_name_union" or not. SYNOPSIS const struct tomoyo_path_info * tomoyo_compare_name_union (const struct tomoyo_path_info *name , const struct tomoyo_name_union *ptr ); ARGUMENTS name Pointer to "struct tomoyo_path_info". ptr ...
tomoyo_compare_number_union(9)
NAME tomoyo_compare_number_union - Check whether a value matches "struct tomoyo_number_union" or not. SYNOPSIS bool tomoyo_compare_number_union (const unsigned long value , const struct tomoyo_number_union *ptr ); ARGUMENTS value Number to check. ptr Pointer to "struct tomoyo_number_union". DES...
tomoyo_condition(9)
NAME tomoyo_condition - Check condition part. SYNOPSIS bool tomoyo_condition (struct tomoyo_request_info *r , const struct tomoyo_condition *cond ); ARGUMENTS r Pointer to "struct tomoyo_request_info". cond Pointer to "struct tomoyo_condition". Maybe NULL. DESCRIPTION Returns true on success...
tomoyo_condition_type(9)
NAME tomoyo_condition_type - Get condition type. SYNOPSIS u8 tomoyo_condition_type (const char *word ); ARGUMENTS word Keyword string. DESCRIPTION Returns one of values in "enum tomoyo_conditions_index" on success, TOMOYO_MAX_CONDITION_KEYWORD otherwise. SEE ALSO Kernel file ./security/tomoyo/condition.c...
tomoyo_const_part_length(9)
NAME tomoyo_const_part_length - Evaluate the initial length without a pattern in a token. SYNOPSIS int tomoyo_const_part_length (const char *filename ); ARGUMENTS filename The string to evaluate. DESCRIPTION Returns the initial length without a pattern in filename. SEE ALSO Kernel file ./security/tomoyo/util.c...
tomoyo_convert_time(9)
NAME tomoyo_convert_time - Convert time_t to YYYY/MM/DD hh/mm/ss. SYNOPSIS void tomoyo_convert_time (time64_t time64 , struct tomoyo_time *stamp ); ARGUMENTS time64 Seconds since 1970/01/01 00:00:00. stamp Pointer to "struct tomoyo_time". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./secu...
tomoyo_correct_domain(9)
NAME tomoyo_correct_domain - Check whether the given domainname follows the naming rules. SYNOPSIS bool tomoyo_correct_domain (const unsigned char *domainname ); ARGUMENTS domainname The domainname to check. DESCRIPTION Returns true if domainname follows the naming rules, false otherwise. SEE ALSO Kernel file ./...
tomoyo_correct_path(9)
NAME tomoyo_correct_path - Validate a pathname. SYNOPSIS bool tomoyo_correct_path (const char *filename ); ARGUMENTS filename The pathname to check. DESCRIPTION Check whether the given pathname follows the naming rules. Returns true if filename follows the naming rules, false otherwise. SEE ALSO Kernel file ....
tomoyo_correct_path2(9)
NAME tomoyo_correct_path2 - Check whether the given pathname follows the naming rules. SYNOPSIS bool tomoyo_correct_path2 (const char *filename , const size_t len ); ARGUMENTS filename The pathname to check. len Length of filename. DESCRIPTION Returns true if filename follows the naming rules, fal...
tomoyo_correct_word(9)
NAME tomoyo_correct_word - Validate a string. SYNOPSIS bool tomoyo_correct_word (const char *string ); ARGUMENTS string The string to check. DESCRIPTION Check whether the given string follows the naming rules. Returns true if string follows the naming rules, false otherwise. SEE ALSO Kernel file ./security/...
tomoyo_correct_word2(9)
NAME tomoyo_correct_word2 - Validate a string. SYNOPSIS bool tomoyo_correct_word2 (const char *string , size_t len ); ARGUMENTS string The string to check. Maybe non-' '-terminated. len Length of string. DESCRIPTION Check whether the given string follows the naming rules. Returns true if string...
tomoyo_create_entry(9)
NAME tomoyo_create_entry - Create interface files under /sys/kernel/security/tomoyo/ directory. SYNOPSIS void tomoyo_create_entry (const char *name , const umode_t mode , struct dentry *parent , const u8 key ); ARGUMENTS name The name of the interface file. mode The permission of the interface f...
tomoyo_cred_prepare(9)
NAME tomoyo_cred_prepare - Target for security_prepare_creds(). SYNOPSIS int tomoyo_cred_prepare (struct cred *new , const struct cred *old , gfp_t gfp ); ARGUMENTS new Pointer to "struct cred". old Pointer to "struct cred". gfp Memory allocation flags. DESCRIPTION Returns 0. ...
tomoyo_current_namespace(9)
NAME tomoyo_current_namespace - Get "struct tomoyo_policy_namespace" for current thread. SYNOPSIS struct tomoyo_policy_namespace * tomoyo_current_namespace (void ); ARGUMENTS void no arguments DESCRIPTION Returns pointer to "struct tomoyo_policy_namespace" for current thread. SEE ALSO Kernel file ./securit...
tomoyo_del_acl(9)
NAME tomoyo_del_acl - Delete members in "struct tomoyo_acl_info". SYNOPSIS void tomoyo_del_acl (struct list_head *element ); ARGUMENTS element Pointer to "struct list_head". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_memory_free(9), tomoyo_struct_used_by_io_buffer(9), t...
tomoyo_del_address_group(9)
NAME tomoyo_del_address_group - Delete members in "struct tomoyo_address_group". SYNOPSIS void tomoyo_del_address_group (struct list_head *element ); ARGUMENTS element Pointer to "struct list_head". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_memory_free(9), tomoyo_struct...
tomoyo_del_aggregator(9)
NAME tomoyo_del_aggregator - Delete members in "struct tomoyo_aggregator". SYNOPSIS void tomoyo_del_aggregator (struct list_head *element ); ARGUMENTS element Pointer to "struct list_head". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_memory_free(9), tomoyo_struct_used_by_i...
tomoyo_del_condition(9)
NAME tomoyo_del_condition - Delete members in "struct tomoyo_condition". SYNOPSIS void tomoyo_del_condition (struct list_head *element ); ARGUMENTS element Pointer to "struct list_head". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_memory_free(9), tomoyo_struct_used_by_io_b...
tomoyo_del_domain(9)
NAME tomoyo_del_domain - Delete members in "struct tomoyo_domain_info". SYNOPSIS void tomoyo_del_domain (struct list_head *element ); ARGUMENTS element Pointer to "struct list_head". DESCRIPTION Returns nothing. Caller holds tomoyo_policy_lock mutex. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_memory...
tomoyo_del_group(9)
NAME tomoyo_del_group - Delete "struct tomoyo_group". SYNOPSIS void tomoyo_del_group (struct list_head *element ); ARGUMENTS element Pointer to "struct list_head". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_memory_free(9), tomoyo_struct_used_by_io_buffer(9), tomoyo_name...
tomoyo_del_manager(9)
NAME tomoyo_del_manager - Delete members in "struct tomoyo_manager". SYNOPSIS void tomoyo_del_manager (struct list_head *element ); ARGUMENTS element Pointer to "struct list_head". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_memory_free(9), tomoyo_struct_used_by_io_buffer(9),...
tomoyo_del_name(9)
NAME tomoyo_del_name - Delete members in "struct tomoyo_name". SYNOPSIS void tomoyo_del_name (struct list_head *element ); ARGUMENTS element Pointer to "struct list_head". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_memory_free(9), tomoyo_struct_used_by_io_buffer(9), tomoy...
tomoyo_del_number_group(9)
NAME tomoyo_del_number_group - Delete members in "struct tomoyo_number_group". SYNOPSIS void tomoyo_del_number_group (struct list_head *element ); ARGUMENTS element Pointer to "struct list_head". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_memory_free(9), tomoyo_struct_us...
tomoyo_del_path_group(9)
NAME tomoyo_del_path_group - Delete members in "struct tomoyo_path_group". SYNOPSIS void tomoyo_del_path_group (struct list_head *element ); ARGUMENTS element Pointer to "struct list_head". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_memory_free(9), tomoyo_struct_used_by_...
tomoyo_del_transition_control(9)
NAME tomoyo_del_transition_control - Delete members in "struct tomoyo_transition_control". SYNOPSIS void tomoyo_del_transition_control (struct list_head *element ); ARGUMENTS element Pointer to "struct list_head". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_memory_free(9), to...
tomoyo_delete_domain(9)
NAME tomoyo_delete_domain - Delete a domain. SYNOPSIS int tomoyo_delete_domain (char *domainname ); ARGUMENTS domainname The name of domain. DESCRIPTION Returns 0 on success, negative value otherwise. Caller holds tomoyo_read_lock. SEE ALSO Kernel file ./security/tomoyo/common.c tomoyo_addprintf(9), tomoyo_fl...
tomoyo_domain(9)
NAME tomoyo_domain - Get "struct tomoyo_domain_info" for current thread. SYNOPSIS struct tomoyo_domain_info * tomoyo_domain (void ); ARGUMENTS void no arguments DESCRIPTION Returns pointer to "struct tomoyo_domain_info" for current thread. SEE ALSO Kernel file ./security/tomoyo/tomoyo.c tomoyo_cred_prep...
tomoyo_domain_def(9)
NAME tomoyo_domain_def - Check whether the given token can be a domainname. SYNOPSIS bool tomoyo_domain_def (const unsigned char *buffer ); ARGUMENTS buffer The token to check. DESCRIPTION Returns true if buffer possibly be a domainname, false otherwise. SEE ALSO Kernel file ./security/tomoyo/util.c tomoyo_c...
tomoyo_domain_quota_is_ok(9)
NAME tomoyo_domain_quota_is_ok - Check for domain's quota. SYNOPSIS bool tomoyo_domain_quota_is_ok (struct tomoyo_request_info *r ); ARGUMENTS r Pointer to "struct tomoyo_request_info". DESCRIPTION Returns true if the domain is not exceeded quota, false otherwise. Caller holds tomoyo_read_lock. SEE ALSO ...
tomoyo_dump_page(9)
NAME tomoyo_dump_page - Dump a page to buffer. SYNOPSIS bool tomoyo_dump_page (struct linux_binprm *bprm , unsigned long pos , struct tomoyo_page_dump *dump ); ARGUMENTS bprm Pointer to "struct linux_binprm". pos Location to dump. dump Pointer to "struct tomoyo_page_dump". DESCR...
tomoyo_encode(9)
NAME tomoyo_encode - Encode binary string to ascii string. SYNOPSIS char * tomoyo_encode (const char *str ); ARGUMENTS str String in binary format. DESCRIPTION Returns pointer to str in ascii format on success, NULL otherwise. This function uses kzalloc, so caller must kfree if this function didn't return N...
tomoyo_encode2(9)
NAME tomoyo_encode2 - Encode binary string to ascii string. SYNOPSIS char * tomoyo_encode2 (const char *str , int str_len ); ARGUMENTS str String in binary format. str_len Size of str in byte. DESCRIPTION Returns pointer to str in ascii format on success, NULL otherwise. This function uses kzall...
tomoyo_env_perm(9)
NAME tomoyo_env_perm - Check permission for environment variable's name. SYNOPSIS int tomoyo_env_perm (struct tomoyo_request_info *r , const char *env ); ARGUMENTS r Pointer to "struct tomoyo_request_info". env The name of environment variable. DESCRIPTION Returns 0 on success, negative val...
tomoyo_environ(9)
NAME tomoyo_environ - Check permission for environment variable names. SYNOPSIS int tomoyo_environ (struct tomoyo_execve *ee ); ARGUMENTS ee Pointer to "struct tomoyo_execve". DESCRIPTION Returns 0 on success, negative value otherwise. SEE ALSO Kernel file ./security/tomoyo/domain.c tomoyo_update_policy...
tomoyo_envp(9)
NAME tomoyo_envp - Check envp[] in "struct linux_binbrm". SYNOPSIS bool tomoyo_envp (const char *env_name , const char *env_value , const int envc , const struct tomoyo_envp *envp , u8 *checked ); ARGUMENTS env_name The name of environment variable. env_value The value of environment variable. en...
tomoyo_execute_permission(9)
NAME tomoyo_execute_permission - Check permission for execute operation. SYNOPSIS int tomoyo_execute_permission (struct tomoyo_request_info *r , const struct tomoyo_path_info *filename ); ARGUMENTS r Pointer to "struct tomoyo_request_info". filename Filename to check. DESCRIPTION Returns 0 on su...
tomoyo_file_fcntl(9)
NAME tomoyo_file_fcntl - Target for security_file_fcntl(). SYNOPSIS int tomoyo_file_fcntl (struct file *file , unsigned int cmd , unsigned long arg ); ARGUMENTS file Pointer to "struct file". cmd Command for fcntl. arg Argument for cmd. DESCRIPTION Returns 0 on success, negativ...
tomoyo_file_ioctl(9)
NAME tomoyo_file_ioctl - Target for security_file_ioctl(). SYNOPSIS int tomoyo_file_ioctl (struct file *file , unsigned int cmd , unsigned long arg ); ARGUMENTS file Pointer to "struct file". cmd Command for ioctl. arg Argument for cmd. DESCRIPTION Returns 0 on success, negativ...
tomoyo_file_matches_pattern(9)
NAME tomoyo_file_matches_pattern - Pattern matching without '/' character. SYNOPSIS bool tomoyo_file_matches_pattern (const char *filename , const char *filename_end , const char *pattern , const char *pattern_end ); ARGUMENTS filename The start of string to check. filename_end The end o...
tomoyo_file_matches_pattern2(9)
NAME tomoyo_file_matches_pattern2 - Pattern matching without '/' character and "-" pattern. SYNOPSIS bool tomoyo_file_matches_pattern2 (const char *filename , const char *filename_end , const char *pattern , const char *pattern_end ); ARGUMENTS filename The start of string to check. filename_end ...
tomoyo_file_open(9)
NAME tomoyo_file_open - Target for security_file_open(). SYNOPSIS int tomoyo_file_open (struct file *f ); ARGUMENTS f Pointer to "struct file". DESCRIPTION Returns 0 on success, negative value otherwise. SEE ALSO Kernel file ./security/tomoyo/tomoyo.c tomoyo_domain(9), tomoyo_cred_prepare(9), tomoyo_b...
tomoyo_file_truncate(9)
NAME tomoyo_file_truncate - Target for security_file_truncate(). SYNOPSIS int tomoyo_file_truncate (struct file *file ); ARGUMENTS file Pointer to "struct file". DESCRIPTION Returns 0 on success, negative value otherwise. SEE ALSO Kernel file ./security/tomoyo/tomoyo.c tomoyo_domain(9), tomoyo_cred_prepa...
tomoyo_filetype(9)
NAME tomoyo_filetype - Get string representation of file type. SYNOPSIS const char * tomoyo_filetype (const umode_t mode ); ARGUMENTS mode Mode value for stat. DESCRIPTION Returns file type string. SEE ALSO Kernel file ./security/tomoyo/audit.c tomoyo_print_bprm(9), tomoyo_print_header(9), tomoyo_init_log(9)...
tomoyo_fill_path_info(9)
NAME tomoyo_fill_path_info - Fill in "struct tomoyo_path_info" members. SYNOPSIS void tomoyo_fill_path_info (struct tomoyo_path_info *ptr ); ARGUMENTS ptr Pointer to "struct tomoyo_path_info" to fill in. DESCRIPTION The caller sets "struct tomoyo_path_info"->name. SEE ALSO Kernel file ./security/tomoyo/ut...
tomoyo_find_domain(9)
NAME tomoyo_find_domain - Find a domain by the given name. SYNOPSIS struct tomoyo_domain_info * tomoyo_find_domain (const char *domainname ); ARGUMENTS domainname The domainname to find. DESCRIPTION Returns pointer to "struct tomoyo_domain_info" if found, NULL otherwise. Caller holds tomoyo_read_lock. SEE ALSO Ke...
tomoyo_find_domain_by_qid(9)
NAME tomoyo_find_domain_by_qid - Get domain by query id. SYNOPSIS struct tomoyo_domain_info * tomoyo_find_domain_by_qid (unsigned int serial ); ARGUMENTS serial Query ID assigned by tomoyo_supervisor. DESCRIPTION Returns pointer to "struct tomoyo_domain_info" if found, NULL otherwise. SEE ALSO Kernel file ./...
tomoyo_find_namespace(9)
NAME tomoyo_find_namespace - Find specified namespace. SYNOPSIS struct tomoyo_policy_namespace * tomoyo_find_namespace (const char *name , const unsigned int len ); ARGUMENTS name Name of namespace to find. len Length of name. DESCRIPTION Returns pointer to "struct tomoyo_policy_namespace" if ...
tomoyo_find_next_domain(9)
NAME tomoyo_find_next_domain - Find a domain. SYNOPSIS int tomoyo_find_next_domain (struct linux_binprm *bprm ); ARGUMENTS bprm Pointer to "struct linux_binprm". DESCRIPTION Returns 0 on success, negative value otherwise. Caller holds tomoyo_read_lock. SEE ALSO Kernel file ./security/tomoyo/domain.c tomoy...
tomoyo_find_yesno(9)
NAME tomoyo_find_yesno - Find values for specified keyword. SYNOPSIS s8 tomoyo_find_yesno (const char *string , const char *find ); ARGUMENTS string String to check. find Name of keyword. DESCRIPTION Returns 1 if "find=yes" was found, 0 if "find=no" was found, -1 otherwise. SEE ALSO Kernel file...
tomoyo_flush(9)
NAME tomoyo_flush - Flush queued string to userspace's buffer. SYNOPSIS bool tomoyo_flush (struct tomoyo_io_buffer *head ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". DESCRIPTION Returns true if all data was flushed, false otherwise. SEE ALSO Kernel file ./security/tomoyo/common.c tomoyo_addprin...
tomoyo_gc_thread(9)
NAME tomoyo_gc_thread - Garbage collector thread function. SYNOPSIS int tomoyo_gc_thread (void *unused ); ARGUMENTS unused Unused. DESCRIPTION Returns 0. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_memory_free(9), tomoyo_struct_used_by_io_buffer(9), tomoyo_name_used_by_io_buffer(9), tomoyo_del_tra...
tomoyo_get_absolute_path(9)
NAME tomoyo_get_absolute_path - Get the path of a dentry but ignores chroot'ed root. SYNOPSIS char * tomoyo_get_absolute_path (const struct path *path , char * const buffer , const int buflen ); ARGUMENTS path Pointer to "struct path". buffer Pointer to buffer to return value in. buflen ...
tomoyo_get_attributes(9)
NAME tomoyo_get_attributes - Revalidate "struct inode". SYNOPSIS void tomoyo_get_attributes (struct tomoyo_obj_info *obj ); ARGUMENTS obj Pointer to "struct tomoyo_obj_info". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/condition.c tomoyo_argv(9), tomoyo_envp(9), tomoyo_scan_...
tomoyo_get_audit(9)
NAME tomoyo_get_audit - Get audit mode. SYNOPSIS bool tomoyo_get_audit (const struct tomoyo_policy_namespace *ns , const u8 profile , const u8 index , const struct tomoyo_acl_info *matched_acl , const bool is_granted ); ARGUMENTS ns Pointer to "struct tomoyo_policy_namespace". profile Profile num...
tomoyo_get_condition(9)
NAME tomoyo_get_condition - Parse condition part. SYNOPSIS struct tomoyo_condition * tomoyo_get_condition (struct tomoyo_acl_param *param ); ARGUMENTS param Pointer to "struct tomoyo_acl_param". DESCRIPTION Returns pointer to "struct tomoyo_condition" on success, NULL otherwise. SEE ALSO Kernel file ./sec...
tomoyo_get_dentry_path(9)
NAME tomoyo_get_dentry_path - Get the path of a dentry. SYNOPSIS char * tomoyo_get_dentry_path (struct dentry *dentry , char * const buffer , const int buflen ); ARGUMENTS dentry Pointer to "struct dentry". buffer Pointer to buffer to return value in. buflen Sizeof buffer. DESCRIPTION ...
tomoyo_get_domainname(9)
NAME tomoyo_get_domainname - Read a domainname from a line. SYNOPSIS const struct tomoyo_path_info * tomoyo_get_domainname (struct tomoyo_acl_param *param ); ARGUMENTS param Pointer to "struct tomoyo_acl_param". DESCRIPTION Returns a domainname on success, NULL otherwise. SEE ALSO Kernel file ./security/t...
tomoyo_get_dqword(9)
NAME tomoyo_get_dqword - tomoyo_get_name() for a quoted string. SYNOPSIS const struct tomoyo_path_info * tomoyo_get_dqword (char *start ); ARGUMENTS start String to save. DESCRIPTION Returns pointer to "struct tomoyo_path_info" on success, NULL otherwise. SEE ALSO Kernel file ./security/tomoyo/condition.c to...
tomoyo_get_exe(9)
NAME tomoyo_get_exe - Get tomoyo_realpath() of current process. SYNOPSIS const char * tomoyo_get_exe (void ); ARGUMENTS void no arguments DESCRIPTION Returns the tomoyo_realpath of current process on success, NULL otherwise. This function uses kzalloc, so the caller must call kfree if this function didn't re...
tomoyo_get_group(9)
NAME tomoyo_get_group - Allocate memory for "struct tomoyo_path_group"/"struct tomoyo_number_group". SYNOPSIS struct tomoyo_group * tomoyo_get_group (struct tomoyo_acl_param *param , const u8 idx ); ARGUMENTS param Pointer to "struct tomoyo_acl_param". idx Index number. DESCRIPTION Returns poin...
tomoyo_get_local_path(9)
NAME tomoyo_get_local_path - Get the path of a dentry. SYNOPSIS char * tomoyo_get_local_path (struct dentry *dentry , char * const buffer , const int buflen ); ARGUMENTS dentry Pointer to "struct dentry". buffer Pointer to buffer to return value in. buflen Sizeof buffer. DESCRIPTION Re...
tomoyo_get_mode(9)
NAME tomoyo_get_mode - Get MAC mode. SYNOPSIS int tomoyo_get_mode (const struct tomoyo_policy_namespace *ns , const u8 profile , const u8 index ); ARGUMENTS ns Pointer to "struct tomoyo_policy_namespace". profile Profile number. index Index number of functionality. DESCRIPTION Retu...
tomoyo_get_name(9)
NAME tomoyo_get_name - Allocate permanent memory for string data. SYNOPSIS const struct tomoyo_path_info * tomoyo_get_name (const char *name ); ARGUMENTS name The string to store into the permernent memory. DESCRIPTION Returns pointer to "struct tomoyo_path_info" on success, NULL otherwise. SEE ALSO Kernel f...
tomoyo_get_realpath(9)
NAME tomoyo_get_realpath - Get realpath. SYNOPSIS bool tomoyo_get_realpath (struct tomoyo_path_info *buf , const struct path *path ); ARGUMENTS buf Pointer to "struct tomoyo_path_info". path Pointer to "struct path". DESCRIPTION Returns true on success, false otherwise. SEE ALSO Kernel file...
tomoyo_get_transit_preference(9)
NAME tomoyo_get_transit_preference - Parse domain transition preference for execve(). SYNOPSIS char * tomoyo_get_transit_preference (struct tomoyo_acl_param *param , struct tomoyo_condition *e ); ARGUMENTS param Pointer to "struct tomoyo_acl_param". e Pointer to "struct tomoyo_condition". DES...
tomoyo_has_more_namespace(9)
NAME tomoyo_has_more_namespace - Check for unread namespaces. SYNOPSIS bool tomoyo_has_more_namespace (struct tomoyo_io_buffer *head ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". DESCRIPTION Returns true if we have more entries to print, false otherwise. SEE ALSO Kernel file ./security/tomoyo/com...
tomoyo_inet_entry(9)
NAME tomoyo_inet_entry - Check permission for INET network operation. SYNOPSIS int tomoyo_inet_entry (const struct tomoyo_addr_info *address ); ARGUMENTS address Pointer to "struct tomoyo_addr_info". DESCRIPTION Returns 0 on success, negative value otherwise. SEE ALSO Kernel file ./security/tomoyo/network.c ...
tomoyo_init(9)
NAME tomoyo_init - Register TOMOYO Linux as a LSM module. SYNOPSIS int tomoyo_init (void ); ARGUMENTS void no arguments DESCRIPTION Returns 0. SEE ALSO Kernel file ./security/tomoyo/tomoyo.c tomoyo_domain(9), tomoyo_cred_prepare(9), tomoyo_bprm_committed_creds(9), tomoyo_bprm_creds_for_exec(9), tomoyo_bp...
tomoyo_init_log(9)
NAME tomoyo_init_log - Allocate buffer for audit logs. SYNOPSIS char * tomoyo_init_log (struct tomoyo_request_info *r , int len , const char *fmt , va_list args ); ARGUMENTS r Pointer to "struct tomoyo_request_info". len Buffer size needed for fmt and args. fmt The printf's f...
tomoyo_init_policy_namespace(9)
NAME tomoyo_init_policy_namespace - Initialize namespace. SYNOPSIS void tomoyo_init_policy_namespace (struct tomoyo_policy_namespace *ns ); ARGUMENTS ns Pointer to "struct tomoyo_policy_namespace". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/common.c tomoyo_addprintf(9), tomoyo_...
tomoyo_init_request_info(9)
NAME tomoyo_init_request_info - Initialize "struct tomoyo_request_info" members. SYNOPSIS int tomoyo_init_request_info (struct tomoyo_request_info *r , struct tomoyo_domain_info *domain , const u8 index ); ARGUMENTS r Pointer to "struct tomoyo_request_info" to initialize. domain Pointer to "str...
tomoyo_inode_getattr(9)
NAME tomoyo_inode_getattr - Target for security_inode_getattr(). SYNOPSIS int tomoyo_inode_getattr (const struct path *path ); ARGUMENTS path Pointer to "struct path". DESCRIPTION Returns 0 on success, negative value otherwise. SEE ALSO Kernel file ./security/tomoyo/tomoyo.c tomoyo_domain(9), tomoyo_cred...
tomoyo_interface_init(9)
NAME tomoyo_interface_init - Initialize /sys/kernel/security/tomoyo/ interface. SYNOPSIS int tomoyo_interface_init (void ); ARGUMENTS void no arguments DESCRIPTION Returns 0. SEE ALSO Kernel file ./security/tomoyo/securityfs_if.c tomoyo_check_task_acl(9), tomoyo_write_self(9), tomoyo_read_self(9), tomoyo_ope...
tomoyo_invalid(9)
NAME tomoyo_invalid - Check whether the character is an invalid char. SYNOPSIS bool tomoyo_invalid (const unsigned char c ); ARGUMENTS c The character to check. DESCRIPTION Returns true if c is an invalid character, false otherwise. SEE ALSO Kernel file ./security/tomoyo/util.c tomoyo_convert_time(9), t...
tomoyo_io_printf(9)
NAME tomoyo_io_printf - printf() to "struct tomoyo_io_buffer" structure. SYNOPSIS void tomoyo_io_printf (struct tomoyo_io_buffer *head , const char *fmt , ... ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". fmt The printf's format string, followed by parameters. ... vari...
tomoyo_kernel_service(9)
NAME tomoyo_kernel_service - Check whether I'm kernel service or not. SYNOPSIS bool tomoyo_kernel_service (void ); ARGUMENTS void no arguments DESCRIPTION Returns true if I'm kernel service, false otherwise. SEE ALSO Kernel file ./security/tomoyo/network.c tomoyo_parse_ipaddr_union(9), tomoyo_print_ipv4(...
tomoyo_last_word(9)
NAME tomoyo_last_word - Get last component of a domainname. SYNOPSIS const char * tomoyo_last_word (const char *name ); ARGUMENTS name Domainname to check. DESCRIPTION Returns the last word of domainname. SEE ALSO Kernel file ./security/tomoyo/domain.c tomoyo_update_policy(9), tomoyo_same_acl_head(9),...
tomoyo_load_builtin_policy(9)
NAME tomoyo_load_builtin_policy - Load built-in policy. SYNOPSIS void tomoyo_load_builtin_policy (void ); ARGUMENTS void no arguments DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/common.c tomoyo_addprintf(9), tomoyo_flush(9), tomoyo_set_string(9), tomoyo_io_printf(9), tomoyo_set_s...
tomoyo_load_policy(9)
NAME tomoyo_load_policy - Run external policy loader to load policy. SYNOPSIS void tomoyo_load_policy (const char *filename ); ARGUMENTS filename The program about to start. DESCRIPTION This function checks whether filename is /sbin/init , and if so invoke /sbin/tomoyo-init and wait for the termination of /sbin/t...
tomoyo_loader_setup(9)
NAME tomoyo_loader_setup - Set policy loader. SYNOPSIS int tomoyo_loader_setup (char *str ); ARGUMENTS str Program to use as a policy loader (e.g. /sbin/tomoyo-init ). DESCRIPTION Returns 0. SEE ALSO Kernel file ./security/tomoyo/load_policy.c tomoyo_policy_loader_exists(9), tomoyo_trigger_setup(9), tomoyo_...
tomoyo_make_byte(9)
NAME tomoyo_make_byte - Make byte value from three octal characters. SYNOPSIS u8 tomoyo_make_byte (const u8 c1 , const u8 c2 , const u8 c3 ); ARGUMENTS c1 The first character. c2 The second character. c3 The third character. DESCRIPTION Returns byte value. SEE ALSO Kernel ...
tomoyo_manager(9)
NAME tomoyo_manager - Check whether the current process is a policy manager. SYNOPSIS bool tomoyo_manager (void ); ARGUMENTS void no arguments DESCRIPTION Returns true if the current process is permitted to modify policy via /sys/kernel/security/tomoyo/ interface. Caller holds tomoyo_read_lock. SEE ALSO Ker...
tomoyo_memory_free(9)
NAME tomoyo_memory_free - Free memory for elements. SYNOPSIS void tomoyo_memory_free (void *ptr ); ARGUMENTS ptr Pointer to allocated memory. DESCRIPTION Returns nothing. Caller holds tomoyo_policy_lock mutex. SEE ALSO Kernel file ./security/tomoyo/gc.c tomoyo_struct_used_by_io_buffer(9), tomoyo_name_used_...
tomoyo_memory_ok(9)
NAME tomoyo_memory_ok - Check memory quota. SYNOPSIS bool tomoyo_memory_ok (void *ptr ); ARGUMENTS ptr Pointer to allocated memory. DESCRIPTION Returns true on success, false otherwise. Returns true if ptr is not NULL and quota not exceeded, false otherwise. Caller holds tomoyo_policy_lock mutex. SEE ALSO...
tomoyo_merge_inet_acl(9)
NAME tomoyo_merge_inet_acl - Merge duplicated "struct tomoyo_inet_acl" entry. SYNOPSIS bool tomoyo_merge_inet_acl (struct tomoyo_acl_info *a , struct tomoyo_acl_info *b , const bool is_delete ); ARGUMENTS a Pointer to "struct tomoyo_acl_info". b Pointer to "struct tomoyo_acl_info". ...
tomoyo_merge_mkdev_acl(9)
NAME tomoyo_merge_mkdev_acl - Merge duplicated "struct tomoyo_mkdev_acl" entry. SYNOPSIS bool tomoyo_merge_mkdev_acl (struct tomoyo_acl_info *a , struct tomoyo_acl_info *b , const bool is_delete ); ARGUMENTS a Pointer to "struct tomoyo_acl_info". b Pointer to "struct tomoyo_acl_info". ...
tomoyo_merge_path2_acl(9)
NAME tomoyo_merge_path2_acl - Merge duplicated "struct tomoyo_path2_acl" entry. SYNOPSIS bool tomoyo_merge_path2_acl (struct tomoyo_acl_info *a , struct tomoyo_acl_info *b , const bool is_delete ); ARGUMENTS a Pointer to "struct tomoyo_acl_info". b Pointer to "struct tomoyo_acl_info". ...
tomoyo_merge_path_acl(9)
NAME tomoyo_merge_path_acl - Merge duplicated "struct tomoyo_path_acl" entry. SYNOPSIS bool tomoyo_merge_path_acl (struct tomoyo_acl_info *a , struct tomoyo_acl_info *b , const bool is_delete ); ARGUMENTS a Pointer to "struct tomoyo_acl_info". b Pointer to "struct tomoyo_acl_info". ...
tomoyo_merge_path_number_acl(9)
NAME tomoyo_merge_path_number_acl - Merge duplicated "struct tomoyo_path_number_acl" entry. SYNOPSIS bool tomoyo_merge_path_number_acl (struct tomoyo_acl_info *a , struct tomoyo_acl_info *b , const bool is_delete ); ARGUMENTS a Pointer to "struct tomoyo_acl_info". b Pointer to "struct tomo...
tomoyo_merge_unix_acl(9)
NAME tomoyo_merge_unix_acl - Merge duplicated "struct tomoyo_unix_acl" entry. SYNOPSIS bool tomoyo_merge_unix_acl (struct tomoyo_acl_info *a , struct tomoyo_acl_info *b , const bool is_delete ); ARGUMENTS a Pointer to "struct tomoyo_acl_info". b Pointer to "struct tomoyo_acl_info". ...
tomoyo_mkdev_perm(9)
NAME tomoyo_mkdev_perm - Check permission for "mkblock" and "mkchar". SYNOPSIS int tomoyo_mkdev_perm (const u8 operation , const struct path *path , const unsigned int mode , unsigned int dev ); ARGUMENTS operation Type of operation. (TOMOYO_TYPE_MKCHAR or TOMOYO_TYPE_MKBLOCK) path Pointer to "struct...
tomoyo_mm_init(9)
NAME tomoyo_mm_init - Initialize mm related code. SYNOPSIS void tomoyo_mm_init (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./security/tomoyo/memory.c tomoyo_warn_oom(9), tomoyo_memory_ok(9), tomoyo_commit_ok(9), tomoyo_get_group(9), tomoyo_get_name(9) April 2026 ...