Hello, I'm trying to understand smack protection. During reading I found that smack rules use some "Smack labels", that can discribe either the object or the subject in the rule. So, breafly, smack operates the rules in such format:
Object Subject Access_Flags
Sometimes it's possible to use default smack labels like _, *, ^. But if I want to specify my own label, how can I do that? Besides my own labels there are some predifined labels that can already exist. For example, System::Run is label for /run directory. System::Log is label for the /var/log dir. How I can find out, that it is so? And how I can enumerate all already created labels?
As I understood, Object is always describes the process object (I mean file system operations, not network). And Subject is always the file description. Am i right?