Lines Matching defs:behavior
45 enum devcg_behavior behavior;
178 return (devcg->behavior != DEVCG_DEFAULT_NONE);
182 * devcgroup_online - initializes devcgroup's behavior and exceptions based on
196 dev_cgroup->behavior = DEVCG_DEFAULT_ALLOW;
201 dev_cgroup->behavior = parent_dev_cgroup->behavior;
213 dev_cgroup->behavior = DEVCG_DEFAULT_NONE;
229 dev_cgroup->behavior = DEVCG_DEFAULT_NONE;
293 if (devcgroup->behavior == DEVCG_DEFAULT_ALLOW) {
398 * @behavior: behavior of the exception's dev_cgroup
405 enum devcg_behavior behavior)
413 if (dev_cgroup->behavior == DEVCG_DEFAULT_ALLOW) {
414 if (behavior == DEVCG_DEFAULT_ALLOW) {
438 * Only behavior == DEVCG_DEFAULT_DENY allowed here, therefore
468 return verify_new_ex(parent, ex, childcg->behavior);
491 if (childcg->behavior == DEVCG_DEFAULT_DENY)
503 * may_allow_all - checks if it's possible to change the behavior to
512 return parent->behavior == DEVCG_DEFAULT_ALLOW;
518 * behavior and exceptions. The exceptions that
570 * in case both root's behavior and devcg is allow, a new
573 if (devcg_root->behavior == DEVCG_DEFAULT_ALLOW &&
574 devcg->behavior == DEVCG_DEFAULT_ALLOW) {
581 * root's behavior: allow, devcg's: deny
582 * root's behavior: deny, devcg's: deny
636 devcgroup->behavior = DEVCG_DEFAULT_ALLOW;
654 devcgroup->behavior = DEVCG_DEFAULT_ALLOW;
662 devcgroup->behavior = DEVCG_DEFAULT_DENY;
749 if (devcgroup->behavior == DEVCG_DEFAULT_ALLOW) {
767 if (devcgroup->behavior == DEVCG_DEFAULT_DENY)
840 if (dev_cgroup->behavior == DEVCG_DEFAULT_ALLOW)