# Re: \[PATCH 10/11\] selinux: Implement the watch\_key security hook \[ver \#7\]

- From: David Howells \<dhowells@redhat.com\>
- Date: 2019-08-30 14:23:50 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2019/08/162444
- Thread: https://ratatoskr.run/keyrings/2019/08/162428/t.md

```text
Stephen Smalley [ref] wrote:

> > +	u32 sid = cred_sid(current_cred());
> 
> How does this differ from current_sid()?
> 
> And has current_sid() not been converted to use selinux_cred()? Looks like
> selinux_kernfs_init_security() also uses current_security() directly.

It probably doesn't - okay I'll use that instead.

David
```
