Learning mode - introduce additional interception for recording access trails to resources. Such an access would be added to existing policy as granted. Add role, user, program attribute learning_mode indicating that subject currently is in a learning state. Modules that will benefit - CAP (substituting its current learning mode), JAIL (same for capabilities restrictions), AUTH (also replace), RES, RC. For RES it would allow having fine tuned values what is impossible to do now. In RC we would learn only access modes to objects, necesary roles and object types which were declared earlier.