# SMACK: how are smack blobs getting into cred-\>security and inode-\>i\_security?

- From: Denis Obrezkov \<hidden\>
- Date: 2021-12-31 13:08:10 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2021/12/16283281
- Thread: https://ratatoskr.run/linux-security-module/2021/12/16283281/t.md

```text
Hello,

I am trying to understand how smack works (looking at
smack_inode_permission hook). I can see that that smack security
information is taken from  cred->security and inode->i_security but how
did they get in there? Also, when does it happen? (for a task and for a
file)

-- 
Regards, Denis Obrezkov
```
