Lines Matching defs:behavior
46 enum devcg_behavior behavior;
179 return (devcg->behavior != DEVCG_DEFAULT_NONE);
183 * devcgroup_online - initializes devcgroup's behavior and exceptions based on
197 dev_cgroup->behavior = DEVCG_DEFAULT_ALLOW;
202 dev_cgroup->behavior = parent_dev_cgroup->behavior;
214 dev_cgroup->behavior = DEVCG_DEFAULT_NONE;
230 dev_cgroup->behavior = DEVCG_DEFAULT_NONE;
294 if (devcgroup->behavior == DEVCG_DEFAULT_ALLOW) {
399 * @behavior: behavior of the exception's dev_cgroup
406 enum devcg_behavior behavior)
414 if (dev_cgroup->behavior == DEVCG_DEFAULT_ALLOW) {
415 if (behavior == DEVCG_DEFAULT_ALLOW) {
439 * Only behavior == DEVCG_DEFAULT_DENY allowed here, therefore
469 return verify_new_ex(parent, ex, childcg->behavior);
492 if (childcg->behavior == DEVCG_DEFAULT_DENY)
504 * may_allow_all - checks if it's possible to change the behavior to
513 return parent->behavior == DEVCG_DEFAULT_ALLOW;
519 * behavior and exceptions. The exceptions that
571 * in case both root's behavior and devcg is allow, a new
574 if (devcg_root->behavior == DEVCG_DEFAULT_ALLOW &&
575 devcg->behavior == DEVCG_DEFAULT_ALLOW) {
582 * root's behavior: allow, devcg's: deny
583 * root's behavior: deny, devcg's: deny
637 devcgroup->behavior = DEVCG_DEFAULT_ALLOW;
655 devcgroup->behavior = DEVCG_DEFAULT_ALLOW;
663 devcgroup->behavior = DEVCG_DEFAULT_DENY;
750 if (devcgroup->behavior == DEVCG_DEFAULT_ALLOW) {
768 if (devcgroup->behavior == DEVCG_DEFAULT_DENY)
840 if (dev_cgroup->behavior == DEVCG_DEFAULT_ALLOW)