Lines Matching refs:config
502 memset(ptr->config, TOMOYO_CONFIG_USE_DEFAULT, in tomoyo_assign_profile()
503 sizeof(ptr->config)); in tomoyo_assign_profile()
590 u8 config; in tomoyo_set_mode() local
594 config = profile->default_config; in tomoyo_set_mode()
596 config = 0; in tomoyo_set_mode()
613 config = profile->config[i]; in tomoyo_set_mode()
622 config = TOMOYO_CONFIG_USE_DEFAULT; in tomoyo_set_mode()
632 config = (config & ~7) | mode; in tomoyo_set_mode()
633 if (config != TOMOYO_CONFIG_USE_DEFAULT) { in tomoyo_set_mode()
636 config |= TOMOYO_CONFIG_WANT_GRANT_LOG; in tomoyo_set_mode()
639 config &= ~TOMOYO_CONFIG_WANT_GRANT_LOG; in tomoyo_set_mode()
644 config |= TOMOYO_CONFIG_WANT_REJECT_LOG; in tomoyo_set_mode()
647 config &= ~TOMOYO_CONFIG_WANT_REJECT_LOG; in tomoyo_set_mode()
653 profile->config[i] = config; in tomoyo_set_mode()
654 else if (config != TOMOYO_CONFIG_USE_DEFAULT) in tomoyo_set_mode()
655 profile->default_config = config; in tomoyo_set_mode()
721 static void tomoyo_print_config(struct tomoyo_io_buffer *head, const u8 config) in tomoyo_print_config() argument
724 tomoyo_mode[config & 3], in tomoyo_print_config()
725 str_yes_no(config & TOMOYO_CONFIG_WANT_GRANT_LOG), in tomoyo_print_config()
726 str_yes_no(config & TOMOYO_CONFIG_WANT_REJECT_LOG)); in tomoyo_print_config()
799 const u8 config = profile->config[i]; in tomoyo_read_profile() local
801 if (config == TOMOYO_CONFIG_USE_DEFAULT) in tomoyo_read_profile()
813 tomoyo_print_config(head, config); in tomoyo_read_profile()