# Re: \[PATCH v19 1/4\] Add flags option to get xattr method paired to \_\_vfs\_getxattr

- From: Luca Weiss \<hidden\>
- Date: 2022-03-25 11:02:12 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2022/03/225441
- Thread: https://ratatoskr.run/linux-fsdevel/2021/11/218232/t.md

```text
Hi David,

this patch doesn't compile with CONFIG_SECURITY=n:

./include/linux/security.h: In function 'security_inode_need_killpriv':
./include/linux/security.h:893:40: error: passing argument 1 of 'cap_inode_need_killpriv' from incompatible pointer type [-Werror=incompatible-pointer-types]
  893 |         return cap_inode_need_killpriv(dentry);
      |                                        ^~~~~~
      |                                        |
      |                                        struct dentry *
./include/linux/security.h:153:52: note: expected 'struct user_namespace *' but argument is of type 'struct dentry *'
  153 | int cap_inode_need_killpriv(struct user_namespace *mnt_userns,
      |                             ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~

I applied the patch on linux-next tag next-20220318, but the relevant part
doesn't seem to have changed lately.

Regards
Luca
```
