(Figure 1: System function initialization)
(Figure 2: Permission assignment management)
(Original code is treated)