Page 1 of 1

RBAC full learning and debian unattended upgrades

PostPosted: Tue Mar 07, 2017 6:19 am
by jbromley
The manual says to avoid any administrative tasks while RBAC full system learning is turned on.

Does anybody know if this applies to automatic upgrading of installed software via debian's unattended-upgrades?

If so can anybody offer a set of sensible defaults to add to the RBAC profile after learning is to complete so as to allow unattended upgrades without granting excessive privileges to other cron jobs? Or any options that can be provided to the system learning stage that will allow successful profiling of unattended-upgrades?

Many thanks!

Re: RBAC full learning and debian unattended upgrades

PostPosted: Tue Mar 07, 2017 8:16 am
by spender
It's not a good idea to allow unattended upgrades -- the reason being that you can't know ahead of time what new permissions might be needed or what new libraries might be involved, so you need to be overly-permissive. Further, often the upgrade scripts will restart existing services. If you were to do something like adding an 'inherit-learn' rule to learn_config for the unattended upgrade cron script, then any restarted service would end up with the overly-permissive inherited subject for their entire lifetime. This is in contrast to the admin role (and other special roles) where once that role is exited via a shell exit or explicit unauth via gradm -u, all processes/restarted services/etc return to their original locked-down policy.

-Brad