What is the exactly meaning of local store policy, persistent policy and active policy in the API of libsemanage?
Hi, all. I can't understand the exactly meaning of local store policy, persistent policy and active policy. Is the local store policy means the path where the reference policy source located, and the persistent policy means the binary policy? What's the meaning of active policy?
Thanks!
Signature · 13 lines
Sincere regards, Dongmei ------------------------------------------------------------------- Dongmei Liu Institute of Software, Chinese Academy of Sciences National Engineering Research Center for Fundamental Software P.O. Box 8718, Beijing 100080, CHINA. -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 4 lines · dongmei
Hi, all. I can't understand the exactly meaning of local store policy, persistent policy and active policy. Is the local store policy means the path where the reference policy source located, and the persistent policy means the binary policy? What's the meaning of active policy?
I assume you are referring to semanage_bool(3)?
local store refers to local customizations to the default boolean values stored in the policy. These are stored in the booleans.local file within the policy module store and are typically set via setsebool -P. They are applied when the on-disk policy binary image is generated.
persistent policy refers to the values stored in policy modules. These values can be overridden by the local settings. If not overridden by local settings, their values are applied when the on-disk binary policy image is generated.
active policy refers to the currently active boolean values being applied by the kernel, which can be changed at runtime, e.g. using setsebool without -P, to effect temporary changes in the effective rules being applied.
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.