Hello. On 2023/10/05 23:21, Esteban Gil wrote: > Hi! > > I am using Akari and I wanted to capture a full reboot sequence in learning > mode, and then once the system boots again, be able to pick up the policy > where it left off. > Is there any way for Akari to automatically save the current policy to disk > before shutting down? > I was thinking about creating a systemd service that triggers before > reboot/shutdown and saves the policy to /etc/ccs, but I would like to know > if there is an Akari way > of doing this.
There is no TOMOYO/AKARI specific way to do it. A hint for doing it is that you would need to remount the root filesystem read-write before running ccs-savepolicy and remount the root filesystem read-only after running ccs-savepolicy , for the root filesystem should be already remounted read-only by the moment reboot() system call is called. _______________________________________________ tomoyo-users-en mailing list tomoyo-users-en@lists.osdn.me https://lists.osdn.me/mailman/listinfo/tomoyo-users-en