id
stringlengths
4
63
text
stringlengths
153
8.81M
tomoyo_mount_acl(9)
NAME tomoyo_mount_acl - Check permission for mount() operation. SYNOPSIS int tomoyo_mount_acl (struct tomoyo_request_info *r , const char *dev_name , const struct path *dir , const char *type , unsigned long flags ); ARGUMENTS r Pointer to "struct tomoyo_request_info". dev_name Name of device fil...
tomoyo_mount_permission(9)
NAME tomoyo_mount_permission - Check permission for mount() operation. SYNOPSIS int tomoyo_mount_permission (const char *dev_name , const struct path *path , const char *type , unsigned long flags , void *data_page ); ARGUMENTS dev_name Name of device file. Maybe NULL. path Pointer to "struct path"....
tomoyo_name_used_by_io_buffer(9)
NAME tomoyo_name_used_by_io_buffer - Check whether the string is used by /sys/kernel/security/tomoyo/ users or not. SYNOPSIS bool tomoyo_name_used_by_io_buffer (const char *string ); ARGUMENTS string String to check. DESCRIPTION Returns true if string is used by /sys/kernel/security/tomoyo/ users, false otherwi...
tomoyo_namespace_jump(9)
NAME tomoyo_namespace_jump - Check for namespace jump. SYNOPSIS bool tomoyo_namespace_jump (const char *domainname ); ARGUMENTS domainname Name of domain. DESCRIPTION Returns true if namespace differs, false otherwise. SEE ALSO Kernel file ./security/tomoyo/domain.c tomoyo_update_policy(9), tomoyo_same_acl_head(...
tomoyo_normalize_line(9)
NAME tomoyo_normalize_line - Format string. SYNOPSIS void tomoyo_normalize_line (unsigned char *buffer ); ARGUMENTS buffer The line to normalize. DESCRIPTION Leading and trailing whitespaces are removed. Multiple whitespaces are packed into single space. Returns nothing. SEE ALSO Kernel file ./security/tom...
tomoyo_notify_gc(9)
NAME tomoyo_notify_gc - Register/unregister /sys/kernel/security/tomoyo/ users. SYNOPSIS void tomoyo_notify_gc (struct tomoyo_io_buffer *head , const bool is_register ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". is_register True if register, false if unregister. DESCRIPTION Returns nothing....
tomoyo_number_matches_group(9)
NAME tomoyo_number_matches_group - Check whether the given number matches members of the given number group. SYNOPSIS bool tomoyo_number_matches_group (const unsigned long min , const unsigned long max , const struct tomoyo_group *group ); ARGUMENTS min Min number. max Max number. grou...
tomoyo_numscan(9)
NAME tomoyo_numscan - sscanf() which stores the length of a decimal integer value. SYNOPSIS bool tomoyo_numscan (const char *str , const char *head , int *width , const char tail ); ARGUMENTS str String to scan. head Leading string that must start with. width Pointer to "int" for ...
tomoyo_open(9)
NAME tomoyo_open - open() for /sys/kernel/security/tomoyo/ interface. SYNOPSIS int tomoyo_open (struct inode *inode , struct file *file ); ARGUMENTS inode Pointer to "struct inode". file Pointer to "struct file". DESCRIPTION Returns 0 on success, negative value otherwise. SEE ALSO Kernel file ...
tomoyo_open_control(9)
NAME tomoyo_open_control - open() for /sys/kernel/security/tomoyo/ interface. SYNOPSIS int tomoyo_open_control (const u8 type , struct file *file ); ARGUMENTS type Type of interface. file Pointer to "struct file". DESCRIPTION Returns 0 on success, negative value otherwise. SEE ALSO Kernel fil...
tomoyo_parse_argv(9)
NAME tomoyo_parse_argv - Parse an argv[] condition part. SYNOPSIS bool tomoyo_parse_argv (char *left , char *right , struct tomoyo_argv *argv ); ARGUMENTS left Lefthand value. right Righthand value. argv Pointer to "struct tomoyo_argv". DESCRIPTION Returns true on success, false o...
tomoyo_parse_envp(9)
NAME tomoyo_parse_envp - Parse an envp[] condition part. SYNOPSIS bool tomoyo_parse_envp (char *left , char *right , struct tomoyo_envp *envp ); ARGUMENTS left Lefthand value. right Righthand value. envp Pointer to "struct tomoyo_envp". DESCRIPTION Returns true on success, false o...
tomoyo_parse_ipaddr_union(9)
NAME tomoyo_parse_ipaddr_union - Parse an IP address. SYNOPSIS bool tomoyo_parse_ipaddr_union (struct tomoyo_acl_param *param , struct tomoyo_ipaddr_union *ptr ); ARGUMENTS param Pointer to "struct tomoyo_acl_param". ptr Pointer to "struct tomoyo_ipaddr_union". DESCRIPTION Returns true on succe...
tomoyo_parse_name_union(9)
NAME tomoyo_parse_name_union - Parse a tomoyo_name_union. SYNOPSIS bool tomoyo_parse_name_union (struct tomoyo_acl_param *param , struct tomoyo_name_union *ptr ); ARGUMENTS param Pointer to "struct tomoyo_acl_param". ptr Pointer to "struct tomoyo_name_union". DESCRIPTION Returns true on success...
tomoyo_parse_name_union_quoted(9)
NAME tomoyo_parse_name_union_quoted - Parse a quoted word. SYNOPSIS bool tomoyo_parse_name_union_quoted (struct tomoyo_acl_param *param , struct tomoyo_name_union *ptr ); ARGUMENTS param Pointer to "struct tomoyo_acl_param". ptr Pointer to "struct tomoyo_name_union". DESCRIPTION Returns true on...
tomoyo_parse_number_union(9)
NAME tomoyo_parse_number_union - Parse a tomoyo_number_union. SYNOPSIS bool tomoyo_parse_number_union (struct tomoyo_acl_param *param , struct tomoyo_number_union *ptr ); ARGUMENTS param Pointer to "struct tomoyo_acl_param". ptr Pointer to "struct tomoyo_number_union". DESCRIPTION Returns true ...
tomoyo_parse_policy(9)
NAME tomoyo_parse_policy - Parse a policy line. SYNOPSIS int tomoyo_parse_policy (struct tomoyo_io_buffer *head , char *line ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". line Line to parse. DESCRIPTION Returns 0 on success, negative value otherwise. Caller holds tomoyo_read_lock. S...
tomoyo_parse_ulong(9)
NAME tomoyo_parse_ulong - Parse an "unsigned long" value. SYNOPSIS u8 tomoyo_parse_ulong (unsigned long *result , char **str ); ARGUMENTS result Pointer to "unsigned long". str Pointer to string to parse. DESCRIPTION Returns one of values in "enum tomoyo_value_type". The src is updated to point...
tomoyo_path2_perm(9)
NAME tomoyo_path2_perm - Check permission for "rename", "link" and "pivot_root". SYNOPSIS int tomoyo_path2_perm (const u8 operation , const struct path *path1 , const struct path *path2 ); ARGUMENTS operation Type of operation. path1 Pointer to "struct path". path2 Pointer to "struct pat...
tomoyo_path_chmod(9)
NAME tomoyo_path_chmod - Target for security_path_chmod(). SYNOPSIS int tomoyo_path_chmod (const struct path *path , umode_t mode ); ARGUMENTS path Pointer to "struct path". mode DAC permission mode. DESCRIPTION Returns 0 on success, negative value otherwise. SEE ALSO Kernel file ./security/...
tomoyo_path_chown(9)
NAME tomoyo_path_chown - Target for security_path_chown(). SYNOPSIS int tomoyo_path_chown (const struct path *path , kuid_t uid , kgid_t gid ); ARGUMENTS path Pointer to "struct path". uid Owner ID. gid Group ID. DESCRIPTION Returns 0 on success, negative value otherwise. SEE ...
tomoyo_path_chroot(9)
NAME tomoyo_path_chroot - Target for security_path_chroot(). SYNOPSIS int tomoyo_path_chroot (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_prepa...
tomoyo_path_link(9)
NAME tomoyo_path_link - Target for security_path_link(). SYNOPSIS int tomoyo_path_link (struct dentry *old_dentry , const struct path *new_dir , struct dentry *new_dentry ); ARGUMENTS old_dentry Pointer to "struct dentry". new_dir Pointer to "struct path". new_dentry Pointer to "struct dentry". ...
tomoyo_path_matches_group(9)
NAME tomoyo_path_matches_group - Check whether the given pathname matches members of the given pathname group. SYNOPSIS const struct tomoyo_path_info * tomoyo_path_matches_group (const struct tomoyo_path_info *pathname , const struct tomoyo_group *group ); ARGUMENTS pathname The name of pathname. group ...
tomoyo_path_matches_pattern(9)
NAME tomoyo_path_matches_pattern - Check whether the given filename matches the given pattern. SYNOPSIS bool tomoyo_path_matches_pattern (const struct tomoyo_path_info *filename , const struct tomoyo_path_info *pattern ); ARGUMENTS filename The filename to check. pattern The pattern to compare. DESCRI...
tomoyo_path_matches_pattern2(9)
NAME tomoyo_path_matches_pattern2 - Do pathname pattern matching. SYNOPSIS bool tomoyo_path_matches_pattern2 (const char *f , const char *p ); ARGUMENTS f The start of string to check. p The start of pattern to compare. DESCRIPTION Returns true if f matches p, false otherwise. SEE ALSO K...
tomoyo_path_mkdir(9)
NAME tomoyo_path_mkdir - Target for security_path_mkdir(). SYNOPSIS int tomoyo_path_mkdir (const struct path *parent , struct dentry *dentry , umode_t mode ); ARGUMENTS parent Pointer to "struct path". dentry Pointer to "struct dentry". mode DAC permission mode. DESCRIPTION Returns 0...
tomoyo_path_mknod(9)
NAME tomoyo_path_mknod - Target for security_path_mknod(). SYNOPSIS int tomoyo_path_mknod (const struct path *parent , struct dentry *dentry , umode_t mode , unsigned int dev ); ARGUMENTS parent Pointer to "struct path". dentry Pointer to "struct dentry". mode DAC permission mode. ...
tomoyo_path_number_perm(9)
NAME tomoyo_path_number_perm - Check permission for "create", "mkdir", "mkfifo", "mksock", "ioctl", "chmod", "chown", "chgrp". SYNOPSIS int tomoyo_path_number_perm (const u8 type , const struct path *path , unsigned long number ); ARGUMENTS type Type of operation. path Pointer to "struct path". ...
tomoyo_path_perm(9)
NAME tomoyo_path_perm - Check permission for "unlink", "rmdir", "truncate", "symlink", "append", "chroot" and "unmount". SYNOPSIS int tomoyo_path_perm (const u8 operation , const struct path *path , const char *target ); ARGUMENTS operation Type of operation. path Pointer to "struct path". ta...
tomoyo_path_permission(9)
NAME tomoyo_path_permission - Check permission for single path operation. SYNOPSIS int tomoyo_path_permission (struct tomoyo_request_info *r , u8 operation , const struct tomoyo_path_info *filename ); ARGUMENTS r Pointer to "struct tomoyo_request_info". operation Type of operation. filenam...
tomoyo_path_rename(9)
NAME tomoyo_path_rename - Target for security_path_rename(). SYNOPSIS int tomoyo_path_rename (const struct path *old_parent , struct dentry *old_dentry , const struct path *new_parent , struct dentry *new_dentry , const unsigned int flags ); ARGUMENTS old_parent Pointer to "struct path". old_dentry Pointer ...
tomoyo_path_rmdir(9)
NAME tomoyo_path_rmdir - Target for security_path_rmdir(). SYNOPSIS int tomoyo_path_rmdir (const struct path *parent , struct dentry *dentry ); ARGUMENTS parent Pointer to "struct path". dentry Pointer to "struct dentry". DESCRIPTION Returns 0 on success, negative value otherwise. SEE ALSO Kernel ...
tomoyo_path_symlink(9)
NAME tomoyo_path_symlink - Target for security_path_symlink(). SYNOPSIS int tomoyo_path_symlink (const struct path *parent , struct dentry *dentry , const char *old_name ); ARGUMENTS parent Pointer to "struct path". dentry Pointer to "struct dentry". old_name Symlink's content. DESCRIPTI...
tomoyo_path_truncate(9)
NAME tomoyo_path_truncate - Target for security_path_truncate(). SYNOPSIS int tomoyo_path_truncate (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_path_unlink(9)
NAME tomoyo_path_unlink - Target for security_path_unlink(). SYNOPSIS int tomoyo_path_unlink (const struct path *parent , struct dentry *dentry ); ARGUMENTS parent Pointer to "struct path". dentry Pointer to "struct dentry". DESCRIPTION Returns 0 on success, negative value otherwise. SEE ALSO Kern...
tomoyo_pathcmp(9)
NAME tomoyo_pathcmp - strcmp() for "struct tomoyo_path_info" structure. SYNOPSIS bool tomoyo_pathcmp (const struct tomoyo_path_info *a , const struct tomoyo_path_info *b ); ARGUMENTS a Pointer to "struct tomoyo_path_info". b Pointer to "struct tomoyo_path_info". DESCRIPTION Returns true i...
tomoyo_patternize_path(9)
NAME tomoyo_patternize_path - Make patterns for file path. Used by learning mode. SYNOPSIS void tomoyo_patternize_path (char *buffer , const int len , char *entry ); ARGUMENTS buffer Destination buffer. len Size of buffer. entry Original line. DESCRIPTION Returns nothing. SEE ALSO...
tomoyo_permstr(9)
NAME tomoyo_permstr - Find permission keywords. SYNOPSIS bool tomoyo_permstr (const char *string , const char *keyword ); ARGUMENTS string String representation for permissions in foo/bar/buz format. keyword Keyword to find from string/ DESCRIPTION Returns true if keyword was found in string, false ...
tomoyo_policy_loader_exists(9)
NAME tomoyo_policy_loader_exists - Check whether /sbin/tomoyo-init exists. SYNOPSIS bool tomoyo_policy_loader_exists (void ); ARGUMENTS void no arguments DESCRIPTION Returns true if /sbin/tomoyo-init exists, false otherwise. SEE ALSO Kernel file ./security/tomoyo/load_policy.c tomoyo_loader_setup(9), tomoyo_...
tomoyo_poll(9)
NAME tomoyo_poll - poll() for /sys/kernel/security/tomoyo/ interface. SYNOPSIS __poll_t tomoyo_poll (struct file *file , poll_table *wait ); ARGUMENTS file Pointer to "struct file". wait Pointer to "poll_table". Maybe NULL. DESCRIPTION Returns EPOLLIN | EPOLLRDNORM | EPOLLOUT | EPOLLWRNORM if r...
tomoyo_poll_control(9)
NAME tomoyo_poll_control - poll() for /sys/kernel/security/tomoyo/ interface. SYNOPSIS __poll_t tomoyo_poll_control (struct file *file , poll_table *wait ); ARGUMENTS file Pointer to "struct file". wait Pointer to "poll_table". Maybe NULL. DESCRIPTION Returns EPOLLIN | EPOLLRDNORM | EPOLLOUT | ...
tomoyo_poll_log(9)
NAME tomoyo_poll_log - Wait for an audit log. SYNOPSIS __poll_t tomoyo_poll_log (struct file *file , poll_table *wait ); ARGUMENTS file Pointer to "struct file". wait Pointer to "poll_table". Maybe NULL. DESCRIPTION Returns EPOLLIN | EPOLLRDNORM when ready to read an audit log. SEE ALSO Kernel...
tomoyo_poll_query(9)
NAME tomoyo_poll_query - poll() for /sys/kernel/security/tomoyo/query. SYNOPSIS __poll_t tomoyo_poll_query (struct file *file , poll_table *wait ); ARGUMENTS file Pointer to "struct file". wait Pointer to "poll_table". DESCRIPTION Returns EPOLLIN | EPOLLRDNORM when ready to read, 0 otherwise. ...
tomoyo_print_bprm(9)
NAME tomoyo_print_bprm - Print "struct linux_binprm" for auditing. SYNOPSIS char * tomoyo_print_bprm (struct linux_binprm *bprm , struct tomoyo_page_dump *dump ); ARGUMENTS bprm Pointer to "struct linux_binprm". dump Pointer to "struct tomoyo_page_dump". DESCRIPTION Returns the contents of bprm...
tomoyo_print_condition(9)
NAME tomoyo_print_condition - Print condition part. SYNOPSIS bool tomoyo_print_condition (struct tomoyo_io_buffer *head , const struct tomoyo_condition *cond ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". cond Pointer to "struct tomoyo_condition". DESCRIPTION Returns true on success, f...
tomoyo_print_config(9)
NAME tomoyo_print_config - Print mode for specified functionality. SYNOPSIS void tomoyo_print_config (struct tomoyo_io_buffer *head , const u8 config ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". config Mode for that functionality. DESCRIPTION Returns nothing. Caller prints functionali...
tomoyo_print_entry(9)
NAME tomoyo_print_entry - Print an ACL entry. SYNOPSIS bool tomoyo_print_entry (struct tomoyo_io_buffer *head , struct tomoyo_acl_info *acl ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". acl Pointer to an ACL entry. DESCRIPTION Returns true on success, false otherwise. SEE ALSO Kerne...
tomoyo_print_header(9)
NAME tomoyo_print_header - Get header line of audit log. SYNOPSIS char * tomoyo_print_header (struct tomoyo_request_info *r ); ARGUMENTS r Pointer to "struct tomoyo_request_info". DESCRIPTION Returns string representation. This function uses kmalloc, so caller must kfree if this function didn't return NUL...
tomoyo_print_ip(9)
NAME tomoyo_print_ip - Print an IP address. SYNOPSIS void tomoyo_print_ip (char *buf , const unsigned int size , const struct tomoyo_ipaddr_union *ptr ); ARGUMENTS buf Buffer to write to. size Size of buf. ptr Pointer to "struct ipaddr_union". DESCRIPTION Returns nothing. SEE ...
tomoyo_print_ipv4(9)
NAME tomoyo_print_ipv4 - Print an IPv4 address. SYNOPSIS void tomoyo_print_ipv4 (char *buffer , const unsigned int buffer_len , const __be32 *min_ip , const __be32 *max_ip ); ARGUMENTS buffer Buffer to write to. buffer_len Size of buffer. min_ip Pointer to __be32. max_ip Pointe...
tomoyo_print_ipv6(9)
NAME tomoyo_print_ipv6 - Print an IPv6 address. SYNOPSIS void tomoyo_print_ipv6 (char *buffer , const unsigned int buffer_len , const struct in6_addr *min_ip , const struct in6_addr *max_ip ); ARGUMENTS buffer Buffer to write to. buffer_len Size of buffer. min_ip Pointer to "struct in6_addr...
tomoyo_print_name_union(9)
NAME tomoyo_print_name_union - Print a tomoyo_name_union. SYNOPSIS void tomoyo_print_name_union (struct tomoyo_io_buffer *head , const struct tomoyo_name_union *ptr ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". ptr Pointer to "struct tomoyo_name_union". SEE ALSO Kernel file ./secur...
tomoyo_print_name_union_quoted(9)
NAME tomoyo_print_name_union_quoted - Print a tomoyo_name_union with a quote. SYNOPSIS void tomoyo_print_name_union_quoted (struct tomoyo_io_buffer *head , const struct tomoyo_name_union *ptr ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". ptr Pointer to "struct tomoyo_name_union". DES...
tomoyo_print_namespace(9)
NAME tomoyo_print_namespace - Print namespace header. SYNOPSIS void tomoyo_print_namespace (struct tomoyo_io_buffer *head ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/common.c tomoyo_addprintf(9), tomoyo_flush(9), tomoyo_set_...
tomoyo_print_number_union(9)
NAME tomoyo_print_number_union - Print a tomoyo_number_union. SYNOPSIS void tomoyo_print_number_union (struct tomoyo_io_buffer *head , const struct tomoyo_number_union *ptr ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". ptr Pointer to "struct tomoyo_number_union". DESCRIPTION Returns ...
tomoyo_print_number_union_nospace(9)
NAME tomoyo_print_number_union_nospace - Print a tomoyo_number_union without a space. SYNOPSIS void tomoyo_print_number_union_nospace (struct tomoyo_io_buffer *head , const struct tomoyo_number_union *ptr ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". ptr Pointer to "struct tomoyo_numb...
tomoyo_print_ulong(9)
NAME tomoyo_print_ulong - Print an "unsigned long" value. SYNOPSIS void tomoyo_print_ulong (char *buffer , const int buffer_len , const unsigned long value , const u8 type ); ARGUMENTS buffer Pointer to buffer. buffer_len Size of buffer. value An "unsigned long" value. type ...
tomoyo_profile(9)
NAME tomoyo_profile - Find a profile. SYNOPSIS struct tomoyo_profile * tomoyo_profile (const struct tomoyo_policy_namespace *ns , const u8 profile ); ARGUMENTS ns Pointer to "struct tomoyo_policy_namespace". profile Profile number to find. DESCRIPTION Returns pointer to "struct tomoyo_profile". ...
tomoyo_put_condition(9)
NAME tomoyo_put_condition - Drop reference on "struct tomoyo_condition". SYNOPSIS void tomoyo_put_condition (struct tomoyo_condition *cond ); ARGUMENTS cond Pointer to "struct tomoyo_condition". Maybe NULL. DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/common.h tomoyo_read_lock(9)...
tomoyo_put_group(9)
NAME tomoyo_put_group - Drop reference on "struct tomoyo_group". SYNOPSIS void tomoyo_put_group (struct tomoyo_group *group ); ARGUMENTS group Pointer to "struct tomoyo_group". Maybe NULL. DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/common.h tomoyo_read_lock(9), tomoyo_read_unlock(...
tomoyo_put_name(9)
NAME tomoyo_put_name - Drop reference on "struct tomoyo_name". SYNOPSIS void tomoyo_put_name (const struct tomoyo_path_info *name ); ARGUMENTS name Pointer to "struct tomoyo_path_info". Maybe NULL. DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/common.h tomoyo_read_lock(9), tomoyo_re...
tomoyo_put_name_union(9)
NAME tomoyo_put_name_union - Drop reference on "struct tomoyo_name_union". SYNOPSIS void tomoyo_put_name_union (struct tomoyo_name_union *ptr ); ARGUMENTS ptr Pointer to "struct tomoyo_name_union". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/file.c tomoyo_compare_name_union(9),...
tomoyo_put_number_union(9)
NAME tomoyo_put_number_union - Drop reference on "struct tomoyo_number_union". SYNOPSIS void tomoyo_put_number_union (struct tomoyo_number_union *ptr ); ARGUMENTS ptr Pointer to "struct tomoyo_number_union". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/file.c tomoyo_put_name_uni...
tomoyo_read(9)
NAME tomoyo_read - read() for /sys/kernel/security/tomoyo/ interface. SYNOPSIS ssize_t tomoyo_read (struct file *file , char __user *buf , size_t count , loff_t *ppos ); ARGUMENTS file Pointer to "struct file". buf Pointer to buffer. count Size of buf. ppos Unused. ...
tomoyo_read_control(9)
NAME tomoyo_read_control - read() for /sys/kernel/security/tomoyo/ interface. SYNOPSIS ssize_t tomoyo_read_control (struct tomoyo_io_buffer *head , char __user *buffer , const int buffer_len ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". buffer Pointer to buffer to write to. buffe...
tomoyo_read_domain(9)
NAME tomoyo_read_domain - Read domain policy. SYNOPSIS void tomoyo_read_domain (struct tomoyo_io_buffer *head ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". DESCRIPTION Caller holds tomoyo_read_lock. SEE ALSO Kernel file ./security/tomoyo/common.c tomoyo_addprintf(9), tomoyo_flush(9), tomoyo_se...
tomoyo_read_domain2(9)
NAME tomoyo_read_domain2 - Read domain policy. SYNOPSIS bool tomoyo_read_domain2 (struct tomoyo_io_buffer *head , struct list_head *list ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". list Pointer to "struct list_head". DESCRIPTION Caller holds tomoyo_read_lock. Returns true on succes...
tomoyo_read_exception(9)
NAME tomoyo_read_exception - Read exception policy. SYNOPSIS void tomoyo_read_exception (struct tomoyo_io_buffer *head ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". DESCRIPTION Caller holds tomoyo_read_lock. SEE ALSO Kernel file ./security/tomoyo/common.c tomoyo_addprintf(9), tomoyo_flush(9), ...
tomoyo_read_group(9)
NAME tomoyo_read_group - Read "struct tomoyo_path_group"/"struct tomoyo_number_group"/"struct tomoyo_address_group" list. SYNOPSIS bool tomoyo_read_group (struct tomoyo_io_buffer *head , const int idx ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". idx Index number. DESCRIPTION Returns...
tomoyo_read_lock(9)
NAME tomoyo_read_lock - Take lock for protecting policy. SYNOPSIS int tomoyo_read_lock (void ); ARGUMENTS void no arguments DESCRIPTION Returns index number for tomoyo_read_unlock. SEE ALSO Kernel file ./security/tomoyo/common.h tomoyo_read_unlock(9), tomoyo_sys_getppid(9), tomoyo_sys_getpid(9), tomoyo...
tomoyo_read_log(9)
NAME tomoyo_read_log - Read an audit log. SYNOPSIS void tomoyo_read_log (struct tomoyo_io_buffer *head ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/audit.c tomoyo_print_bprm(9), tomoyo_filetype(9), tomoyo_print_header(9), tomoyo_i...
tomoyo_read_manager(9)
NAME tomoyo_read_manager - Read manager policy. SYNOPSIS void tomoyo_read_manager (struct tomoyo_io_buffer *head ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". DESCRIPTION Caller holds tomoyo_read_lock. SEE ALSO Kernel file ./security/tomoyo/common.c tomoyo_addprintf(9), tomoyo_flush(9), tomoyo...
tomoyo_read_pid(9)
NAME tomoyo_read_pid - Get domainname of the specified PID. SYNOPSIS void tomoyo_read_pid (struct tomoyo_io_buffer *head ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". DESCRIPTION Returns the domainname which the specified PID is in on success, empty string otherwise. The PID is specified by tomoyo_...
tomoyo_read_policy(9)
NAME tomoyo_read_policy - Read "struct tomoyo_..._entry" list. SYNOPSIS bool tomoyo_read_policy (struct tomoyo_io_buffer *head , const int idx ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". idx Index number. DESCRIPTION Returns true on success, false otherwise. Caller holds tomoyo_re...
tomoyo_read_profile(9)
NAME tomoyo_read_profile - Read profile table. SYNOPSIS void tomoyo_read_profile (struct tomoyo_io_buffer *head ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/common.c tomoyo_addprintf(9), tomoyo_flush(9), tomoyo_set_string(9),...
tomoyo_read_query(9)
NAME tomoyo_read_query - Read access requests which violated policy in enforcing mode. SYNOPSIS void tomoyo_read_query (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_st...
tomoyo_read_self(9)
NAME tomoyo_read_self - read() for /sys/kernel/security/tomoyo/self_domain interface. SYNOPSIS ssize_t tomoyo_read_self (struct file *file , char __user *buf , size_t count , loff_t *ppos ); ARGUMENTS file Pointer to "struct file". buf Domainname which current thread belongs to. count ...
tomoyo_read_stat(9)
NAME tomoyo_read_stat - Read statistic data. SYNOPSIS void tomoyo_read_stat (struct tomoyo_io_buffer *head ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/common.c tomoyo_addprintf(9), tomoyo_flush(9), tomoyo_set_string(9), tomo...
tomoyo_read_token(9)
NAME tomoyo_read_token - Read a word from a line. SYNOPSIS char * tomoyo_read_token (struct tomoyo_acl_param *param ); ARGUMENTS param Pointer to "struct tomoyo_acl_param". DESCRIPTION Returns a word on success, "" otherwise. To allow the caller to skip NULL check, this function returns "" rather than NULL if...
tomoyo_read_unlock(9)
NAME tomoyo_read_unlock - Release lock for protecting policy. SYNOPSIS void tomoyo_read_unlock (int idx ); ARGUMENTS idx Index number returned by tomoyo_read_lock. DESCRIPTION Returns nothing. SEE ALSO Kernel file ./security/tomoyo/common.h tomoyo_read_lock(9), tomoyo_sys_getppid(9), tomoyo_sys_getpid...
tomoyo_read_version(9)
NAME tomoyo_read_version - Get version. SYNOPSIS void tomoyo_read_version (struct tomoyo_io_buffer *head ); ARGUMENTS head Pointer to "struct tomoyo_io_buffer". DESCRIPTION Returns version information. SEE ALSO Kernel file ./security/tomoyo/common.c tomoyo_addprintf(9), tomoyo_flush(9), tomoyo_set_strin...
tomoyo_realpath_from_path(9)
NAME tomoyo_realpath_from_path - Returns realpath(3) of the given pathname but ignores chroot'ed root. SYNOPSIS char * tomoyo_realpath_from_path (const struct path *path ); ARGUMENTS path Pointer to "struct path". DESCRIPTION Returns the realpath of the given path on success, NULL otherwise. If dentry is ...
tomoyo_realpath_nofollow(9)
NAME tomoyo_realpath_nofollow - Get realpath of a pathname. SYNOPSIS char * tomoyo_realpath_nofollow (const char *pathname ); ARGUMENTS pathname The pathname to solve. DESCRIPTION Returns the realpath of pathname on success, NULL otherwise. SEE ALSO Kernel file ./security/tomoyo/realpath.c tomoyo_encode2(9), tom...
tomoyo_release(9)
NAME tomoyo_release - close() for /sys/kernel/security/tomoyo/ interface. SYNOPSIS int tomoyo_release (struct inode *inode , struct file *file ); ARGUMENTS inode Pointer to "struct inode". file Pointer to "struct file". SEE ALSO Kernel file ./security/tomoyo/securityfs_if.c tomoyo_check_task_...
tomoyo_same_acl_head(9)
NAME tomoyo_same_acl_head - Check for duplicated "struct tomoyo_acl_info" entry. SYNOPSIS bool tomoyo_same_acl_head (const struct tomoyo_acl_info *a , const struct tomoyo_acl_info *b ); ARGUMENTS a Pointer to "struct tomoyo_acl_info". b Pointer to "struct tomoyo_acl_info". DESCRIPTION Ret...
tomoyo_same_address_group(9)
NAME tomoyo_same_address_group - Check for duplicated "struct tomoyo_address_group" entry. SYNOPSIS bool tomoyo_same_address_group (const struct tomoyo_acl_head *a , const struct tomoyo_acl_head *b ); ARGUMENTS a Pointer to "struct tomoyo_acl_head". b Pointer to "struct tomoyo_acl_head". ...
tomoyo_same_aggregator(9)
NAME tomoyo_same_aggregator - Check for duplicated "struct tomoyo_aggregator" entry. SYNOPSIS bool tomoyo_same_aggregator (const struct tomoyo_acl_head *a , const struct tomoyo_acl_head *b ); ARGUMENTS a Pointer to "struct tomoyo_acl_head". b Pointer to "struct tomoyo_acl_head". DESCRIPTI...
tomoyo_same_condition(9)
NAME tomoyo_same_condition - Check for duplicated "struct tomoyo_condition" entry. SYNOPSIS bool tomoyo_same_condition (const struct tomoyo_condition *a , const struct tomoyo_condition *b ); ARGUMENTS a Pointer to "struct tomoyo_condition". b Pointer to "struct tomoyo_condition". DESCRIPT...
tomoyo_same_env_acl(9)
NAME tomoyo_same_env_acl - Check for duplicated "struct tomoyo_env_acl" entry. SYNOPSIS bool tomoyo_same_env_acl (const struct tomoyo_acl_info *a , const struct tomoyo_acl_info *b ); ARGUMENTS a Pointer to "struct tomoyo_acl_info". b Pointer to "struct tomoyo_acl_info". DESCRIPTION Return...
tomoyo_same_inet_acl(9)
NAME tomoyo_same_inet_acl - Check for duplicated "struct tomoyo_inet_acl" entry. SYNOPSIS bool tomoyo_same_inet_acl (const struct tomoyo_acl_info *a , const struct tomoyo_acl_info *b ); ARGUMENTS a Pointer to "struct tomoyo_acl_info". b Pointer to "struct tomoyo_acl_info". DESCRIPTION Ret...
tomoyo_same_ipaddr_union(9)
NAME tomoyo_same_ipaddr_union - Check for duplicated "struct tomoyo_ipaddr_union" entry. SYNOPSIS bool tomoyo_same_ipaddr_union (const struct tomoyo_ipaddr_union *a , const struct tomoyo_ipaddr_union *b ); ARGUMENTS a Pointer to "struct tomoyo_ipaddr_union". b Pointer to "struct tomoyo_ipa...
tomoyo_same_manager(9)
NAME tomoyo_same_manager - Check for duplicated "struct tomoyo_manager" entry. SYNOPSIS bool tomoyo_same_manager (const struct tomoyo_acl_head *a , const struct tomoyo_acl_head *b ); ARGUMENTS a Pointer to "struct tomoyo_acl_head". b Pointer to "struct tomoyo_acl_head". DESCRIPTION Return...
tomoyo_same_mkdev_acl(9)
NAME tomoyo_same_mkdev_acl - Check for duplicated "struct tomoyo_mkdev_acl" entry. SYNOPSIS bool tomoyo_same_mkdev_acl (const struct tomoyo_acl_info *a , const struct tomoyo_acl_info *b ); ARGUMENTS a Pointer to "struct tomoyo_acl_info". b Pointer to "struct tomoyo_acl_info". DESCRIPTION ...
tomoyo_same_mount_acl(9)
NAME tomoyo_same_mount_acl - Check for duplicated "struct tomoyo_mount_acl" entry. SYNOPSIS bool tomoyo_same_mount_acl (const struct tomoyo_acl_info *a , const struct tomoyo_acl_info *b ); ARGUMENTS a Pointer to "struct tomoyo_acl_info". b Pointer to "struct tomoyo_acl_info". DESCRIPTION ...
tomoyo_same_name_union(9)
NAME tomoyo_same_name_union - Check for duplicated "struct tomoyo_name_union" entry. SYNOPSIS bool tomoyo_same_name_union (const struct tomoyo_name_union *a , const struct tomoyo_name_union *b ); ARGUMENTS a Pointer to "struct tomoyo_name_union". b Pointer to "struct tomoyo_name_union". D...
tomoyo_same_number_group(9)
NAME tomoyo_same_number_group - Check for duplicated "struct tomoyo_number_group" entry. SYNOPSIS bool tomoyo_same_number_group (const struct tomoyo_acl_head *a , const struct tomoyo_acl_head *b ); ARGUMENTS a Pointer to "struct tomoyo_acl_head". b Pointer to "struct tomoyo_acl_head". DES...
tomoyo_same_number_union(9)
NAME tomoyo_same_number_union - Check for duplicated "struct tomoyo_number_union" entry. SYNOPSIS bool tomoyo_same_number_union (const struct tomoyo_number_union *a , const struct tomoyo_number_union *b ); ARGUMENTS a Pointer to "struct tomoyo_number_union". b Pointer to "struct tomoyo_num...
tomoyo_same_path2_acl(9)
NAME tomoyo_same_path2_acl - Check for duplicated "struct tomoyo_path2_acl" entry. SYNOPSIS bool tomoyo_same_path2_acl (const struct tomoyo_acl_info *a , const struct tomoyo_acl_info *b ); ARGUMENTS a Pointer to "struct tomoyo_acl_info". b Pointer to "struct tomoyo_acl_info". DESCRIPTION ...
tomoyo_same_path_acl(9)
NAME tomoyo_same_path_acl - Check for duplicated "struct tomoyo_path_acl" entry. SYNOPSIS bool tomoyo_same_path_acl (const struct tomoyo_acl_info *a , const struct tomoyo_acl_info *b ); ARGUMENTS a Pointer to "struct tomoyo_acl_info". b Pointer to "struct tomoyo_acl_info". DESCRIPTION Ret...